X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fdrtuber.py;h=ca274dff691f2ad34d027f31bf814c8df850812d;hb=2914e5f00f6ebcc59712b7091a87988408ff3c88;hp=d5bfd7f226cf4c718d39fd5a3149b9860c1c8739;hpb=2eebf060af9fe284cbcb839886b27030553fb48d;p=youtube-dl diff --git a/youtube_dl/extractor/drtuber.py b/youtube_dl/extractor/drtuber.py index d5bfd7f22..ca274dff6 100644 --- a/youtube_dl/extractor/drtuber.py +++ b/youtube_dl/extractor/drtuber.py @@ -19,7 +19,7 @@ class DrTuberIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'comment_count': int, - 'categories': list, # NSFW + 'categories': ['Babe', 'Blonde', 'Erotic', 'Outdoor', 'Softcore', 'Solo'], 'thumbnail': 're:https?://.*\.jpg$', 'age_limit': 18, } @@ -52,9 +52,9 @@ class DrTuberIE(InfoExtractor): r'([\d,\.]+)', webpage, 'comment count', fatal=False)) - cats_str = self._html_search_regex( - r'Categories:
(.+?)
', webpage, 'categories', fatal=False) + categories = [] if not cats_str else re.findall(r'