From 730ac153496b06838b4d8e8ecfdbc50c84889856 Mon Sep 17 00:00:00 2001 From: Clark <104835586+anonamouslyginger@users.noreply.github.com> Date: Wed, 25 May 2022 10:13:25 +0100 Subject: [PATCH] Fix #241 Use title/uploader for embedded metadata not Content ID (#252) --- tubearchivist/home/src/download/yt_dlp_handler.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tubearchivist/home/src/download/yt_dlp_handler.py b/tubearchivist/home/src/download/yt_dlp_handler.py index 2c24cb0..7ec06b5 100644 --- a/tubearchivist/home/src/download/yt_dlp_handler.py +++ b/tubearchivist/home/src/download/yt_dlp_handler.py @@ -313,6 +313,17 @@ class VideoDownloader: "add_metadata": True, } ) + postprocessors.append( + { + "key": "MetadataFromField", + "formats": [ + "%(title)s:%(meta_title)s", + "%(uploader)s:%(meta_artist)s", + ":(?P)", + ], + "when": "pre_process", + } + ) if self.config["downloads"]["add_thumbnail"]: postprocessors.append(