ytdl-sub/tests/resources/file_fixtures/repro.yaml
2024-11-02 00:07:41 -07:00

53 lines
1.8 KiB
YAML

__preset__:
overrides:
music_directory: "hi"
YouTube Full Albums:
= Lofi:
"~Game Chops":
url: "https://www.youtube.com/playlist?list=PLBsm_SagFMmdWnCnrNtLjA9kzfrRkto4i"
chapter_title_regex_array:
- "^\\d+\\.\\.(.*)" # Captures 'title' from '1..title'
chapter_title_capture: >-
{
%regex_capture_many( chapter_title, chapter_title_regex_array, [chapter_title] )
}
track_title: "{%array_at(chapter_title_capture, 1)}"
= Eastern Bloc:
"Eastern Bloc":
output_options:
migrated_download_archive_name: ".Eastern Bloc-download-archive.json"
overrides:
title_capture_regex_array:
- "^(.*) - (.*) \\|\\|.*" # Captures artist, album from 'artist - album ||...'
- "^(.*) - (.*) \\[.*" # Captures artist, ablum from 'artist - album [...'
- "^(.*) - (.*)" # Captures artist, ablum from 'artist - album'
title_capture: >-
{
%regex_capture_many( title, title_capture_regex_array )
}
description_capture_regex_array:
- "Genre:\\s*(.*)\\s*\n(?:Rec.+|Year):\\s*.*(\\d{4})\\s*\\n" # Captures genre and recorded year
description_capture: >-
{
%regex_capture_many( description, description_capture_regex_array, )
}
chapter_title_regex_array:
- "^(?:\\d+\\.\\s*|)(.*)" # Captures title from '1. title'
chapter_title_capture: >-
{
%regex_capture_many( chapter_title, chapter_title_regex_array, [chapter_title] )
}
url: "https://www.youtube.com/@heavymetalofeasternbloc"
track_artist: "{%array_at(title_capture, 1)}"
track_album: "{%array_at(title_capture, 2)}"
track_title: "{%array_at(chapter_title_capture, 1)}"
track_year: "{%array_at(description_capture, 1)}"