Help me keep my TV directory structure?
#1
I would like it to be as close as I can to what I have now. I currently have it set up like so;

\TV Shows\ShowName\Season 2 [2008][720p][H.264]\01 EpisodeTitle

I have read though this;
http://wiki.xbmc.org/?title=TV_Shows#Cus...File_Names

But I can not seem to make any anything of it.

One of the examples listed seems like it could work, but I am would the extra tags I currently use get in the way (I.E. [2008][720p][H.264]?

<tvshowmatching>
<regexp>Season[\._ ]([0-9]+)[\\/]([0-9]+)[^\\/]*</regexp>
</tvshowmatching>

Example : \Battlestar Galactica\Season 3\01 - Occupation.avi (Season 3, Episode 1)

Would someone mind giving me a hand?

Danny.
Reply
#2
Add in [^\\/]* before the [\\/]
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Thank you Big Grin

Though it didn't seem to work ): .

XBMC grabs the show name fine but seasons and episodes are not listed.

Path:
Users/Danny/AppData/Roaming/XBMC/userdata/advancedsettings.xml

File reads:
<advancedsettings>
<tvshowmatching>
<regexp>Season[\._ ]([0-9]+)[^\\/]*[\\/]([0-9]+)[^\\/]*</regexp>
</tvshowmatching>
</advancedsettings>
Reply
#4
Might need a ? after the * to ensure non-greedy.

Did you do a debug log to ensure that that is the actual problem?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
<advancedsettings>
<tvshowmatching>
<regexp>Season[\._ ]([0-9]+)[^\\/]*?[\\/]([0-9]+)[^\\/]*</regexp>
</tvshowmatching>
</advancedsettings>


Debugging reads:
FreeMem 867XXXX/1834168kB, FPS 30.0, CPU 2 core(s) average 24.0%

Edit: I should note I can view the files when not in library mode.
Reply
#6
Do a debug log. Debug info read off the screen isn't much use Smile
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
I thought as much Tongue .

I removed all the TV shows. Enabled debugging. And then re-added them all again.

http://www.pastebin.ca/1709778
Reply
#8
It's picking up the shows fine (see any of the lines where it lists your episode and correctly indicates season and episode number).

I suspect it's failing as you're using the imdb tv scraper, which may or may not work.

Use thetvdb.com
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#9
I love you.

It worked Big Grin .

Thank you very much for all your help!
Reply
#10
Five years on, and I broke it ): .

I reinstalled Kodi, and I forgot to backup my original advancedsettings.xml, which, if I remember correctly, I slightly changed from what is posted here but I can't for the life of me remember what that change was.

Any ideas?
Reply
#11
If you installed Kodi on the machine that XBMC was installed on, then the XBMC advancedsettings.xml is still on your system. Kodi installs in a different directory and AppData directory.

If not, you can test your Regex here: http://regexr.com/

Just paste a sample of your files in the window, paste your "close enough" regex and tweak it... The site has all the help you need on the left hand side.
[4 Kodi Clients + 4 Norco RPC-4224 Media Servers w/376 TB HDD Space]
Reply
#12
I removed everything related to XBMC without thinking so it's long gone ): .

Thank you for the link but I cannot seem to figure it out. Keeps scraping everything as a Mista T show Tongue . It's driving me mad!
Reply

Logout Mark Read Team Forum Stats Members Help
Help me keep my TV directory structure?0