Default script:
if (%is_external%)
{
//external subtitles probably don't have all details so we use original filename
return %original_filename%;
}
//subtitle is from Sublight database which have all details
string fileName;
if (%has_episode%)
{
fileName = string.Format("{0} ({1}), S{2:00}E{3:00} - {4}", %title%, %year%, %season%, %episode%, %ll%);
}
else
{
fileName = string.Format("{0} ({1}) - {2}", %title%, %year%, %ll%);
}
if (%parts% > 1)
{
//append part number
fileName += string.Format(" - {0} of {1}", %partnum%, %parts%);
}
//append extension
fileName += string.Format(".{0}", %extension%);
//replace any invalid characters with empty string and return result
return EnsureValidFileName(fileName, string.Empty);
Output example:
The Big Bang Theory (2007), S05E12 - en.srt
Godfather, The (1972) - es - 1 of 2.sub
Godfather.1974.MyDvdBackup (AutoSearch).sub