diff --git a/tubearchivist/home/config.json b/tubearchivist/home/config.json
index 97c6ea7..8b4bb3b 100644
--- a/tubearchivist/home/config.json
+++ b/tubearchivist/home/config.json
@@ -14,7 +14,8 @@
"limit_count": 5,
"limit_speed": false,
"sleep_interval": 3,
- "format": false
+ "format": false,
+ "add_metadata": false
},
"application": {
"cache_dir": "/cache",
@@ -22,4 +23,4 @@
"file_template": "%(id)s_%(title)s.mp4",
"colors": "dark"
}
-}
\ No newline at end of file
+}
diff --git a/tubearchivist/home/src/download.py b/tubearchivist/home/src/download.py
index 0387953..f035f94 100644
--- a/tubearchivist/home/src/download.py
+++ b/tubearchivist/home/src/download.py
@@ -454,6 +454,19 @@ class VideoDownloader:
external = False
if external:
obs['external_downloader'] = 'aria2c'
+
+
+ postprocessors = []
+
+ if self.config['downloads']['add_metadata']:
+ postprocessors.append({
+ 'key': 'FFmpegMetadata',
+ 'add_chapters': True,
+ 'add_metadata': True,
+ })
+
+ obs['postprocessors'] = postprocessors
+
# check if already in cache to continue from there
cache_dir = self.config['application']['cache_dir']
all_cached = os.listdir(cache_dir + '/download/')
diff --git a/tubearchivist/home/templates/home/settings.html b/tubearchivist/home/templates/home/settings.html
index 8199656..243cf4a 100644
--- a/tubearchivist/home/templates/home/settings.html
+++ b/tubearchivist/home/templates/home/settings.html
@@ -106,6 +106,15 @@
+
Current metadata embed setting: {{ config.downloads.add_metadata }}
+ Metadata is not embedded into the downloaded files by default.