From 7da224c907627b5b0233c7eb4eea733f5f97ae90 Mon Sep 17 00:00:00 2001 From: CkuT Date: Wed, 15 Oct 2014 22:34:35 +0200 Subject: [PATCH] Add categories --- youtube_dl/extractor/sexykarma.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube_dl/extractor/sexykarma.py b/youtube_dl/extractor/sexykarma.py index ac7745e74..629499e72 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): -- 2.30.2