Commit Graph

186 Commits (311b6615d85d3530f2709c50e4223ff3b6b14361)

Author SHA1 Message Date
pukkandan cca80fe611 [youtube] Extract even more thumbnails and reduce testing
* Also fix bug where `_test_url` was being ignored

Ref: https://stackoverflow.com/a/20542029
Related: 
pukkandan 0ba692acc8
[youtube] Extract more thumbnails
* The thumbnail URLs are hard-coded and their actual existence is tested lazily
* Added option `--no-check-formats` to not test them

Closes , Related: , , https://github.com/ytdl-org/youtube-dl/issues/29049
coletdjnz fe93e2c4cf
[youtube] misc cleanup and bug fixes ()
* Update some `_extract_response` calls to keep them consistent
* Cleanup continuation extraction related code using new API format
* Improve `_extract_account_syncid` to support multiple parameters
* Generalize `get_text` and related functions into one
* Update `INNERTUBE_CONTEXT_CLIENT_NAME` with integer values

Authored by: colethedj
coletdjnz 314ee30548
[youtube] Fix session index extraction and headers for non-web player clients ()
Fixes 
coletdjnz 34917076ad
[youtube] Fix authentication when using multiple accounts
`SESSION_INDEX` in `ytcfg` is the index of the active account and should be sent as `X-Goog-AuthUser` header

Closes 
Authored by @colethedj
coletdjnz 47193e0298
[youtube:tab] Extract playlist availability ()
Authored by: colethedj
coletdjnz 49bd8c66d3
[youtube:comments] Improve comment vote count parsing (fixes ) ()
Authored by: colethedj
coletdjnz c888ffb95a
[youtube] Use android client as default and add age-gate bypass for it ()
Authored by: colethedj
coletdjnz 9752433221
[youtube:comments] Fix `is_favorited` ()
Authored by colethedj
coletdjnz 2d6659b9ea
[youtube:comments] Move comment extraction to new API ()
Closes , ,  

Authored by: colethedj
pukkandan 60bdb7bd9e
[youtube] Fix sorting of 3gp format
pukkandan 4bb6b02f93
Improve `extractor_args` parsing
krichbanana f6745c4980
[Youtube] Choose correct Live chat API for upcoming streams ()
Authored by: krichbanana
coletdjnz 109dd3b237
[youtube] Use new API for additional video extraction requests ()
Co-authored-by: colethedj, pukkandan
Closes https://github.com/yt-dlp/yt-dlp/issues/427
Workarounds for https://github.com/ytdl-org/youtube-dl/issues/29326, https://github.com/yt-dlp/yt-dlp/issues/319, https://github.com/ytdl-org/youtube-dl/issues/29086
coletdjnz 45261e063b
[youtube:comments] Fix error handling and add `itct` to params ()
Should close  (untested)

