]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/sexu.py
[ie/youtube] Suppress "Unavailable videos are hidden" warning (#10159)
[yt-dlp.git] / yt_dlp / extractor / sexu.py
index 3df51520b06e8bc2da1b3afa3fee75db4e21be46..71b1076e6d577495d2d5a94f184a93eb521b7196 100644 (file)
@@ -1,9 +1,8 @@
-from __future__ import unicode_literals
-
 from .common import InfoExtractor
 
 
 class SexuIE(InfoExtractor):
+    _WORKING = False
     _VALID_URL = r'https?://(?:www\.)?sexu\.com/(?P<id>\d+)'
     _TEST = {
         'url': 'http://sexu.com/961791/',
@@ -16,7 +15,7 @@ class SexuIE(InfoExtractor):
             'categories': list,  # NSFW
             'thumbnail': r're:https?://.*\.jpg$',
             'age_limit': 18,
-        }
+        },
     }
 
     def _real_extract(self, url):
@@ -36,7 +35,6 @@ def _real_extract(self, url):
                 r'^(\d+)[pP]', source.get('label', ''), 'height',
                 default=None)),
         } for source in sources if source.get('file')]
-        self._sort_formats(formats)
 
         title = self._html_search_regex(
             r'<title>([^<]+)\s*-\s*Sexu\.Com</title>', webpage, 'title')