aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
Commit message (Collapse)AuthorAgeFilesLines
...
* [extractor] Add `_search_json`pukkandan2022-06-061-12/+12
| | | | | All fetching of JSON objects should eventually be done with this function but only `youtube` is being refactored for now
* [extractor/0000studio] Add extractors (#3959)Lesmiscore2022-06-051-2/+5
| | | Authored by: Lesmiscore
* [cleanup] Misc fixespukkandan2022-06-031-2/+3
| | | | | | Cherry-picks from: #3498, #3947 Related: #3949, https://github.com/yt-dlp/yt-dlp/issues/1839#issuecomment-1140313836 Authored by: pukkandan, flashdagger, gamer191
* [extractor] Fix bug in 617f658b7ec1193749848c1b7343acab125dbc46pukkandan2022-06-031-8/+20
| | | | | | | While the function signature don't enforce it, some IEs that override `_download_webpage_handle` assume all optional arguments to be keyword-only Closes #3954
* [extractor/npr] Use stream url from json-ld (#3455)siddharth ravikumar2022-06-021-1/+3
| | | | Closes #1934 Authored by: r5d
* [extractor] Fix bug in f95b9dee4501eed75e7dba984cd914f7f16e3bf1pukkandan2022-06-031-3/+6
| | | | Closes #3951
* [extractor] Add dev option `--load-pages`pukkandan2022-06-011-36/+48
|
* [extractor, cleanup] Refactor `_download_...` methodspukkandan2022-06-011-168/+101
|
* [extractor/common] Recognize `src` attribute from HTML5 media elements (#3899)Lesmiscore2022-05-291-2/+5
| | | Authored by: Lesmiscore
* [extractor/youtube] Fix initial player response extractioncoletdjnz2022-05-291-2/+10
| | | | Authored by: pukkandan, coletdjnz
* [cleanup] Misc fixes and cleanuppukkandan2022-05-271-2/+1
| | | | Closes #3780, Closes #3853, Closes #3850
* [cleanup] Miscpukkandan2022-05-211-4/+2
|
* [compat] Add `functools.cached_property`pukkandan2022-05-201-2/+2
|
* [cleanup] Minor fixespukkandan2022-05-181-6/+12
|
* [cleanup] Misc cleanuppukkandan2022-05-171-14/+15
|
* [extractor] Use classmethod/property where possiblepukkandan2022-05-131-28/+30
| | | | | | and refactor lazy extractors accordingly. This reduces the need to create extractor instances
* [extractor] Document netrc machinespukkandan2022-05-111-14/+37
| | | | Closes #3169
* Remove warning for videos with an empty titlepukkandan2022-05-071-1/+3
|
* [cleanup] Misc fixes (see desc)pukkandan2022-05-011-1/+1
| | | | | | | | * Do not warn when fixup is skipped for existing file * [fragment] Fix `--skip-unavailable-fragments` for HTTP Errors * [utils] write_string: Fix bug in 59f943cd5097e9bdbc3cb3e6b5675e43d369341a * [utils] parse_codecs: Subtitle codec is generally referred to as `scodec`. https://github.com/yt-dlp/yt-dlp/pull/2174#discussion_r790156048 * [docs] Remove note about permissions. Closes #3597
* [cleanup] Misc fixespukkandan2022-04-291-2/+1
| | | | Closes #3565, https://github.com/yt-dlp/yt-dlp/issues/3514#issuecomment-1105944364
* Improve `--clean-infojson`pukkandan2022-04-281-2/+4
| | | | | It should not removes fields that may be needed for `--load-infojson`. Eg: `_ffmpeg_args`, `_has_drm`
* [extractor] Update `manifest_url`s after redirect (#3575)Elyse2022-04-271-11/+23
| | | Authored by: elyse0
* [extractor] Update dash `manifest_url` after redirects (#3563)Elyse2022-04-271-1/+4
| | | | Closes #2696 Authored by: elyse0
* [compat] Split into sub-modules (#2173)felix2022-04-181-3/+2
| | | | Authored by: fstirlitz, pukkandan
* [cleanup] Sort importspukkandan2022-04-121-13/+10
| | | | | | Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
* [cleanup] Upgrade syntaxpukkandan2022-04-121-20/+17
| | | | | | | | | | 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
* [cleanup] Mark some compat variables for removal (#2173)pukkandan2022-04-121-6/+5
| | | | Authored by fstirlitz, pukkandan
* [cleanup] Remove unused code paths (#2173)felix2022-04-121-3/+1
| | | | | | | | | | | | | | | | | | | Notes: * `_windows_write_string`: Fixed in 3.6 * https://bugs.python.org/issue1602 * PEP: https://www.python.org/dev/peps/pep-0528 * Windows UTF-8 fix: Fixed in 3.3 * https://bugs.python.org/issue13216 * `__loader__`: is always present in 3.3+ * https://bugs.python.org/issue14646 * `workaround_optparse_bug9161`: Fixed in 2.7 * https://bugs.python.org/issue9161 Authored by: fstirlitz
* [youtube] Fix uploader for collaborative playlists (#3332)coletdev2022-04-071-2/+4
| | | Authored by: coletdjnz
* [cleanup] Misc fixespukkandan2022-04-051-3/+5
| | | | | | 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, https://github.com/yt-dlp/yt-dlp/commit/a825ffbffa0bea322e3ccb44c6f8e01d8d9572fb#commitcomment-68538986, https://github.com/yt-dlp/yt-dlp/issues/2360, https://github.com/yt-dlp/yt-dlp/commit/5fa3c9a88f597625296981a4a26be723e65d4842#r70393519, https://github.com/yt-dlp/yt-dlp/commit/5fa3c9a88f597625296981a4a26be723e65d4842#r70393254
* [cleanup] Use `_html_extract_title`pukkandan2022-04-041-6/+4
|
* [elonet] Rewrite extractor (#3277)Fam0r2022-04-031-2/+2
| | | | Closes #2911 Authored by: Fam0r, pukkandan
* [utils] Add `filter_dict`pukkandan2022-03-281-1/+2
|
* [docs] Minor improvementspukkandan2022-03-241-3/+3
| | | | Closes #3127, Closes #3081, Closes #3177
* Fix bug in 52efa4b31200119adaa8acf33e50b84fcb6948f0pukkandan2022-03-241-0/+1
| | | | Closes #3173
* [extractor] Allow control characters inside jsonpukkandan2022-03-241-1/+1
| | | | Closes #3174
* [extractor] Add `_perform_login` function (#2943)pukkandan2022-03-181-6/+36
| | | | * Adds new functions `_initialize_pre_login` and `_perform_login` as part of the extractor API * Adds `ie.supports_login` to the public API
* [extractor] Support merging subtitles with datacoletdjnz2022-03-121-3/+3
| | | | Authored-by: coletdjnz
* [cleanup, docs] Misc cleanuppukkandan2022-03-081-29/+30
| | | | Closes #2828, closes #2734, closes #2802, closes #2937
* [utils] Better traceback for `ExtractorError`pukkandan2022-03-081-1/+1
|
* [ant1newsgr] Add extractor (#1982)Zenon Mousmoulas2022-03-041-2/+2
| | | Authored by: zmousm
* [FormatSort] Consider `acodec`=`ogg` as `vorbis`pukkandan2022-03-041-1/+1
|
* Fix doubling of `video_id` in `ExtractorError`pukkandan2022-03-041-1/+2
|
* [extractor] Support `--mark-watched` without `_NETRC_MACHINE` (#2939)coletdev2022-03-031-1/+1
| | | Authored by: coletdjnz
* [nhk] Add support for NHK for School (#2850)Lesmiscore (Naoya Ozaki)2022-02-231-0/+4
| | | | Authored by: Lesmiscore
* [extractor] Fix for manifests without period durationpukkandan2022-02-171-1/+7
| | | | | Closes #2705 Authored by: dirkf, pukkandan
* [extractor] Allow `http_headers` to be specified for `thumbnails`pukkandan2022-02-111-0/+3
|
* [downloader] Do not use aria2c for non-native `m3u8`pukkandan2022-02-111-1/+1
| | | | Closes #2718
* [cleanup,docs] Minor fixespukkandan2022-02-031-1/+2
| | | | Closes #2541, #2484
* [generic] Allow further processing of json_ld URLpukkandan2022-02-021-1/+1
| | | | Closes #2578