Save videos: 2022 edition
My current process for running yt-dlp involves detoxing the filenames.
File save-videos.sh.
File config/detoxrc:
sequence default {
uncgi;
iso8859_1 {
filename "/usr/share/detox/iso8859_1.tbl";
};
safe {
filename "config/safe.tbl";
};
wipeup {
remove_trailing;
};
};
And my only differences for config/safe.tbl are:
--- /usr/share/detox/safe.tbl 2022-09-20 15:02:16.000000000 -0400 +++ config/safe.tbl 2022-09-20 10:08:23.326100599 -0400 @@ -99,11 +99,11 @@ 0x09 _ # tab 0x0A _ # new line 0x0D _ # carriage return -0x20 _ # space -0x21 _ # ! +#0x20 _ # space +0x21 '' # ! 0x22 _ # " 0x24 _ # $ -0x27 _ # ' +0x27 '' # ' 0x2a _ # * 0x2f _ # / 0x3a _ # :
I entirely discard exclamation mark ! and single quote ', and do not replace spaces at all.
Comments