ytdl-sub/tests/unit
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
..
cli [FEATURE] Add --dl-override to pass dl arg overrides to all subscriptions (#882) 2024-01-08 15:19:01 -08:00
config [FEATURE] Automatically handle playlists ordered in reverse (#948) 2024-04-01 04:24:41 -07:00
docgen [DOCS] Advanced scripting usage, rename Overrides to Static (#866) 2024-01-01 00:01:46 -08:00
entries [BACKEND][HUGE] Function Support in variable syntax (#838) 2023-12-18 16:08:15 -08:00
main [FEATURE] --match flag to only run subset of subscriptions (#881) 2024-01-08 13:37:07 -08:00
plugins [FEATURE] Toggleable plugin field enable for all dict-based plugins (#897) 2024-01-11 00:40:07 -08:00
prebuilt_presets [BACKEND][HUGE] Function Support in variable syntax (#838) 2023-12-18 16:08:15 -08:00
script [FEATURE] Automatically handle playlists ordered in reverse (#948) 2024-04-01 04:24:41 -07:00
utils [FEATURE] Toggleable plugin field enable for all dict-based plugins (#897) 2024-01-11 00:40:07 -08:00
validators [BACKEND][HUGE] Function Support in variable syntax (#838) 2023-12-18 16:08:15 -08:00
__init__.py entry 100% test coverage 2022-03-30 16:48:04 +00:00
conftest.py [BACKEND][HUGE] Function Support in variable syntax (#838) 2023-12-18 16:08:15 -08:00