aboutsummaryrefslogtreecommitdiff
path: root/test/test_InfoExtractor.py
AgeCommit message (Collapse)Author
2025-03-24[ie] Fix sorting of HLS audio formats by `GROUP-ID` (#12714)bashonly
Closes #11178 Authored by: bashonly
2024-10-30Fix `--netrc` empty string parsing for Python <=3.10 (#11414)bashonly
Ref: https://github.com/python/cpython/commit/15409c720be0503131713e3d3abc1acd0da07378 Closes #11413 Authored by: bashonly, Grub4K Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
2024-06-12[cleanup] Add more ruff rules (#10149)sepro
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
2024-05-26[misc] Cleanup (#9765)Simon Sawicki
Closes #9763 Authored by: bashonly, seproDev, Grub4K Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
2024-04-21[ie] Make `_search_nextjs_data` non fatal (#8937)Simon Sawicki
Authored by: Grub4K
2023-06-21[utils] `FormatSorter`: Improve `size` and `br`pukkandan
Closes #1596 Previously, when some formats have accurate size and some approximate, the ones with accurate size was always prioritized For formats with known tbr and unknown vbr/abr, we were setting (vbr=tbr, abr=0) for sorting to work. This is no longer needed. Authored by pukkandan, u-spec-png
2023-03-25[extractor] Extract more metadata from ISMpukkandan
Fixes https://github.com/yt-dlp/yt-dlp/commit/81b6102d2099eec78a2db9ae3d101a8503dd4f25#r105892531
2023-02-17Update to ytdl-commit-2dd6c6epukkandan
[YouTube] Avoid crash if uploader_id extraction fails https://github.com/ytdl-org/youtube-dl/commit/2dd6c6edd8e0fc5e45865b8e6d865e35147de772 Except: * 295736c9cba714fb5de7d1c3dd31d86e50091cf8 [jsinterp] Improve parsing * 384f632e8a9b61e864a26678d85b2b39933b9bae [ITV] Overhaul ITV extractor * 33db85c571304bbd6863e3407ad8d08764c9e53b [feat]: Add support to external downloader aria2p
2022-11-17[extractor] Deprecate `_sort_formats`pukkandan
2022-09-30[downloader/ism] Support ec-3 codec (#5004)nixxo
Closes #296 Authored by: nixxo
2022-06-25[cleanup] Consistent style for file headspukkandan
2022-06-25[compat] Remove more functionspukkandan
Removing any more will require changes to a large number of extractors
2022-05-29[extractor/common] Recognize `src` attribute from HTML5 media elements (#3899)Lesmiscore
Authored by: Lesmiscore
2022-05-09[cleanup] Minor fixes (See desc)pukkandan
* [youtube] Fix `--youtube-skip-dash-manifest` * [build] Use `$()` in `Makefile`. Closes #3684 * Fix bug in 385ffb467b2285e85a2a5495b90314ba1f8e0700 * Fix bug in 43d7f5a5d0c77556156a3f8caa6976d3908a1e38 * [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode` * [utils] LazyList: Expose unnecessarily "protected" attributes and other minor cleanup
2022-04-12[cleanup] Sort importspukkandan
Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
2022-04-12[cleanup] Upgrade syntaxpukkandan
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
2022-01-02[extractor] Extract chapters from JSON-LD (#2031)chris
Authored by: iw0nderhow, pukkandan
2022-01-02[extractor] Extract thumbnails from JSON-LD (#2195)nixxo
Authored by: nixxo
2021-12-17[extractor] Support default implicit graph in JSON-LD (#1983)Zenon Mousmoulas
Original PR: https://github.com/ytdl-org/youtube-dl/pull/30229 Per W3C JSON-LD v1.1 §4.9 (non-normative ref): When a JSON-LD document's top-level structure is a map that contains no other keys than @graph and optionally @context (properties that are not mapped to an IRI or a keyword are ignored), @graph is considered to express the otherwise implicit default graph. Authored by: zmousm
2021-07-23[test] Use `pytest` instead of `nosetests` (#482)pukkandan
`nosetests` is no longer being maintained : https://github.com/nose-devs/nose/issues/1099 and will stop working in py 3.10 as can be seen in #480
2021-06-06[cleanup] Point all shebang to `python3` (#372)felix
Authored by: fstirlitz
2021-05-26[extractor] Always prefer native hls downloader by defaultpukkandan
When the manifest is not downloadable by native downloader, it already is able to detect it and switch to `ffmpeg`. So there doesn't seem to be a reason anymore to use ffmpeg as the preferred downloader
2021-04-28[test] Test SSTR manifest parsingFelix S
2021-04-28[test] Test subtitle extraction from DASH manifestsFelix S
2021-04-28[test] Test subtitle extraction from HLS manifestsFelix S
2021-04-28[extractor/common] Extract HLS subtitle tracksFelix S
_extract_m3u8_formats is renamed to _extract_m3u8_formats_and_subtitles and extended to handle subtitle tracks instead of skipping them; a wrapper with the old name is provided for compatibility. _parse_m3u8_formats is likewise renamed and extended, but without adding the compatibility wrapper; the test suite is adjusted to test the enhanced method instead.
2021-02-25Completely change project name to yt-dlp (#85)Pccode66
* 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
2021-02-24Better support HLS media discontinuity and fully support media ↵shirt-dev
initialization (#105) * Added options: `--hls-split-discontinuity` and `--no-hls-split-discontinuity` Authored-by: shirtjs <2660574+shirtjs@users.noreply.github.com>
2021-01-05Update to ytdl-2021.01.03pukkandan
2020-09-02[skip travis] renamingUnknown
to avoid using same folder when using pip install for example
2019-03-17[extractor/common] Improve HTML5 entries extraction and add some realworld testsSergey M․
2019-03-15[test_InfoExtractor] Add test for #20346Sergey M․
2019-03-11Start moving to ytdl-orgSergey M․
2019-02-08[malltv] Add extractor (closes #18058)Ales Jirasek
2019-01-20[test/test_InfoExtractor] add test for #18923Remita Amine
2018-11-03[extractor/common] Ensure response handle is not prematurely closed before ↵Xiao Di Guan
it can be read if it matches expected_status (resolves #17195, closes #17846, resolves #17447)
2018-03-18Generalize XML manifest processing code and improve XSPF parsing (closes #15794)Sergey M․
2018-03-18[extractor/generic] Support relative URIs in _parse_xspfRicardo Constantino
<location> can have relative URIs, not just absolute.
2017-12-29[extractor/common] Fix extraction of DASH formats with the same ↵Sergey M․
representation id (closes #15111)
2017-12-02Add references for #14844Sergey M․
2017-12-02[extractor/common] Add support for DASH manifests with SegmentLists with ↵Petr Novak
bare SegmentURLs
2017-11-27[test_InfoExtractor] Fix flake8Yen Chi Hsuan
2017-11-04[test_InfoExtractor] Add test for #14660Sergey M․
2017-08-15[extractor/common] Add support for float durations in _parse_mpd_formats ↵Sergey M․
(closes #13919)
2017-04-28[test_InfoExtractor] Fix test_parse_m3u8_formatsSergey M․
2017-04-27Don't list master m3u8 playlists in format list (closes #12832)Sergey M․
2017-04-23[test_InfoExtractor] Add m3u8 parsing test for NAME attribute in ↵Sergey M․
EXT-X-STREAM-INF tag
2017-04-22[extractor/common] Improve m3u8 extraction (closes #12211)Sergey M․
* Extract m3u8 parsing to separate method * Improve rendition groups extraction * Build stream name according stream GROUP-ID * Ignore reference to AUDIO group without URI when stream has no CODECS + Add test coverage for parsing m3u8 from #11507, #11995, #12211 and twitch vod
2017-03-17[test_InfoExtractor] Add some realworld tests for _extract_jwplayer_dataSergey M․
2016-11-17Update coding style after pycodestyle 2.1.0Yen Chi Hsuan
In pycodestyle 2.1.0, E305 was introduced, which requires two blank lines after top level declarations, too. See https://github.com/PyCQA/pycodestyle/issues/400 See also #10689; thanks @stepshal for first mentioning this issue and initial patches