XBMC naming schemes
Posted: 18 Mar 2013, 10:45
Work in progress
All contributions are welcome!
Getting your media library in to shape is a hassle to say the least.
Renaming you files one by one is almost impossible if you have a load of files.
This can be automated but even then most of us need some help.
XBMC is a wonderfull program but she can be a extremely picky sometimes.
Lets help her out and whipp our media library in to shape!
As thus:
The XBMC naming scheme topic!
Made for XBMC-12 Eden.
Movie naming sheme
Movies are seldomly scanned incorrect by XBMC but to make sure they are all scanned in to your library, use following script:
Do know that when you have multiple subtitles, it will only rename the first. Other subs would have the same name and thus cause a conflict.
As you might or might not know, XBMC needs a certain folder structure to succesfully scan your library:
XBMC should display the language of your subtitle, but till today I have not been able to get this to work. If you guys did, let me know. This is also the reason I did not add any language detection part. Let's say you want your media on drive G, your naming scheme would look like this:
Tv show naming sheme
Your tv show will look like this "The A-Team.s01e01-02.Mexican Slayride":
The correct folder structure for tv shows is:
The script to make this happen:
This will check for specials, name them s00e01 (and so on) and copy them to the "Season 0" folder. This way XBMC correctly scans your folder.
Your tv show or movie is not recognised? Be sure the name it exactly the same as stated in your scrapers database. For example, I could not scan my Battlestar Galactica collection. Why, I forgot to check the folder name. Tvdb sees the new battlestar galactica series as "Battlestar Galactica (2003)".
Anime show naming sheme
If you thought XBMC had its quirks scanning tv shows, just try getting it to recognise your anime. Its like explaining the way to a blind man who speaks an other language ^^
Here we go, first the folder structure:
Because anidb sees each season as it's own show you'll have to put them together manually after renaming them. Apart from that specials need to be named manually as s00e01. If the special has its own page then it probably won't work in xbmc. You'll need to add them manually by creating a nfo file. The special will be in an other folder then when viewed by xbmc. If you guys now a solution, let me know.
Second, the scraper, you'll have to use the anidb scraper. I did not get the anime news network scraper to work. Ideas are welcome.
Leave all settings as is on first advanced settings page. When I changed them to any other setting, no files would be scraped.
Do remember to move specials manually.
Thanks for your help:
Alan Henry from http://lifehacker.com/5990500/filebot-g ... dia-center
The xbmc wiki: http://wiki.xbmc.org/
Rednoah: for filebot, his watchfull eye and helpfull additions
Work in progress
EDITS
18/03/2013: Some remakes have the same name wich causes mismatches. This can be fixed by addin {y} in your script.
20/03/2013: I discovered XBMC sometimes refuses to scan a folder containing a wrongly named subfolder. In my case I had a folder named "specials" and several other correctly named folders. No files were visible in the library. Changed the folder name to "Season 0" in the script written by Rednoah@"How about sharing our format expressions? ".;
Added the part to name your movies. As of today I am unsure about adding code for music because I like to use other programs for that purpose ...
21/03/2013: Added the part to correctly name your anime. Xbmc demands you format it {s00e00}, otherwise it won't work. The anidbplugin is picky also:p
All contributions are welcome!
Getting your media library in to shape is a hassle to say the least.
Renaming you files one by one is almost impossible if you have a load of files.
This can be automated but even then most of us need some help.
XBMC is a wonderfull program but she can be a extremely picky sometimes.
Lets help her out and whipp our media library in to shape!
As thus:
The XBMC naming scheme topic!
Made for XBMC-12 Eden.
Movie naming sheme
Movies are seldomly scanned incorrect by XBMC but to make sure they are all scanned in to your library, use following script:
Code: Select all
{n} ({y})
As you might or might not know, XBMC needs a certain folder structure to succesfully scan your library:
Code: Select all
Movies <<Source folder, Content: Movies>>
|----Aliens (1986)
| |----Aliens (1986).mkv
| |----Aliens (1986).English.srt
|----Alien³ (1992)
| |----Alien³ (1992).mp4
| |----Alien³ (1992).English.sub
|----Alien Resurrection (1997)
| |----Alien Resurrection (1997).avi
| |----Alien Resurrection (1997).idx
Code: Select all
g:/Movies/{n} ({y})/{n} ({y})
Your tv show will look like this "The A-Team.s01e01-02.Mexican Slayride":
Code: Select all
{n}.{s00e00}.{t}
Code: Select all
TV Shows <<Source folder, Content: TV shows>>
|----Battlestar Galactica (2003)
| |----Season 0
| |-- ... specials ...
| |----Season 1
| |--The A-Team.s01e01-02.Mexican Slayride
| |--The A-Team.s01e03.Children of Jamestown
| |-- ...
| |----Season 2
| |-- ...
Code: Select all
g:/TV Shows/{n} ({y})/{episode.special ? 'Season 0' : 'Season '+s}/{n}.{episode.special ? 'S00E'+special.pad(2) : s00e00}.{t}
Your tv show or movie is not recognised? Be sure the name it exactly the same as stated in your scrapers database. For example, I could not scan my Battlestar Galactica collection. Why, I forgot to check the folder name. Tvdb sees the new battlestar galactica series as "Battlestar Galactica (2003)".
Anime show naming sheme
If you thought XBMC had its quirks scanning tv shows, just try getting it to recognise your anime. Its like explaining the way to a blind man who speaks an other language ^^
Here we go, first the folder structure:
Code: Select all
Anime <<Source folder, Content: TV shows, Scraper: Anidb>>
|----Tenjho Tenge
| |----Tenjho Tenge.S01E01.Sanctuary
|----Black Lagoon Collection
| |----Black Lagoon
| |--Black Lagoon.S01E01.The Black Lagoon
| |----Black Lagoon The Second Barrage
| |--Black Lagoon The Second Barrage.S01E01.The Vampire Twins Comen
Second, the scraper, you'll have to use the anidb scraper. I did not get the anime news network scraper to work. Ideas are welcome.
Leave all settings as is on first advanced settings page. When I changed them to any other setting, no files would be scraped.
Code: Select all
G:/Anime/{n}/{n}.S{(episode.season ? s : 1).pad(2)}E{e.pad(2)}.{t}
Thanks for your help:
Alan Henry from http://lifehacker.com/5990500/filebot-g ... dia-center
The xbmc wiki: http://wiki.xbmc.org/
Rednoah: for filebot, his watchfull eye and helpfull additions
Work in progress
EDITS
18/03/2013: Some remakes have the same name wich causes mismatches. This can be fixed by addin {y} in your script.
20/03/2013: I discovered XBMC sometimes refuses to scan a folder containing a wrongly named subfolder. In my case I had a folder named "specials" and several other correctly named folders. No files were visible in the library. Changed the folder name to "Season 0" in the script written by Rednoah@"How about sharing our format expressions? ".;
Added the part to name your movies. As of today I am unsure about adding code for music because I like to use other programs for that purpose ...
21/03/2013: Added the part to correctly name your anime. Xbmc demands you format it {s00e00}, otherwise it won't work. The anidbplugin is picky also:p