summary refs log tree commit diff
diff options
context:
space:
mode:
authorCkuT <s3cu@hotmail.fr>2014-10-15 22:34:35 +0200
committerCkuT <s3cu@hotmail.fr>2014-10-15 22:34:35 +0200
commit7da224c907627b5b0233c7eb4eea733f5f97ae90 (patch)
tree346069509bfac9ae89ad6555945b3b73566f7b90
parent1723edb1a589190b8a91af12bd7dadaa50e26549 (diff)
downloadyoutube-dl-7da224c907627b5b0233c7eb4eea733f5f97ae90.tar.gz
youtube-dl-7da224c907627b5b0233c7eb4eea733f5f97ae90.tar.xz
youtube-dl-7da224c907627b5b0233c7eb4eea733f5f97ae90.zip
Add categories
-rw-r--r--youtube_dl/extractor/sexykarma.py3
1 files changed, 3 insertions, 0 deletions
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/(?:.+?)"><span>(.*?)</span>', 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):