summaryrefslogtreecommitdiff
path: root/home/xyz/.config/yt-dlp
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-09-26 17:46:03 -0700
committerXiao Pan <gky44px1999@gmail.com>2023-09-26 17:46:03 -0700
commit5fad27c4da63f8f8599710c18d84861c2d21c98c (patch)
tree2638248cfdc2cd86c6399ea6b08731d4fa75c3e8 /home/xyz/.config/yt-dlp
parentb411b4aba7caeaa78033a8309e461ce39fe87346 (diff)
make yt-dlp --trim-filenames global instead again, because I see more value of not worrying about this issue happen again in the future
Diffstat (limited to 'home/xyz/.config/yt-dlp')
-rw-r--r--home/xyz/.config/yt-dlp/config6
1 files changed, 6 insertions, 0 deletions
diff --git a/home/xyz/.config/yt-dlp/config b/home/xyz/.config/yt-dlp/config
index 4ed6c4a7..76049422 100644
--- a/home/xyz/.config/yt-dlp/config
+++ b/home/xyz/.config/yt-dlp/config
@@ -9,3 +9,9 @@
# manpage says yt-dlp use --sub-langs, youtube-dl use --sub-lang, but experiment shows yt-dlp also use --sub-lang
--sub-lang zh-Hans,zh-CN,zh-Hant,zh-SG,zh-TW,zh-HK,en,en-US,en-GB
+
+# linux max filename length is 255 bytes, UTF-8 1 character max 4 byptes
+# aria2c will add about max 24 chars behind video name, for example: '.f616.mp4.part.frag.urls'
+# (255-24)/4=57
+# testing youtube videos: EXF4g-2jOJo
+--trim-filenames 57