mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-30 12:36:03 +00:00
keep it simple stupid
Authored by: bashonly
This commit is contained in:
parent
23052029a0
commit
160bb68c7f
@ -16,7 +16,6 @@ from ..utils import (
|
|||||||
parse_iso8601,
|
parse_iso8601,
|
||||||
smuggle_url,
|
smuggle_url,
|
||||||
str_or_none,
|
str_or_none,
|
||||||
update_url,
|
|
||||||
url_or_none,
|
url_or_none,
|
||||||
urljoin,
|
urljoin,
|
||||||
)
|
)
|
||||||
@ -343,7 +342,7 @@ class PatreonIE(PatreonBaseIE):
|
|||||||
|
|
||||||
# Must be all-lowercase 'referer' so we can smuggle it to Generic, SproutVideo, and Vimeo.
|
# Must be all-lowercase 'referer' so we can smuggle it to Generic, SproutVideo, and Vimeo.
|
||||||
# patreon.com URLs redirect to www.patreon.com; this matters when requesting mux.com m3u8s
|
# patreon.com URLs redirect to www.patreon.com; this matters when requesting mux.com m3u8s
|
||||||
headers = {'referer': update_url(url, netloc='www.patreon.com')}
|
headers = {'referer': 'https://www.patreon.com/'}
|
||||||
|
|
||||||
# handle Vimeo embeds
|
# handle Vimeo embeds
|
||||||
if traverse_obj(attributes, ('embed', 'provider')) == 'Vimeo':
|
if traverse_obj(attributes, ('embed', 'provider')) == 'Vimeo':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user