mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-31 09:41:18 +02:00
[ie/LBRY] Support signed URLs (#12138)
Some checks failed
Download Tests / Full Download Tests (windows-latest, 3.9) (push) Waiting to run
Download Tests / Full Download Tests (windows-latest, pypy-3.10) (push) Waiting to run
CodeQL / Analyze (python) (push) Failing after 1m7s
Download Tests / Quick Download Tests (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.10) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.11) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.12) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.13) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, pypy-3.10) (push) Has been skipped
Quick Test / Core Test (push) Successful in 3m9s
Quick Test / Code check (push) Successful in 2m9s
Release (master) / release (push) Has been skipped
Release (master) / publish_pypi (push) Has been skipped
Release (nightly) / publish_pypi (push) Has been skipped
Release (nightly) / release (push) Has been skipped
Release (nightly) / check_nightly (push) Has been skipped
Some checks failed
Download Tests / Full Download Tests (windows-latest, 3.9) (push) Waiting to run
Download Tests / Full Download Tests (windows-latest, pypy-3.10) (push) Waiting to run
CodeQL / Analyze (python) (push) Failing after 1m7s
Download Tests / Quick Download Tests (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.10) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.11) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.12) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.13) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, pypy-3.10) (push) Has been skipped
Quick Test / Core Test (push) Successful in 3m9s
Quick Test / Code check (push) Successful in 2m9s
Release (master) / release (push) Has been skipped
Release (master) / publish_pypi (push) Has been skipped
Release (nightly) / publish_pypi (push) Has been skipped
Release (nightly) / release (push) Has been skipped
Release (nightly) / check_nightly (push) Has been skipped
Authored by: seproDev
This commit is contained in:
parent
89198bb23b
commit
de30f652ff
@ -310,7 +310,13 @@ class LBRYIE(LBRYBaseIE):
|
|||||||
if stream_type in self._SUPPORTED_STREAM_TYPES:
|
if stream_type in self._SUPPORTED_STREAM_TYPES:
|
||||||
claim_id, is_live = result['claim_id'], False
|
claim_id, is_live = result['claim_id'], False
|
||||||
streaming_url = self._call_api_proxy(
|
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
|
# GET request to v3 API returns original video/audio file if available
|
||||||
direct_url = re.sub(r'/api/v\d+/', '/api/v3/', streaming_url)
|
direct_url = re.sub(r'/api/v\d+/', '/api/v3/', streaming_url)
|
||||||
|
Loading…
Reference in New Issue
Block a user