Commit Graph

236 Commits (b0f636beb46411d454e4f14ae5372d672c798701)

Author SHA1 Message Date
pukkandan 19a0394044
[cleanup] Misc cleanup and refactor ()
coletdjnz affc4fefea
[youtube] Fix episode metadata extraction
pukkandan f82711587c
[cleanup] Sort imports
Using https://github.com/PyCQA/isort

    isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
pukkandan 86e5f3ed2e
[cleanup] Upgrade syntax
Using https://github.com/asottile/pyupgrade

1. `__future__` imports and `coding: utf-8` were removed
2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format`
3. f-strings were cherry-picked from `pyupgrade --py36-plus`

Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
krichbanana ca5300c7ed
[youtube] Add `:ytnotifications` extractor ()
Authored by: krichbanana
pukkandan a25bca9f89
[youtube, cleanup] Minor refactoring
Authored by: coletdjnz, pukkandan
coletdev 61d3665d9d
[youtube] Fix uploader for collaborative playlists ()
Authored by: coletdjnz
pukkandan a44ca5a470
[cleanup] Misc fixes
Closes https://github.com/yt-dlp/yt-dlp/pull/3213, Closes https://github.com/yt-dlp/yt-dlp/pull/3117

Related: https://github.com/yt-dlp/yt-dlp/issues/3146#issuecomment-1077323114, https://github.com/yt-dlp/yt-dlp/pull/3277#discussion_r841019671, a825ffbffa (commitcomment-68538986), https://github.com/yt-dlp/yt-dlp/issues/2360, 5fa3c9a88f (r70393519), 5fa3c9a88f (r70393254)
pukkandan a17526e427
[youtube:tab] Minor improvements (See desc)
* Support shorts on channel homepage
* Extract thumbnail of OLAK playlists
coletdev ad210f4fd4
[youtube:search] Support hashtag entries ()
Authored-by: coletdjnz
David e7870111e8
[YouTube] Add new age-gate bypass ()
Closes 
Authored by: zerodytrash, pukkandan
coletdev 1c1b2f96ae
[youtube:tab] Fix duration extraction for shorts ()
Related: https://github.com/TeamNewPipe/NewPipe/issues/8034
Authored-by: coletdjnz
pukkandan 1235d333ab
[youtube] Fix auto-translated automatic captions
d49669acad only covered ASR

Closes 
pukkandan 18e4940825
[youtube] Add extractor-arg to skip auto-translated subs
shirt 727029c508
[youtube] Detect DRM better
Authored by: shirt-dev
coletdev fd2ad7cb24
[youtube:tab] Return shorts url if video is a short ()
Allows filtering out shorts from feeds with `--match-filter`
Closes 
Authored-by: coletdjnz
pukkandan ae72962643
[youtube] Try embedded client variants before agegate
agegate variants appears to be broken, but don't remove them for the time-being
pukkandan 52efa4b312
[extractor] Add `_perform_login` function ()
* Adds new functions `_initialize_pre_login` and `_perform_login` as part of the extractor API
* Adds `ie.supports_login` to the public API
pukkandan e4b98809cf
[youtube] Fix pagination of `membership` tab
pukkandan a1b2d84360
[youtube] Avoid false positives when detecting damaged formats
Closes 
coletdjnz 5dbc77df26
[youtube:api] Prefer minified JSON response
Authored-by: coletdjnz
coletdev b3edc8068e
[downloader/mhtml] Fix fragments with absolute urls ()
Authored-by: coletdjnz
coletdev 17322130a9
[youtube] Improve video upload date handling ()
* Don't prefer UTC upload date for past live streams/premieres
* Improve regex (fixes a regression)

Authored-by: coletdjnz
pukkandan ff91cf7483
[utils] Add `get_first`
pukkandan a405b38f20
[youtube] Further de-prioritize 3gp format
pukkandan 08d30158ec
[cleanup, docs] Misc cleanup
Closes , closes , closes , closes 
coletdev 992f9a730b
[youtube] Prefer UTC upload date for videos ()
Except for live/scheduled streams/premieres. 
Closes 
Related:  
Authored-by: coletdjnz
pukkandan d49669acad
[youtube] Fix automatic captions
Closes 
pukkandan e48b3875ec
Revert 2e4cacd038
Closes 
coletdev 7c219ea601
[youtube:tab] Follow redirect to regional channel ()
Closes 
Authored by: coletdjnz
Lesmiscore (Naoya Ozaki) a539f06570
[downloader/fragment] Improve `--live-from-start` for YouTube livestreams ()
pukkandan 1108613f02
[youtube:tab] Reject webpage data if redirected to home page
Closes 
pukkandan a30a6ed3e4
[youtube:tab] Add `approximate_date` extractor-arg
Lesmiscore a7d4acc018
[youtube] Escape possible `$` in `_extract_n_function_name` regex
pukkandan 0ad92dfb18
[youtube] De-prioritize potentially damaged formats
Closes 
pukkandan 2e4cacd038
[youtube] Fix intermittent failure of embed-based age-gate bypass
MinePlayersPE c571b3a6ab
[youtube] Fix n-sig extraction for phone player JS ()
Authored by: MinePlayersPE
coletdev 60f393e48b
[youtube] Ensure subtitle urls are absolute ()
Closes 

Authored by: coletdjnz
pukkandan ab6df717d1
[youtube] Differentiate descriptive audio by language code
Related: 
pukkandan 0c8d9e5fec
[youtube] Label original auto-subs
Closes 
pukkandan 84bbc54599
[youtube:search] Add tests
coletdjnz af5c1c553e
[youtube] Fix search extractor
Regression introduced in 16aa9ea41d. Closes 
Authored-by: coletdjnz
pukkandan 455a15e2dc
[cleanup,docs] Minor fixes
Closes , 
pukkandan 182bda88e8
[youtube, cleanup] Misc fixes and cleanup
pukkandan 16aa9ea41d [youtube] Add extractor `YoutubeMusicSearchURLIE`
Closes 
pukkandan 48416bc4a8
[youtube] Fix n-sig for player e06dea74
coletdjnz 87e8e8a7d0
[youtube:api] Do not use seek when reading HTTPError response
Authored-by: coletdjnz
pukkandan 6970b6005e
[cleanup] Minor fixes
Closes 
pukkandan e0ddbd02bd
[cleanup] Use format_field where applicable
coletdjnz 6c73052c0a
[youtube] Extract channel subscriber count ()
Closes 
* Adds `channel_follower_count` field
Authored-by: coletdjnz