(2013-05-17, 15:38)mdbennett3 Wrote: Spinalcrack - I'm having an issue with the naming of the file after the movie is ripped. Is there a way the file name can be saved as the actual movie name? Wanting to change the output file name and remove the 01 or 001 that is listed in the file name...
Thanks in advance!
The reason that the file name has the numbers on the end is because MakeMKV will rip any stream over the minimum rip length you set in the options. So if there is say 3 streams it will create title01, title02, title03. The script then changes title to the name of the movie and puts an underscore between it and the number. If it removed the number, only the last stream would be saved as each would overwrite each other. You would also probably have to code in error handling to the script as it would warn that a file with that name already exists. If you want to play around with it you can change this part at the bottom of the script
Code:
:rename
::Cuts off 1st 5 characters of fname, then appends prefix
ren %fname% "%volid%"_%fname:~5%
The 5 characters are the letters of "title" that MakeMKV creates. If you change it to read:
Code:
:rename
::Cuts off 1st 5 characters of fname, then appends prefix
ren %fname% "%volid%"%fname:~7%
That in theory should remove 7 letters and replace it with the volume name of the CD which is normally the movie title. So instead of "title01" becoming "STAR_TREK_01", it would become "STAR_TREK".
If there is only one stream it will work out fine. If there are two streams you will have "title01" become "STAR_TREK" and "title02" try to become "STAR_TREK" and generate an error that currently won't be handled by the script well.
Can I ask why you want to remove the numbering? It should not affect XBMC from adding it to the library correctly at all.