From: CkuT Date: Wed, 15 Oct 2014 20:34:35 +0000 (+0200) Subject: Add categories X-Git-Tag: 2014.10.18~1^2~1^2 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=7da224c907627b5b0233c7eb4eea733f5f97ae90;p=youtube-dl.git Add categories --- diff --git a/youtube_dl/extractor/sexykarma.py b/youtube_dl/extractor/sexykarma.py index ac7745e74e..629499e723 100644 --- a/youtube_dl/extractor/sexykarma.py +++ b/youtube_dl/extractor/sexykarma.py @@ -56,6 +56,8 @@ class SexyKarmaIE(InfoExtractor): d = datetime.datetime.strptime(date, '%B %d, %Y') upload_date = d.strftime('%Y%m%d') + categories = re.findall(r'http://www.sexykarma.com/gonewild/search/video/(?:.+?)">(.*?)', webpage) + return { 'id': video_id, 'title': title, @@ -65,6 +67,7 @@ class SexyKarmaIE(InfoExtractor): 'duration': duration, 'view_count': view_count, 'upload_date': upload_date, + 'categories': categories, } def _to_seconds(self, timestr):