mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-24 18:19:11 +00:00
tasks/multimedia-archive: update extra arguments
This commit is contained in:
parent
cffc206eb4
commit
8b839ca866
@ -8,16 +8,13 @@ in {
|
|||||||
config = lib.mkIf cfg.enable (let
|
config = lib.mkIf cfg.enable (let
|
||||||
yt-dlp-args = [
|
yt-dlp-args = [
|
||||||
# Make a global list of successfully downloaded videos as a cache for yt-dlp.
|
# Make a global list of successfully downloaded videos as a cache for yt-dlp.
|
||||||
"--download-archive videos"
|
"--download-archive ${config.services.yt-dlp.archivePath}/videos"
|
||||||
|
|
||||||
# It gave me problems so no continues.
|
|
||||||
"--no-continue"
|
|
||||||
|
|
||||||
# No overwriting of videos and related files.
|
# No overwriting of videos and related files.
|
||||||
"--no-force-overwrites"
|
"--no-force-overwrites"
|
||||||
|
|
||||||
# Embed metadata in the file.
|
# Embed metadata in the file.
|
||||||
"--embed-metadata"
|
"--write-info-json"
|
||||||
|
|
||||||
# Embed chapter markers, if possible.
|
# Embed chapter markers, if possible.
|
||||||
"--embed-chapters"
|
"--embed-chapters"
|
||||||
@ -29,7 +26,7 @@ in {
|
|||||||
"--write-description"
|
"--write-description"
|
||||||
|
|
||||||
# The global output for all of the jobs.
|
# The global output for all of the jobs.
|
||||||
"--output '%(uploader,artist,creator|Unknown)s/%(release_date>%Y,upload_date>%Y|Unknown)s-%(title)s.%(ext)s'"
|
"--output '%(uploader,artist,creator|Unknown)s/%(release_date>%F,upload_date>%F|Unknown)s-%(title)s.%(ext)s'"
|
||||||
|
|
||||||
# Select only the most optimal format for my usecases.
|
# Select only the most optimal format for my usecases.
|
||||||
"--format '(webm,mkv,mp4)[height<=?1280]'"
|
"--format '(webm,mkv,mp4)[height<=?1280]'"
|
||||||
@ -37,6 +34,9 @@ in {
|
|||||||
# Prefer MKV whenever possible for video formats.
|
# Prefer MKV whenever possible for video formats.
|
||||||
"--merge-output-format mkv"
|
"--merge-output-format mkv"
|
||||||
|
|
||||||
|
# Don't download any videos that are originally live streams.
|
||||||
|
"--match-filters '!was_live'"
|
||||||
|
|
||||||
# Prefer Vorbis when audio-only downloads are used.
|
# Prefer Vorbis when audio-only downloads are used.
|
||||||
"--audio-format vorbis"
|
"--audio-format vorbis"
|
||||||
"--audio-quality 2"
|
"--audio-quality 2"
|
||||||
|
Loading…
Reference in New Issue
Block a user