Authored by: colethedj
pukkandan 49c258e18d
[youtube] Fix subtitle names for age-gated videos
Related: https://github.com/iv-org/invidious/pull/2205#issuecomment-868680486
pukkandan 5d3a0e794b
Add `--extractor-args` to pass extractor-specific arguments
pukkandan ed807c1837
Update to ytdl-commit-379f52a
[liveleak] Remove extractor
379f52a495
siikamiika c60ee3a218
[youtube_live_chat] Support ongoing live chat ()
Authored by: siikamiika
pukkandan 4e6767b5f2
[youtube] Temporary fix for age-gate
Related:
https://stackoverflow.com/a/67629882
https://github.com/yt-dlp/yt-dlp/issues/319
https://github.com/ytdl-org/youtube-dl/issues/29333
https://github.com/ytdl-org/youtube-dl/issues/29086
pukkandan 45db527fa6
[youtube] Login is not needed for `:ytrec`
coletdjnz 4ba001080f
[youtube] Non-fatal alert reporting for unavailable videos page ()
Co-Authored by: colethedj, pukkandan
coletdjnz 1974e99f4b
[youtube] Improve SAPISID cookie handling (closes ) ()
Author: colethedj
pukkandan bea742222f
[youtube] Support shorts URL
Closes 
pukkandan 46953e7e6e
[youtube:playlist] fix bug
pukkandan 8d68ab98a7
[youtube] Fix bug where not all hls formats were extracted
Bug introduced in 9297939ec3
pukkandan 09f1580e2d
[youtube] `/live` URLs should raise error if channel is not live
Fixes: https://github.com/ytdl-org/youtube-dl/issues/29090
coletdjnz 00ae27690d
[youtube] Add `html5=1` param to `get_video_info` page requests ()
Workaround for , https://github.com/ytdl-org/youtube-dl/issues/29086
Authored by: colethedj
pukkandan 9d5d4d64f8
[youtube] Better message when login required
pukkandan d3fc8074a4
[youtube] Sort audio-only formats correctly
Closes 
pukkandan 07cce701de
[cleanup] linter, code formatting and readme
pukkandan ff2751ac9c
[youtube] Always extract `maxresdefault` thumbnail
Fixes: https://github.com/ytdl-org/youtube-dl/issues/29049
pukkandan abcdd12b26
[youtube:tab] Support youtube music `MP` pages
pukkandan 18db754858
[youtube:tab] Redirect `UC` channels that doesn't have a `videos` tab
Many topic URLs don't have a videos tab, but has an equivalent `UU` playlist.
If there is no playlist, fallback to using channel page
pukkandan fe03a6cdc8
[youtube:tab] Support youtube music `VL` and `browse` pages
pukkandan cd684175ad
[youtube:tab] Support channel search
Fixes: https://github.com/ytdl-org/youtube-dl/issues/29071
pukkandan da692b7920
[cleanup] youtube tests
pukkandan 95c01b6c16
[youtube:tab] Show alerts only from the final webpage
pukkandan a06916d98e
[extractor] Add `write_debug` and `get_param`
coletdjnz 9297939ec3
[Youtube] Extract more formats for `music.youtube` URLs ()
Based on: https://github.com/ytdl-org/youtube-dl/pull/28778, https://github.com/ytdl-org/youtube-dl/pull/26160

Co-authored-by: craftingmod, colethedj, pukkandan
pukkandan 774d79cc4c
[youtube] Add language names
Co-authored by: nixxo, tpikonen
Based on: https://github.com/ytdl-org/youtube-dl/pull/26112
Closes: 
pukkandan 120916dac2
[youtube] multiple subtitles in same language
Fixes: https://github.com/ytdl-org/youtube-dl/issues/21164
Related: , https://github.com/ytdl-org/youtube-dl/pull/26112
pukkandan 0fb983f62d
[youtube] Extract audio language
pukkandan 53ed7066ab
Option `--compat-options` to revert some of yt-dlp's changes
* Deprecates `--list-formats-as-table`, `--list-formats-old`
pukkandan 68b91dc905
[youtube] Add `oembed` to reserved names
pukkandan e28f1c0ae8
[cleanup] Fix linter and some typos
* Also remove inconsistent use of `"` in setup.py
pukkandan 895b0931e5
[youtube:tab] Detect playlists inside community posts
pukkandan 1bdae7d312
Update to ytdl-commit-7e8b3f9
[youtube] Remove unused code
7e8b3f9439
pukkandan 8c54a3051d
[youtube] Bugfix in `_extract_ytcfg`
pukkandan 201c145953
Update to ytdl-commit-9f6c03
[cbsnews] Fix extraction for python <3.6
9f6c03a006
pukkandan 5d34200268
[youtube:tab] Reload with unavailable videos for all playlists
If the unavailable video is in a later page, the warning and button are not shown in the initial webpage
So we force all playlists' initial page to reload with the correct params
pukkandan b7da73eb19
Add option `--ignore-no-formats-error`
* Ignores the "no video format" and similar errors
* Experimental - Some extractors may still throw these errors
pukkandan 6a39ee13f7
Fix inconsistent use of `report_warning`
coletdjnz 358de58c4d
[youtube:tab] Show unavailable videos in playlists ()
Closes 

Authored by: colethedj
coletdjnz 79360d99d3
[youtube] Standardize API calls for tabs, mixes and search ()
Authored by: colethedj
pukkandan 46fff7105e
[youtube] Ignore invalid stretch ratio
Closes 
coletdjnz 8ea3f7b909
[youtube] Improve channel syncid extraction to support ytcfg ()
Authored by: colethedj
coletdjnz f4f751af40
[youtube] Parse API parameters from initial webpage ()
* Obtain innertube_context, api_key and x-goog-visitor-id from webpage
* Generalize the header & Innertube_context extraction across YouTube extractors

