Open schumi2004 opened 10 years ago
Currently the location is added after the pp If XDM also add a location beforehand it would have the original name too Besides if we had a subtitle downloader I would simply run it before the mover (The mover would need to move the "associated" files too)
I could add some other default options with an example And add a Ajax call that would evaluate the pattern and spit out some examples
That would be great, currently i have no clue how the default would look like.
To come back on your solution regarding sub titles. The tool used (autosub bootstrap bill) can't be triggered this way, before mover. The tool checks a predefined dir, same as mover, and then checks for available subs etc. Therefor having the option to keep original filename would be nice. Haven't checked yet if this is already possible but a quick view yesterday didn't gave me the idea it's possible
Having the "rename" function for folder mover would be nice also for both folder and file in it.
Ah now I know what you need want
Having the original "scene release" filename is my preferred setting, less change on faulty subs and easy to identify source. But that's my opinion
Can't we extract the Renamer function from Episode mover and make it a Addon itself? This way you can use it for any item you want to have renamed/moved. Or maybe add it to the generic mover?
currently the renamer has a strict (hardcoded) mapping from string replacements to element field names
map = {"show_name": element.parent.parent.title,
"title": element.title,
"s#": element.parent.number,
"e#": element.number,
}
if you want to make it a general thing we need to find a way to dynamically go thru the format string find all place holder names then field the fields in there and find a logic to go to the parent
Is the original release name returned by the indexer stored in any way and perhaps accessible in the format strings?
Default it's set to {show_name}/Season {s#:0>2}/{show_name} - s{s#:0>2}e{e#:0>2} - {title} but it's unclear for me how it will look like.
Maybe some default options (like in SickBeard) were you can chose for keep original or custom with examples? Lower case and upper case etc.
Keep original filename is an important 1 for me. When using subtitle search engines best thing is to keep filename original. Maybe you can add this option to?