ytdl-sub/src/ytdl_sub/utils
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 setup cfg 2022-04-26 07:19:53 +00:00
chapters.py [BACKEND][HUGE] Function Support in variable syntax (#838) 2023-12-18 16:08:15 -08:00
datetime.py [BACKEND][HUGE] Function Support in variable syntax (#838) 2023-12-18 16:08:15 -08:00
exceptions.py [FEATURE][EXPERIMENTAL] --update-with-info-json (#557) 2023-03-21 08:05:08 -07:00
ffmpeg.py [FEATURE] Prebuilt Music Videos (#787) 2023-10-28 00:12:22 -07:00
file_handler.py [DOCS] Tooling to auto-generate custom sphinx docs (#849) 2023-12-28 22:39:59 -08:00
file_lock.py [DOCS] Update links to reflect doc-upgrade (#858) 2023-12-27 11:07:11 -08:00
file_path.py [BACKEND][HUGE] Function Support in variable syntax (#838) 2023-12-18 16:08:15 -08:00
logger.py [FEATURE] --match flag to only run subset of subscriptions (#881) 2024-01-08 13:37:07 -08:00
retry.py [BUGFIX] Retry channel image downloads, continue if it fails (#218) 2022-09-06 16:12:28 -07:00
script.py [DEV] Fix resolve_once script bug with custom functions (#952) 2024-03-30 00:53:05 -07:00
scriptable.py [FEATURE] Automatically handle playlists ordered in reverse (#948) 2024-04-01 04:24:41 -07:00
subtitles.py [BUGFIX] Handle truncating file names if too long (#524) 2023-03-10 07:20:43 -08:00
system.py [BACKEND] Windows support (#476) 2023-02-28 17:07:03 -08:00
thumbnail.py [BUGFIX] Do not hard-fail if the thumbnail fails to download/convert (#675) 2023-07-28 13:12:46 -07:00
xml.py [FEATURE] Support duplicate NFO keys (#220) 2022-09-07 14:06:13 -07:00
yaml.py [BACKEND] Include yaml exception in error (#678) 2023-07-29 23:05:34 -07:00