mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-05-23 07:42:42 +00:00
Compare commits
No commits in common. "23c059a455acbb317b2bbe657efd59113bf4d5ac" and "442c90da3ec680037b7d94abf91ec63b2e5a9ade" have entirely different histories.
23c059a455
...
442c90da3e
@ -3,12 +3,10 @@ import urllib.parse
|
|||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
determine_ext,
|
determine_ext,
|
||||||
float_or_none,
|
|
||||||
int_or_none,
|
int_or_none,
|
||||||
join_nonempty,
|
join_nonempty,
|
||||||
mimetype2ext,
|
mimetype2ext,
|
||||||
parse_qs,
|
parse_qs,
|
||||||
unescapeHTML,
|
|
||||||
unified_strdate,
|
unified_strdate,
|
||||||
url_or_none,
|
url_or_none,
|
||||||
)
|
)
|
||||||
@ -109,11 +107,6 @@ class FirstTVIE(InfoExtractor):
|
|||||||
'timestamp': ('dvr_begin_at', {int_or_none}),
|
'timestamp': ('dvr_begin_at', {int_or_none}),
|
||||||
'upload_date': ('date_air', {unified_strdate}),
|
'upload_date': ('date_air', {unified_strdate}),
|
||||||
'duration': ('duration', {int_or_none}),
|
'duration': ('duration', {int_or_none}),
|
||||||
'chapters': ('episodes', lambda _, v: float_or_none(v['from']) is not None, {
|
|
||||||
'start_time': ('from', {float_or_none}),
|
|
||||||
'title': ('name', {str}, {unescapeHTML}),
|
|
||||||
'end_time': ('to', {float_or_none}),
|
|
||||||
}),
|
|
||||||
}),
|
}),
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
|
|||||||
@ -506,7 +506,6 @@ class PornHubIE(PornHubBaseIE):
|
|||||||
'cast': ({find_elements(attr='data-label', value='pornstar')}, ..., {clean_html}),
|
'cast': ({find_elements(attr='data-label', value='pornstar')}, ..., {clean_html}),
|
||||||
}),
|
}),
|
||||||
'subtitles': subtitles,
|
'subtitles': subtitles,
|
||||||
'http_headers': {'Referer': f'https://www.{host}/'},
|
|
||||||
}, info)
|
}, info)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user