PDA

View Full Version : Renaming (XBMC library conform) tbn


empty
2008-12-28, 01:50
Hello,
I have a problem, I need to rename my whole Video library and to avoid a lot of handcraft I need a script or tool which is renaming to following file(s).


gdwand-xvid cd1.avi
gdwand-xvid cd2.avi
gdwand-xvid.nfo
folder.jpg
"Gegen Die Wand.tbn" must have the same name like the files above.

So the correct naming looks like this:

gdwand-xvid cd1.avi
gdwand-xvid cd2.avi
gdwand-xvid.nfo
gdwand-xvid.tbn

"/Videos/Filme/MovieFolderA"
"/Videos/Filme/MovieFolderB"
and so on

In this path I have a lot of movies which has to be corrected, so if anyone has an idea how I could do this... would be very nice :)

Approach One:
A solution would be that I can tell xbmc that he is using in the library folder.jpg too or is that not clever?

Approach Two:
Another alternate solution could be to rename all the *.avi,*.idx*.sub with the scheme parentfolder but there is that problem there are some movies which are splitted in 2x700mb so I could only rename one avi automatic and the another per hand :( so an exception rule for cd1/cd2 is an idea but I have no tool with this option.

Approach Three:
Can I change XBMC, that he is using the following:

/Videos/Filme/Gegen die Wand/
gdwand-xvid cd1.avi
gdwand-xvid cd2.avi
gdwand-xvid.nfo
Gegen die Wand.tbn

So that XBMC is using the foldersname as the thumb?

Approach Four:
I found "this" script here: ( http://xbmc.org/forum/showthread.php?t=27957 )

REM Make a .tbn copy of the .folder.jpg
FOR /D %%p in (*) do copy "%%p\folder.jpg" "%%p\%%p.tbn"

I have no knowledge about batchscripting so, how can I tell him that he use instead of foldersname the name of an existing *.avi or *.nfo this would be a great help to get my thumbs in the librarymode working.


Nice greets from germany :)

empty
2008-12-30, 12:06
+Push :-)

sho
2008-12-30, 16:42
If you use the "use foldername" option while scraping I believe XBMC will use folder.jpg as thumbs. (that is if your current setup allows for it)
http://xbmc.org/wiki/?title=Set_Contents_(Video_Library)#Options_After_ Selecting_Scraper
Afterwards you can export the library to sperate nfo files to get the correct filenames if you want:
http://xbmc.org/wiki/?title=Import_-_Export_Library#Import_.2F_Export_options

krypt2nite
2008-12-30, 19:16
I had that same issue, and also on that folder.jpg when using use folder names doesn't work.

The newest SVN builds have the ability to just use an easier naming convention. If you have a tbn file in the folder called movie.tbn it will use that.

What I finally did was made a batch file to make a copy of the movie folder and the folder.jpg inside it to another directory. So I had 1500 folders with just a folder.jpg in it. I then used a mass renamer and renamed every folder.jpg to movie.tbn. I then dragged those copied folders to the original movie directory. Replaced folders and it added the corresponding movie.tbn.

Was actually a pretty quick and painless process and I don't have to worry about the tbn being named exactly like the movie file. For future upgrades thats great.

Ideally if XBMC just used folder.jpg as the thumb in library mode also it would be so much nicer. I am pretty anal about the quality of my presentation. I use nicecovers.com and ccovers to get the highest quality DVD thumbs for each movie I have 1500+ Pays off on how good it looks.

empty
2008-12-31, 00:17
Oh wonderfull thats good to know :D