Subtitle and renaming
Posted: 20 Mar 2013, 20:15
Hi
I am in the process of writing my own groovy script for renaming movies and tv shows. To get some inspiration i have been trying the different scripts and seem to have found a bug or unfortunate implementation of getting subtitles.
Lets look at the following script:
def files = dir.listFiles{ it.isVideo() }
files += getMissingSubtitles(file:files[0])
rename(file:files, db:'TVRage', format:tvFormat, strict:false)
This script will get the subtitle but when calling the rename fuction it will remove the .eng. from the subtitle. Is there any way to fix this? The reason i dont just rename the video file first and then get the subtitle is that then i cant move there new location.
Also I was wondering if i should rename the video file first, then download the subtitle based on the correct name. I mean when you do a search on name it is probably easier to find the subtitle if it search on the correct name?
I am in the process of writing my own groovy script for renaming movies and tv shows. To get some inspiration i have been trying the different scripts and seem to have found a bug or unfortunate implementation of getting subtitles.
Lets look at the following script:
def files = dir.listFiles{ it.isVideo() }
files += getMissingSubtitles(file:files[0])
rename(file:files, db:'TVRage', format:tvFormat, strict:false)
This script will get the subtitle but when calling the rename fuction it will remove the .eng. from the subtitle. Is there any way to fix this? The reason i dont just rename the video file first and then get the subtitle is that then i cant move there new location.
Also I was wondering if i should rename the video file first, then download the subtitle based on the correct name. I mean when you do a search on name it is probably easier to find the subtitle if it search on the correct name?