ytdl-sub/tests/unit/config
Jesse Bannon 017db953bf
[FEATURE] Automatically handle playlists ordered in reverse (#948)
Playlists have always been a pain-point with ytdl-sub. If an author adds new videos to the end of a playlist, as opposed to the front, it breaks ytdl-sub's intuition of incremental scraping by breaking on the first (oldest) video. This update now makes it possible to handle this in the prebuilt TV Show presets:
- Add each URL variable (`url`, `url2`, ...) into the `download` portion of the subscription twice
- First definition is what we all know and use, simply scrapes first-to-last, then downloads last-to-first
- Second definition does the following:
  - Check to see if a URL is a YouTube playlist URL, if so...
    - Set the field to download, but with modifications to scrape last-to-first, then download first-to-last
  - Otherwise...
    - Set the field to an empty string, which means ytdl-sub will skip it
2024-04-01 04:24:41 -07:00
..
__init__.py Validate all preset StringFormatValidators on init (#79) 2022-06-28 09:34:30 -07:00
conftest.py [BUGFIX] Have __preset__ override nested preset keys (#784) 2023-10-25 11:35:52 -07:00
test_config_file.py [FEATURE] Automatically handle playlists ordered in reverse (#948) 2024-04-01 04:24:41 -07:00
test_preset.py [BACKEND] Remove old format for video_tags, music_tags, download_strategy (#899) 2024-01-15 00:04:32 -08:00
test_subscription.py [FEATURE] Simplify TV Show Collection Preset (#953) 2024-03-30 22:04:45 -07:00