mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-04-13 10:34:50 +09:00
Scrape tags
modified: youtube_dl/extractor/sxyprn.py
This commit is contained in:
parent
2ffd1b4747
commit
a6610f8581
@ -20,6 +20,7 @@ class SxyPrnIE(InfoExtractor):
|
||||
'thumbnail': r're:^https?://.*\.jpg$',
|
||||
'duration': 165,
|
||||
'age_limit': 18,
|
||||
'tags': ['porn', 'gratis porno', 'anal', 'free porn videos', 'videos', 'movies'],
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
@ -56,6 +57,8 @@ class SxyPrnIE(InfoExtractor):
|
||||
r'duration\s*:\s*<[^>]+>([\d:]+)', webpage, 'duration',
|
||||
default=None))
|
||||
|
||||
tags = self._search_regex(r'<meta name="keywords".+content="(?P<tags>.+)"', webpage, 'tags', group='tags').split(', ')
|
||||
|
||||
return {
|
||||
'id': video_id,
|
||||
'url': video_url,
|
||||
@ -64,4 +67,5 @@ class SxyPrnIE(InfoExtractor):
|
||||
'duration': duration,
|
||||
'age_limit': 18,
|
||||
'ext': 'mp4',
|
||||
'tags': tags,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user