Added yt-dlp options for year formatting (#188)

This commit is contained in:
Kieran 2024-04-16 16:54:55 -07:00 committed by GitHub
parent b2e5e9b880
commit 4721957875
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View file

@ -42,8 +42,14 @@ defmodule Pinchflat.Downloading.DownloadOptionBuilder do
end
defp default_options do
# Add force-overwrites to make sure redownloading works
[:no_progress, :windows_filenames, :force_overwrites]
[
:no_progress,
:windows_filenames,
# Add force-overwrites to make sure redownloading works
:force_overwrites,
# This makes the date metadata conform to what jellyfin expects
parse_metadata: "%(upload_date>%Y-%m-%d)s:(?P<meta_date>.+)"
]
end
defp subtitle_options(media_profile) do

View file

@ -55,6 +55,7 @@ defmodule Pinchflat.Downloading.DownloadOptionBuilderTest do
assert :no_progress in res
assert :windows_filenames in res
assert :force_overwrites in res
assert {:parse_metadata, "%(upload_date>%Y-%m-%d)s:(?P<meta_date>.+)"} in res
end
end