[youtube] Adapt to new automatic captions rendition (closes #13467)
[youtube-dl] / youtube_dl / extractor / laola1tv.py
index e8853fb779976f42d19b41633b91887a18884a9e..1f91ba0173429aa8b86969b9dc40e45695213e6d 100644 (file)
@@ -10,7 +10,6 @@ from ..utils import (
     urlencode_postdata,
     xpath_element,
     xpath_text,
-    urljoin,
     update_url_query,
     js_to_json,
 )
@@ -19,7 +18,7 @@ from ..utils import (
 class Laola1TvEmbedIE(InfoExtractor):
     IE_NAME = 'laola1tv:embed'
     _VALID_URL = r'https?://(?:www\.)?laola1\.tv/titanplayer\.php\?.*?\bvideoid=(?P<id>\d+)'
-    _TEST = {
+    _TESTS = [{
         # flashvars.premium = "false";
         'url': 'https://www.laola1.tv/titanplayer.php?videoid=708065&type=V&lang=en&portal=int&customer=1024',
         'info_dict': {
@@ -29,7 +28,7 @@ class Laola1TvEmbedIE(InfoExtractor):
             'uploader': 'ITTF - International Table Tennis Federation',
             'upload_date': '20161211',
         },
-    }
+    }]
 
     def _extract_token_url(self, stream_access_url, video_id, data):
         return self._download_json(