mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-15 13:43:04 +00:00
Compare commits
No commits in common. "a79cba0c95b8b74d2ca4f7fbf6ffe76e34ed7221" and "44a6fcff397e98b4aa7e3bb1da7425b3cca05a71" have entirely different histories.
a79cba0c95
...
44a6fcff39
@ -86,7 +86,7 @@ class DigitalConcertHallIE(InfoExtractor):
|
|||||||
})
|
})
|
||||||
|
|
||||||
m3u8_url = traverse_obj(
|
m3u8_url = traverse_obj(
|
||||||
stream_info, ('channel', lambda k, _: k.startswith('vod_mixed'), 'stream', 0, 'url'), get_all=False)
|
stream_info, ('channel', lambda x: x.startswith('vod_mixed'), 'stream', 0, 'url'), get_all=False)
|
||||||
formats = self._extract_m3u8_formats(m3u8_url, video_id, 'mp4', 'm3u8_native', fatal=False)
|
formats = self._extract_m3u8_formats(m3u8_url, video_id, 'mp4', 'm3u8_native', fatal=False)
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@ from ..utils import (
|
|||||||
NO_DEFAULT,
|
NO_DEFAULT,
|
||||||
orderedSet,
|
orderedSet,
|
||||||
remove_quotes,
|
remove_quotes,
|
||||||
remove_start,
|
|
||||||
str_to_int,
|
str_to_int,
|
||||||
update_url_query,
|
update_url_query,
|
||||||
urlencode_postdata,
|
urlencode_postdata,
|
||||||
@ -199,16 +198,6 @@ class PornHubIE(PornHubBaseIE):
|
|||||||
'skip_download': True,
|
'skip_download': True,
|
||||||
},
|
},
|
||||||
'skip': 'This video has been disabled',
|
'skip': 'This video has been disabled',
|
||||||
}, {
|
|
||||||
'url': 'http://www.pornhub.com/view_video.php?viewkey=ph601dc30bae19a',
|
|
||||||
'info_dict': {
|
|
||||||
'id': 'ph601dc30bae19a',
|
|
||||||
'uploader': 'Projekt Melody',
|
|
||||||
'uploader_id': 'projekt-melody',
|
|
||||||
'upload_date': '20210205',
|
|
||||||
'title': '"Welcome to My Pussy Mansion" - CB Stream (02/03/21)',
|
|
||||||
'thumbnail': r're:https?://.+',
|
|
||||||
},
|
|
||||||
}, {
|
}, {
|
||||||
'url': 'http://www.pornhub.com/view_video.php?viewkey=ph557bbb6676d2d',
|
'url': 'http://www.pornhub.com/view_video.php?viewkey=ph557bbb6676d2d',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
@ -468,11 +457,9 @@ class PornHubIE(PornHubBaseIE):
|
|||||||
self._sort_formats(
|
self._sort_formats(
|
||||||
formats, field_preference=('height', 'width', 'fps', 'format_id'))
|
formats, field_preference=('height', 'width', 'fps', 'format_id'))
|
||||||
|
|
||||||
model_profile = self._search_json(
|
|
||||||
r'var\s+MODEL_PROFILE\s*=', webpage, 'model profile', video_id, fatal=False)
|
|
||||||
video_uploader = self._html_search_regex(
|
video_uploader = self._html_search_regex(
|
||||||
r'(?s)From: .+?<(?:a\b[^>]+\bhref=["\']/(?:(?:user|channel)s|model|pornstar)/|span\b[^>]+\bclass=["\']username)[^>]+>(.+?)<',
|
r'(?s)From: .+?<(?:a\b[^>]+\bhref=["\']/(?:(?:user|channel)s|model|pornstar)/|span\b[^>]+\bclass=["\']username)[^>]+>(.+?)<',
|
||||||
webpage, 'uploader', default=None) or model_profile.get('username')
|
webpage, 'uploader', default=None)
|
||||||
|
|
||||||
def extract_vote_count(kind, name):
|
def extract_vote_count(kind, name):
|
||||||
return self._extract_count(
|
return self._extract_count(
|
||||||
@ -501,7 +488,6 @@ class PornHubIE(PornHubBaseIE):
|
|||||||
return merge_dicts({
|
return merge_dicts({
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'uploader': video_uploader,
|
'uploader': video_uploader,
|
||||||
'uploader_id': remove_start(model_profile.get('modelProfileLink'), '/model/'),
|
|
||||||
'upload_date': upload_date,
|
'upload_date': upload_date,
|
||||||
'title': title,
|
'title': title,
|
||||||
'thumbnail': thumbnail,
|
'thumbnail': thumbnail,
|
||||||
|
Loading…
Reference in New Issue
Block a user