Skip to content

Commit

Permalink
[CI] auto update yt_dlp to upstream commit de30f652ffb7623500215f5906…
Browse files Browse the repository at this point in the history
…844f2ae0d92c7b
  • Loading branch information
github-actions[bot] committed Jan 19, 2025
1 parent 664475a commit c78182c
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
8 changes: 7 additions & 1 deletion lib/yt_dlp/extractor/lbry.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,13 @@ def _real_extract(self, url):
if stream_type in self._SUPPORTED_STREAM_TYPES:
claim_id, is_live = result['claim_id'], False
streaming_url = self._call_api_proxy(
'get', claim_id, {'uri': uri}, 'streaming url')['streaming_url']
'get', claim_id, {
'uri': uri,
**traverse_obj(parse_qs(url), {
'signature': ('signature', 0),
'signature_ts': ('signature_ts', 0),
}),
}, 'streaming url')['streaming_url']

# GET request to v3 API returns original video/audio file if available
direct_url = re.sub(r'/api/v\d+/', '/api/v3/', streaming_url)
Expand Down
3 changes: 3 additions & 0 deletions lib/yt_dlp/extractor/nrk.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
parse_iso8601,
str_or_none,
try_get,
update_url_query,
url_or_none,
urljoin,
)
Expand Down Expand Up @@ -171,6 +172,8 @@ def call_playback_api(item, query=None):
format_url = url_or_none(asset.get('url'))
if not format_url:
continue
# Remove the 'adap' query parameter
format_url = update_url_query(format_url, {'adap': []})
asset_format = (asset.get('format') or '').lower()
if asset_format == 'hls' or determine_ext(format_url) == 'm3u8':
formats.extend(self._extract_nrk_formats(format_url, video_id))
Expand Down
21 changes: 20 additions & 1 deletion lib/yt_dlp/extractor/weibo.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _parse_video_info(self, video_info, video_id=None):


class WeiboIE(WeiboBaseIE):
_VALID_URL = r'https?://(?:m\.weibo\.cn/status|(?:www\.)?weibo\.com/\d+)/(?P<id>[a-zA-Z0-9]+)'
_VALID_URL = r'https?://(?:m\.weibo\.cn/(?:status|detail)|(?:www\.)?weibo\.com/\d+)/(?P<id>[a-zA-Z0-9]+)'
_TESTS = [{
'url': 'https://weibo.com/7827771738/N4xlMvjhI',
'info_dict': {
Expand Down Expand Up @@ -164,6 +164,25 @@ class WeiboIE(WeiboBaseIE):
'like_count': int,
'repost_count': int,
},
}, {
'url': 'https://m.weibo.cn/detail/4189191225395228',
'info_dict': {
'id': '4189191225395228',
'ext': 'mp4',
'display_id': 'FBqgOmDxO',
'title': '柴犬柴犬的秒拍视频',
'description': '午睡当然是要甜甜蜜蜜的啦![坏笑] Instagram:shibainu.gaku http://t.cn/RHbmjzW ',
'duration': 53,
'timestamp': 1514264429,
'upload_date': '20171226',
'thumbnail': r're:https://.*\.jpg',
'uploader': '柴犬柴犬',
'uploader_id': '5926682210',
'uploader_url': 'https://weibo.com/u/5926682210',
'view_count': int,
'like_count': int,
'repost_count': int,
},
}, {
'url': 'https://weibo.com/0/4224132150961381',
'note': 'no playback_list example',
Expand Down
2 changes: 1 addition & 1 deletion lib/yt_dlp_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
164368610456e2d96b279f8b120dea08f7b1d74f
de30f652ffb7623500215f5906844f2ae0d92c7b

0 comments on commit c78182c

Please sign in to comment.