mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 21:56:53 +01:00
Add categories
This commit is contained in:
parent
1723edb1a5
commit
7da224c907
@ -56,6 +56,8 @@ def _real_extract(self, url):
|
|||||||
d = datetime.datetime.strptime(date, '%B %d, %Y')
|
d = datetime.datetime.strptime(date, '%B %d, %Y')
|
||||||
upload_date = d.strftime('%Y%m%d')
|
upload_date = d.strftime('%Y%m%d')
|
||||||
|
|
||||||
|
categories = re.findall(r'http://www.sexykarma.com/gonewild/search/video/(?:.+?)"><span>(.*?)</span>', webpage)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': title,
|
'title': title,
|
||||||
@ -65,6 +67,7 @@ def _real_extract(self, url):
|
|||||||
'duration': duration,
|
'duration': duration,
|
||||||
'view_count': view_count,
|
'view_count': view_count,
|
||||||
'upload_date': upload_date,
|
'upload_date': upload_date,
|
||||||
|
'categories': categories,
|
||||||
}
|
}
|
||||||
|
|
||||||
def _to_seconds(self, timestr):
|
def _to_seconds(self, timestr):
|
||||||
|
Loading…
Reference in New Issue
Block a user