svtplay-dl icon indicating copy to clipboard operation
svtplay-dl copied to clipboard

[Request] Make format/codec and resolution filename variables in config

Open tivolimeister opened this issue 3 years ago • 3 comments

Would like format/codec (x264/x265) and resolution (720p/1080p) to be available as variables in the config file.

filename: "{title}.s{season}e{episode}.{resolution}.{format}.{ext}"

Sound codec and details would also be nice but I suspect that isn't available.

tivolimeister avatar Feb 28 '22 11:02 tivolimeister

sure i can make it possible to add codecs H264 and H265 info to it. x264 and x265 is the encoders that is used for some or majority of H264 and H265 video. In most cases that info are available, when its not there i guess we could default to H264.

resolution could be possible too. but how do we do when there is no info available? just choose a default one like 480p even it could be 720p? or just have it as empty string and make the filename bad? DonaldDuck.s20e39..h264.mkv ? 🤔

spaam avatar Feb 28 '22 11:02 spaam

I would say empty if it cannot be determined. Or let there be a "keyword" so default values can be chosen (codec_unknown_value etc). Or control the behavior (codec_behavior: empty/default). Upside to this is you can control it per service.

tivolimeister avatar Feb 28 '22 11:02 tivolimeister

Also additional {title} and {episodename} without space to dot conversion would be nice.

tivolimeister avatar Feb 28 '22 11:02 tivolimeister