Library Problem
#16
bugs, unintentional features, or better yet "misinterpretted features", choose which ever you want ...

i have discovered a potential issue with matching an nfo file based on the archive filename where it makes more sense to match inside the archive using the archived file's name. (more on this after i get to do some more testing this weekend.)

"clean library" always works. if you're refering to issues related to sources being offline, dont clean if you know thats the case. that's NOT xbmc's problem.

"update library" has a few issues but as far i know, they are specific to *removal* of stacked dvd folder structures. and again, if you're refering to removal of files on offline sources, that's not xbmc's problem. dont update.

and i'm quite serious before. if you dont like something, you are free to change xbmc to suit your needs. and we would welcome patches.
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.
#17
Quote:"clean library" always works. if you're refering to issues related to sources being offline, dont clean if you know thats the case. that's NOT xbmc's problem.

It caught me twice because I didn't know the sources are offline. That's what youn get when you don't live alone and somebody decides to turn of the kitchen server Wink
#18
I admit the cleaning can be an annoyance. In my local sources I have a workaround in advancedsetting.xml option that can be used to disable the clean on update function. It's not been committed yet. Until things get sorted out, this is a simple fix which should suffice.
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.
#19
Sounds good, definately looking forward to that !
#20
Ok, I've another question with the file naming for TV Shows.

http://wiki.xbmc.org/?title=TV_Shows_(Vi...rt_in_XBMC

http://wiki.xbmc.org/?title=Advancedsett...atching.3E

I got some file which filenames are like this.
.part1. (with no season indexing)
.e01. (with no season)
.401.
s01e01.e02 (not s01e01-e02)
season 02 episode 07
Season 6 - Episode 14
season 1, episode 12

Can someone help me with my advancedsetting.xml

Do I have to add the already default?

/Söder
#21
Partially... Via advancedsettings.xml you can define a regular expression which tells Xbmc where to look for the season and episode identifiers, but Xbmc must find both. I doubt this will ever change unless you change it yourself in the source.

part1: will will not work. there's no season and episode id.
e01: requires a season identifier (though, the season could be in the folder name.)
401: should work today unless its the start of the filename.
s01e01.e02: needs a name change to s01e01-e02 or to s01e01.s01e02
season 02 episode 07: a custom regexp will work
Season 6 - Episode 14: a custom regexp will work
season 1, episode 12: a custom regexp will work, the same regexp can account for all three:
<regexp>season ([0-9]+)[ -\,]+episode ([0-9]+)</regexp>
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.
#22
kraqh3d Wrote:Partially... Via advancedsettings.xml you can define a regular expression which tells Xbmc where to look for the season and episode identifiers, but Xbmc must find both. I doubt this will ever change unless you change it yourself in the source.

part1: will will not work. there's no season and episode id.
e01: requires a season identifier (though, the season could be in the folder name.)
401: should work today unless its the start of the filename.
s01e01.e02: needs a name change to s01e01-e02 or to s01e01.s01e02
season 02 episode 07: a custom regexp will work
Season 6 - Episode 14: a custom regexp will work
season 1, episode 12: a custom regexp will work, the same regexp can account for all three:
<regexp>season ([0-9]+)[ -\,]+episode ([0-9]+)</regexp>

Sound nice. Thanks for the custom.
I've tried, but dont understand what all signs do. Can you please explain?

And about, "s01e01.e02: needs a name change to s01e01-e02 or to s01e01.s01e02", is it possible to do a custom for s01e01.e02 to, or it wont work?

And part1, isnt it possible to read it for e1?
And wouldn't be nice to belive that ALL filenames without Ep are ep1?

/Söder
#23
soder Wrote:Sound nice. Thanks for the custom.
I've tried, but dont understand what all signs do. Can you please explain?

And about, "s01e01.e02: needs a name change to s01e01-e02 or to s01e01.s01e02", is it possible to do a custom for s01e01.e02 to, or it wont work?

And part1, isnt it possible to read it for e1?
And wouldn't be nice to belive that ALL filenames without Ep are ep1?

/Söder

And...Can the Episode index be in what folder I want? i.e. /Planet Earth/S1/Planet.Earth.2006.720p.HDDVD.x264-ESiR/Planet.Earth.EP01.From.Pole.to.Pole.2006.720p.HDDVD.x264-ESiR.mkv

/Söder
#24
You are probably better of studying regexp on your own, instead of requesting spoonfeeding.
this is probably as good as any place to start:
http://en.wikipedia.org/wiki/Regular_expression#Syntax
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.
#25
Quote:Sound nice. Thanks for the custom.
I've tried, but dont understand what all signs do. Can you please explain?
I'll leave that as an exercise for you. There are a few nice open source visual regexp tools which will help you.

Quote:And about, "s01e01.e02: needs a name change to s01e01-e02 or to s01e01.s01e02", is it possible to do a custom for s01e01.e02 to, or it wont work?
No, there is no means to customize multi-episode regexps. Feel free to supply a patch.

Quote:And part1, isnt it possible to read it for e1?
yes. a custom regexp can be used to make part## be the episode id, but you're still missing the season id. (which can be in a folder name, see below.)

Quote:And wouldn't be nice to belive that ALL filenames without Ep are ep1?
Frankly, no, it wouldn't. But, feel free to change xbmc to do whatever you want. That is the beauty of open source.

