Kodi Community Forum

Full Version: HELP - Auto rename file from file name of another file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

WingmanNZ

I am hoping someone can help me with this.

I had all my moves sorted by folder with nfo,tbn,fanart etc

now due to losing my RAID I lost everything. after tricking xbmc and exporting the database i have all the folders and nfo/tbn (low res) and fanart.

I now want to find a way to script taking the file name of the nfo (minus the extension)

"AVP - Alien vs. Predator (2004) [dvd.480p.mp3-2ch].nfo"

and rename any AVI file it finds next to the nfo file with it.

so it will find
"Alien Vs Predator 1 (2004).avi"

and name it

"AVP - Alien vs. Predator (2004) [dvd.480p.mp3-2ch].avi"

I dont have any CD1/CD2 movies so thats not an issue.


Thanks in advanced!

WingmanNZ

WinGmaN Wrote:I am hoping someone can help me with this.

I had all my moves sorted by folder with nfo,tbn,fanart etc

now due to losing my RAID I lost everything. after tricking xbmc and exporting the database i have all the folders and nfo/tbn (low res) and fanart.

I now want to find a way to script taking the file name of the nfo (minus the extension)

"AVP - Alien vs. Predator (2004) [dvd.480p.mp3-2ch].nfo"

and rename any AVI file it finds next to the nfo file with it.

so it will find
"Alien Vs Predator 1 (2004).avi"

and name it

"AVP - Alien vs. Predator (2004) [dvd.480p.mp3-2ch].avi"

I dont have any CD1/CD2 movies so thats not an issue.


Thanks in advanced!

Just a big thanks to EqUiNoX for helping me with this! I now have all my AVIs renamed correctly!