Related: 1b0a13f33c

Authored by: colethedj
pukkandan 1988fab7e3
[youtube] Fix thumbnail URL
Closes: https://github.com/yt-dlp/yt-dlp/issues/233 https://github.com/ytdl-org/youtube-dl/issues/28023
pukkandan f7ad71607d
Update to ytdl-commit-4fb25ff
[maoritv] Add new extractor
4fb25ff5a3

Except:
[vimeo] improve extraction 3ae9c0f410
[youtube:tab] Pass innertube context... 1b0a13f33c
pukkandan 3ffc7c89b0
[youtube] Fix _extract_alerts
* Sometimes one warning is split between multiple runs
* Also simplified code
coletdjnz d92f5d5a90
[youtube] Extract comments' approximate timestamp ()
Authored by: colethedj
pukkandan 39ed931e53
Update to ytdl-commit-654b4f4
[youtube] prioritize information from YoutubeIE for playlist entries
654b4f4ff2
Matthew b28f8d244a
[YouTube] Show premium state in `availability` ()
Authored by colethedj
pukkandan b050d210df
Fix some typos and linter
pukkandan cce889b900 Update to ytdl v2021-04-01
14f29f087e

Closes 
pukkandan 1418a0437f
Update to ytdl-commit-8562218
[ard] improve clip id extraction
8562218350
pukkandan 394dcd4486
Write current epoch to infojson when using `--no-clean-infojson`
Closes 
pukkandan 83b20a970d
[youtube_live_chat] fix bug when trying to set cookies
Closes 
Matthew c224251aad
[youtube] Show if video is `private`, `unlisted` etc in new field `availability` ()
Closes: , https://github.com/ytdl-org/youtube-dl/issues/25631

Authored by: colethedj, pukkandan
pukkandan e3c076970e
[youtube] bugfix for channel playlist extraction
Bug introduced in cd7c66cf01
Matthew a1c5d2ca64
[Youtube] Rewrite comment extraction ()
Closes 

TODO:
* Add an option for the user to specify newest/popular and max number of comments
* Refactor the download code and generalize with TabIE
* Parse time_text to timestamp
pukkandan 2be71994c0
[youtube] Detect when Mixes end or wrap around
pukkandan 26fe8ffed0
[youtube] Fix community page continuation (Closes )
Matthew d069eca7a3
[Youtube] Fix private feeds/playlists on multi-channel accounts ()
Authored by: colethedj
Matthew f3eaa8dd1c
[Youtube] Extract alerts from continuation ()
Related: 

Authored by: colethedj
pukkandan cd7c66cf01
[youtube] Fix history, trending and mix playlists ()
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
Co-authored-by: Matthew <colethedj@protonmail.com>
Matthew a5c5623470
[YouTube] Use new browse API for continuation page extraction. ()
Known issues (these issues existed in previous API as well)
* Mix playlists only give 1 page (25 vids)
* Trending only gives 1 video
* History gives 5 pages (200 vids)

Co-authored-by: colethedj, pukkandan
pukkandan c705177da2
[youtube] Throw error when `--extractor-retries` are exhausted (Closes )
pukkandan 5ef7d9bdd8
Release 2021.03.01
pukkandan 62bff2c170
Add option `--extractor-retries` to retry on known extractor errors
* Currently only used by youtube

Fixes https://github.com/ytdl-org/youtube-dl/issues/28194
Possibly also fixes: https://github.com/ytdl-org/youtube-dl/issues/28289 (can not confirm since the issue isn't reliably reproducible)
pukkandan 277d6ff5f2
Extract comments only when needed (Closes )
pukkandan b3d1242534 [youtube] Fix inconsistent `webpage_url` (closes )
pukkandan 14fdfea973 [youtube] Retry on incomplete `ytInitialData`
Related: 
pukkandan 7c60c33efe Update to ytdl-commit-4460329
44603290e5

Except: gedi, tmz
7422a2194f
8cb4b71909
d81421af4b
Pccode66 7a5c1cfe93
Completely change project name to yt-dlp ()
* All modules and binary names are changed
* All documentation references changed
* yt-dlp no longer loads youtube-dlc config files
* All URLs changed to point to organization account

Co-authored-by: Pccode66
Co-authored-by: pukkandan