Quote:And...Can the Episode index be in what folder I want? i.e. /Planet Earth/S1/Planet.Earth.2006.720p.HDDVD.x264-ESiR/Planet.Earth.EP01.From.Pole.to.Pole.2006.720p.HDDV D.x264-ESiR.mkv
yes. the season id can come from a folder name, however the regexp gets a bit more complicated:

<regexp>[\\\/]s([0-9]+)[\\\/].*ep([0-9]+)[^\\\/]+$</regexp>

(the season id must always be before the episode id. the first set of parens marks where the season id is located, and the second set of parens marks where the epsiode id is located.)
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.
#26
kraqh3d Wrote:I'll leave that as an exercise for you. There are a few nice open source visual regexp tools which will help you.


No, there is no means to customize multi-episode regexps. Feel free to supply a patch.


yes. a custom regexp can be used to make part## be the episode id, but you're still missing the season id. (which can be in a folder name, see below.)


Frankly, no, it wouldn't. But, feel free to change xbmc to do whatever you want. That is the beauty of open source.


yes. the season id can come from a folder name, however the regexp gets a bit more complicated:

<regexp>[\\\/]s([0-9]+)[\\\/].*ep([0-9]+)[^\\\/]+$</regexp>

(the season id must always be before the episode id. the first set of parens marks where the season id is located, and the second set of parens marks where the epsiode id is located.)

Ok, thanks, I've looked at this site, and a friend helped me.
http://www.utvecklarna.se/verktyg/regula...idator.php

I addes this.
<regexp>[Ss]eason[-\,. ]?([0-9])+[-\,. ]+[Ee]pisode[-\,. ]?([0-9]+)</regexp>
But it still doesn work with filename like:
Sex And The City - Season 1, Episode 06 - Secret Sex.avi
Sex And The City - Season 02 Episode 04 They Shoot Single People, Don't They.avi
Sex and the City - Season 6 - Episode 11 - the domino effect.mpg

What is wrong?
[Ss]eason (season or Season)
and then -,. or \

/Söder
#27
Xbmc forces all regexps to be insensitive so you dont need to do [Ss]. and its good practice to "escape" non-alphanumeric characters to avoid them being interpreted as a regexp special character. escaping is just preceding the character with a backslash.

<regexp>season[ \.\,\-]?([0-9]+)[ \.\,\-]+episode[ \.\,\-]?([0-9]+)</regexp>

"season"
zero or more occurrences of space, period, comma or minus
at least one number (the season id)
at least one occurrences of space, period, comma or minus
"episode"
zero or more occurrences of space, period, comma or minus
at least one number (the episode id)

read that wiki page more carefully. there are tons of resources on the web about regular expressions. use google. google is your friend.
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.
#28
kraqh3d Wrote:Xbmc forces all regexps to be insensitive so you dont need to do [Ss]. and its good practice to "escape" non-alphanumeric characters to avoid them being interpreted as a regexp special character. escaping is just preceding the character with a backslash.

<regexp>season[ \.\,\-]?([0-9]+)[ \.\,\-]+episode[ \.\,\-]?([0-9]+)</regexp>

"season"
zero or more occurrences of space, period, comma or minus
at least one number (the season id)
at least one occurrences of space, period, comma or minus
"episode"
zero or more occurrences of space, period, comma or minus
at least one number (the episode id)

read that wiki page more carefully. there are tons of resources on the web about regular expressions. use google. google is your friend.

C:\Users\Söder\AppData\Roaming\XBMC\UserData\advancedsettings.xml

Looks like this now.
<tvshowmatching>
<regexp>\[[Ss]([0-9]+)\]_\[[Ee]([0-9]+)[^\\/]*</regexp> % foo_[s01]_[e01]
<regexp>[\._ \-]([0-9]+)x([0-9]+)[^\\/]*</regexp> % foo.1x09*
<regexp>[\._ \-][Ss]([0-9]+)[\.\-]?[Ee]([0-9]+)[^\\/]*</regexp> % foo.s01.e01, foo.s01_e01
<regexp>[\._ \-]([0-9]+)([0-9][0-9])[\._ \-][^\\/]*</regexp> % foo.103*
<regexp>season[ \.\,\-]?([0-9]+)[ \.\,\-]+episode[ \.\,\-]?([0-9]+)</regexp>
</tvshowmatching>

Restarted and rescanned my files. Still wont match the files with the season and episode spelled long.

I start XBMC with -p

Also I've addes s01 to my series without ep in filename. still no planet earth in library..
What have I missed?

/Söder
#29
1) % foo_[s01]_[e01] is not valid XML. Xbmc may be ignoring the entire file because of this. (i will correct this in the wiki page because i think you copied that from there.)
2) please be aware of where you post. this is the *XBOX* support forum.
3) always include a debug log. run in debug mode, scan, and post a link to the log. use pastebin to host it.

i have no idea what rev you are running. there were some bugs in the regexp wrapper which caused a few anomalies. you may not be running a version with those fixes.
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.
#30
kraqh3d Wrote:1) % foo_[s01]_[e01] is not valid XML. Xbmc may be ignoring the entire file because of this. (i will correct this in the wiki page because i think you copied that from there.)
2) please be aware of where you post. this is the *XBOX* support forum.
3) always include a debug log. run in debug mode, scan, and post a link to the log. use pastebin to host it.

i have no idea what rev you are running. there were some bugs in the regexp wrapper which caused a few anomalies. you may not be running a version with those fixes.

2. Sorry, I totaly missed that.
3. Will debug mode always write down everything that happens?

/Söder

Logout Mark Read Team Forum Stats Members Help
Library Problem0