mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-12 14:26:49 +01:00
[TikTok] Pass cookies to formats (#2171)
Closes #2166 Authored by: MinePlayersPE
This commit is contained in:
parent
cfcf60ea99
commit
6134fbeb65
@ -161,6 +161,10 @@ def extract_addr(addr, add_meta={}):
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
self._remove_duplicate_formats(formats)
|
self._remove_duplicate_formats(formats)
|
||||||
|
auth_cookie = self._get_cookies(self._WEBPAGE_HOST).get('sid_tt')
|
||||||
|
if auth_cookie:
|
||||||
|
for f in formats:
|
||||||
|
self._set_cookie(f['url'], 'sid_tt', auth_cookie.value)
|
||||||
self._sort_formats(formats, ('quality', 'codec', 'size', 'br'))
|
self._sort_formats(formats, ('quality', 'codec', 'size', 'br'))
|
||||||
|
|
||||||
thumbnails = []
|
thumbnails = []
|
||||||
|
Loading…
Reference in New Issue
Block a user