]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/toongoggles.py
[ie/youtube] Suppress "Unavailable videos are hidden" warning (#10159)
[yt-dlp.git] / yt_dlp / extractor / toongoggles.py
index b5ba1c01d85e1777ee61424a6a9d4ccd61d80974..bfeb16a6e23fbd691ac7f4af6a1e0b399db5ac5a 100644 (file)
@@ -1,8 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
-import re
-
 from .common import InfoExtractor
 from ..utils import (
     int_or_none,
@@ -23,7 +18,7 @@ class ToonGogglesIE(InfoExtractor):
             'description': 'Bernard decides to play football in order to be better than Lloyd and tries to beat him no matter how, he even cheats.',
             'upload_date': '20160718',
             'timestamp': 1468879330,
-        }
+        },
     }, {
         'url': 'http://www.toongoggles.com/shows/227759/om-nom-stories-around-the-world',
         'info_dict': {
@@ -63,7 +58,7 @@ def _parse_episode_data(self, episode_data):
         }
 
     def _real_extract(self, url):
-        show_id, episode_id = re.match(self._VALID_URL, url).groups()
+        show_id, episode_id = self._match_valid_url(url).groups()
         if episode_id:
             episode_data = self._call_api('search', episode_id, {
                 'filter': 'episode',