testing
This commit is contained in:
parent
8de9a5b6da
commit
5a10e016c7
5 changed files with 113 additions and 34 deletions
|
|
@ -1,36 +1,3 @@
|
||||||
|
|
||||||
|
|
||||||
presets:
|
presets:
|
||||||
|
|
||||||
best_video_quality:
|
|
||||||
format: "bestvideo+bestaudio/best"
|
|
||||||
ytdl_options:
|
|
||||||
merge_output_format: "mp4"
|
|
||||||
|
|
||||||
max_1080p:
|
|
||||||
format: "(bv*[height<=1080]+bestaudio/best[height<=1080])"
|
|
||||||
ytdl_options:
|
|
||||||
merge_output_format: "mp4"
|
|
||||||
|
|
||||||
chunk_initial_download:
|
|
||||||
ytdl_options:
|
|
||||||
max_downloads: 20
|
|
||||||
playlistreverse: True
|
|
||||||
break_on_existing: False
|
|
||||||
break_on_reject: True
|
|
||||||
|
|
||||||
"Only Recent":
|
|
||||||
# Only fetch videos after today minus date_range
|
|
||||||
date_range:
|
|
||||||
after: "today-{only_recent_date_range}"
|
|
||||||
|
|
||||||
# Only keep files uploaded after date_range
|
|
||||||
output_options:
|
|
||||||
keep_files_after: "today-{only_recent_date_range}"
|
|
||||||
keep_max_files: "{only_recent_max_files}"
|
|
||||||
|
|
||||||
# Set the default date_range to 2 months
|
|
||||||
overrides:
|
|
||||||
date_range: "2months" # keep for legacy-reasons
|
|
||||||
only_recent_date_range: "{date_range}"
|
|
||||||
only_recent_max_files: 0
|
|
||||||
|
|
@ -0,0 +1,53 @@
|
||||||
|
presets:
|
||||||
|
|
||||||
|
"Only Recent":
|
||||||
|
# Only fetch videos after today minus date_range
|
||||||
|
date_range:
|
||||||
|
after: "today-{only_recent_date_range}"
|
||||||
|
|
||||||
|
# Only keep files uploaded after date_range
|
||||||
|
output_options:
|
||||||
|
keep_files_after: "today-{only_recent_date_range}"
|
||||||
|
keep_max_files: "{only_recent_max_files}"
|
||||||
|
|
||||||
|
# Set the default date_range to 2 months
|
||||||
|
overrides:
|
||||||
|
date_range: "2months" # keep for legacy-reasons
|
||||||
|
only_recent_date_range: "{date_range}"
|
||||||
|
only_recent_max_files: 0
|
||||||
|
|
||||||
|
|
||||||
|
"Fetch Newest":
|
||||||
|
# Only fetch videos after today minus date_range
|
||||||
|
date_range:
|
||||||
|
after: "today-{only_recent_date_range}"
|
||||||
|
|
||||||
|
# Set the default date_range to 2 months
|
||||||
|
overrides:
|
||||||
|
date_range: "2months" # keep for legacy-reasons
|
||||||
|
only_recent_date_range: "{date_range}"
|
||||||
|
|
||||||
|
|
||||||
|
"Delete Oldest":
|
||||||
|
# Only keep files uploaded after date_range
|
||||||
|
output_options:
|
||||||
|
keep_files_after: "today-{only_recent_date_range}"
|
||||||
|
keep_max_files: "{only_recent_max_files}"
|
||||||
|
|
||||||
|
# Set the default date_range to 2 months
|
||||||
|
overrides:
|
||||||
|
date_range: "2months" # keep for legacy-reasons
|
||||||
|
only_recent_date_range: "{date_range}"
|
||||||
|
only_recent_max_files: 0
|
||||||
|
|
||||||
|
|
||||||
|
chunk_initial_download:
|
||||||
|
ytdl_options:
|
||||||
|
max_downloads: 20
|
||||||
|
playlistreverse: True
|
||||||
|
break_on_existing: False
|
||||||
|
break_on_reject: True
|
||||||
|
|
||||||
|
"Download in Chunks":
|
||||||
|
preset:
|
||||||
|
- chunk_initial_download
|
||||||
40
src/ytdl_sub/prebuilt_presets/helpers/media_quality.yaml
Normal file
40
src/ytdl_sub/prebuilt_presets/helpers/media_quality.yaml
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
presets:
|
||||||
|
|
||||||
|
best_video_quality:
|
||||||
|
format: "bestvideo+bestaudio/best"
|
||||||
|
ytdl_options:
|
||||||
|
merge_output_format: "mp4"
|
||||||
|
|
||||||
|
"Best AV Quality":
|
||||||
|
preset:
|
||||||
|
- best_video_quality
|
||||||
|
|
||||||
|
|
||||||
|
"Max 2160p":
|
||||||
|
format: "(bv*[height<=2160]+bestaudio/best[height<=2160])"
|
||||||
|
ytdl_options:
|
||||||
|
merge_output_format: "mp4"
|
||||||
|
|
||||||
|
"Max 1440p":
|
||||||
|
format: "(bv*[height<=1440]+bestaudio/best[height<=1440])"
|
||||||
|
ytdl_options:
|
||||||
|
merge_output_format: "mp4"
|
||||||
|
|
||||||
|
max_1080p:
|
||||||
|
format: "(bv*[height<=1080]+bestaudio/best[height<=1080])"
|
||||||
|
ytdl_options:
|
||||||
|
merge_output_format: "mp4"
|
||||||
|
|
||||||
|
"Max 1080p":
|
||||||
|
preset:
|
||||||
|
- max_1080p
|
||||||
|
|
||||||
|
"Max 720p":
|
||||||
|
format: "(bv*[height<=720]+bestaudio/best[height<=720])"
|
||||||
|
ytdl_options:
|
||||||
|
merge_output_format: "mp4"
|
||||||
|
|
||||||
|
"Max 480p":
|
||||||
|
format: "(bv*[height<=480]+bestaudio/best[height<=480])"
|
||||||
|
ytdl_options:
|
||||||
|
merge_output_format: "mp4"
|
||||||
18
src/ytdl_sub/prebuilt_presets/helpers/premade_regex.yaml
Normal file
18
src/ytdl_sub/prebuilt_presets/helpers/premade_regex.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
presets:
|
||||||
|
|
||||||
|
# Use with "YouTube Releases" to parse out each videos album and title and save accordingly
|
||||||
|
|
||||||
|
"YouTube Music Releases":
|
||||||
|
regex:
|
||||||
|
skip_if_match_fails: True
|
||||||
|
from:
|
||||||
|
title:
|
||||||
|
match: '^(?:(?:.+?)(?= - | \/{2} )(?: - | \/{2} ))*([^\[\{\(\|]*?)\s*(?=\{|\(|\||\[|$).*'
|
||||||
|
capture_group_names:
|
||||||
|
- "captured_track_title"
|
||||||
|
capture_group_defaults:
|
||||||
|
- "{title}"
|
||||||
|
description:
|
||||||
|
match: '^(?:Provided)(?:.*\n){4}([^\[\{\(\|]*?)\s*(?=\{|\(|\||\[|$|\n).*'
|
||||||
|
capture_group_names: "captured_track_album"
|
||||||
|
capture_group_defaults: "Singles"
|
||||||
|
|
@ -325,3 +325,4 @@ presets:
|
||||||
url98: "{subscription_value_98}"
|
url98: "{subscription_value_98}"
|
||||||
url99: "{subscription_value_99}"
|
url99: "{subscription_value_99}"
|
||||||
url100: "{subscription_value_100}"
|
url100: "{subscription_value_100}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue