IRC log of musicbrainz on 2008-02-08:: you are trying to add non-ascii file names on a system with ascii locale set. 14:31:48 [raw] is to go and fint soem more stuff at the library, imerge http://chatlogs.musicbrainz.org/2008/2008-02/2008-02-08.htmlHOME | Ok so .. this is a little wierd problem .. Dunno where to post this but since I am a linux-user I thought that it would be fine to post it here (mod move if you like :rolleyes: ) ..
So this is my situation.. I am now and xbmc-user for a month and now I've decided to start using the libraryfunction (and omg it rocks) .. Well.. I got some tv-shows where there is some text in front of the title that f**** up my regular regexp (which I added in advancedsettings) .. I have been screwing around with a solution but somehow I just can't get it.. Looks like a simple solution ... but sometimes the most simple thing can be hard to gain :S tunes.org/~nef/logs/lisp/05.02.19:: if we got ambitious we could add a feature to cvs to support VB files correctly doesnt say in bold blink text what it analyses in the default setup, http://tunes.org/~nef/logs/lisp/05.02.19HOME |
My files looks like this e.g.:
blabla-the.simpsons.s18e04.rip.rar
Now how does a reqexpression to add a file even though it has "blabla-" added in front of it looks like? :) ..
I would be very happy if someone can help me on this one so the library can be completed and I can be even more happy with using xbmc :)
Where's the ... tags?
You don't need it anyway - XBMC doesn't care what's in the filename, other than the season + episode number.
It gets the showname from the folder list off the folder you specify contains tvshows via set content.
Uhm .. is that something you can enlighten me more about? :) My listing was like this:
American.DadSeason01American.Dad.S01E14.....bla bla-adad114.rar
Any help will be appriciated :) .. I have been trying the whole day without any result so any little help will be the greatest thing ever :)
in any case it's the filename inside the rar that counts
TVShow is taken from the folder(s) off the folder you set tvshow content on. It is not derived in a backwards fashion from the filename. This is the main reason a show is tied to a folder.
ok so its the children folders from where content is set. im stupid. i knew that. i mostly have /root/tv/show/file.avi, but i also have some as /root/tv/show/season/file.avi and they both scan correctly so its *not* the parent folder of the file.
snuggidk,
did you fix the filename inside the rars? you need a separator between the junk at the beginning of the filename and the season/ep identifier. you also need to set content on the parent of the "American.Dad" folder so that it finds the show name correctly.
:( changing filenames would be a hell for me since I got quite some files :o .. and the filename in the .rar is the same as the rar itself .. like
American.DadSeason01American.Dad.S01E14.....bla bla-adad114.rarblabla-adad114.avi ..
Best solution would ofcourse be some cstm regexp as you say .. does anyone good at regexp have an idea?.. :) lists.bestpractical.com/pipermail/rt-devel/2006-June.txt:: my $title = loc(Select a group); > my $caption; > > > plain text document must explicitly add the local path to the perl library search path themselves? http://lists.bestpractical.com/pipermail/rt-devel/2006-June.txtHOME |
jmarshall .. I must add from the files. . it adds files from other folders with same folder-structure.. the only things that doesnt get added is the folders where the files is as I specified.. I have done the set content and scanned the library for about 3 times and it is still the files with the "blabla-" thing in front that does'nt get added :s ..
hm tried to do what you said .. but still no luck .. Can this have something to do with the other kind of tagging of the files?.. instead of american.dad it is named adad ??.. the folder is ofcourse tagged American.Dad .. but if it reads from the file then its obv that it cant add when they are named adad ..
thats the other option. you add a custom regexp to advancedsettings.xml
http://xbmc.org/wiki/?title=Advancedsettings.xml#.3Ctvshowmatching.3E
something like this may work
\/[^0-9\/]*([0-9]+)([0-9][0-9])[^\/]*$
\/ = slash
[^0-9\/]* = 0 or more characters which are not numbers or slashes
([0-9]+) = season
([0-9][0-9]) = episode
[^\/]*$ = 0 or more characters which are not slashes
the beginning slash and ending NOT slash is to anchor the match to the far right of the full path where the filename would be to prevent accidental matching in the middle of the path
and you want to use "append" so that you add to the default regexps, and not just overwrite them all with this one new one.
I tried what you said but still no luck for me :(
My advancedsettings.xml looks like this?.. should be correct right? :)
[[Ss]([0-9]+)]_[[Ee]([0-9]+)[^\/]* % foo_[s01]_[e01]
[._ -]([0-9]+)x([0-9]+)[^\/]* % foo.1x09*
[._ -][Ss]([0-9]+)[.-]?[Ee]([0-9]+)[^\/]* % foo.s01.e01, foo.s01_e01
[._ -]([0-9]+)([0-9][0-9])[._ -][^\/]* % foo.103*
\/[^0-9\/]*([0-9]+)([0-9][0-9])[^\/]*$
[A-Za-z0-9]*-
Is this what you're looking for ?
No thats absolutely wrong. Please read the link I posted very carefully. in the meantime, this is exactly what you want.
\/[^0-9\/]*([0-9]+)([0-9][0-9])[^\/]*$
I have tried various combinations with setting the content to a tv-show and so on but It still doesnt get anything from the folder with the funny filenames :s
your filename doesnt match any of the regexps because its missing a separator character before the season/episode identifier. you have two choices... either change the filename or add some custom regexps.
for instance, a filename of "blah-blah-blah-adad-114.rar" will work.
yes, all you need to do is add a valid separator character to the filename preceding the season/episode identifier so that default regexp which you've identified will match.
ok let me see if I get this straight .. then I need to use this line:
[._ -]([0-9]+)([0-9][0-9])[._ -][^\/]* % foo.103*
and then add something more before all the (0-9)+
what other kind of tagging for the files? run in debug mode, post the debug log to pastebin, post a link here. in the meantime, post one of the filenames, both the rar file, and the video file within. and the full path to it, be sure to denote where you've "set content" to tv.
you need a separator character (period, underscore, space, hyphen) before the season/episode identifier.
good point spiff. this is a rar file which is treated like a folder, so its the file inside that counts, but the rules remain the same. it needs to have a separator character before the season/ep identifier, or you need to add a custom regexp.
(spiff, the scanner would guess the tv show name from file's parent folder, in this case the rar filename, right?)
Just looked into it again ... the files in this is like this
blabla-adad114.rar (en ep of american dad) .. the folder is named something like:
American.Dad.S01E14.***. which should be fine for adding a folder like this so I am pretty sure it is because of the name at the rar-file :s
I did fix the thing with the contect .. but isnt there anyway to add some kind of wildmask to the regexpression to allow the "junk" ? :..
Red Hat's Rough Recovery From CFO Exit
Windows Live Finds a New, Pre-installed Home |