• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 17
Regular Expressions
#61
I'm lost with all this guys....is anyone able to help with something that would work with my file structure.

H:\TV Shows\Heroes\Heroes - Season 1\Heroes - S01E01 - Genesis.avi
H:\TV Shows\Heroes\Heroes - Season 1\Heroes - S01E02 - Don't Look Back.avi
H:\TV Shows\Heroes\Heroes - Season 1\Heroes - S01E03 - One Giant Leap.avi
Reply
#62
I think that's already supported by default. Don't make any entries in AdvancedSettings.xml if it is cause it overrides the defaults
Reply
#63
The problem I'm having is that sometimes it gets the show info, and episode info for shows, most of the time it doesn't.

I leave the name of my shows in the default group release names

i.e. Supernatural.S02E13.HDTV.XviD-XOR.avi
i.e. my.name.is.earl.s02e20.hdtv.xvid-xor.[VTV].avi

Here's my debug log without a customized advancesettings.xml file when it works (as I know it can pickup show names in the above format without one by default).

Punkd.S08E01.DSR.XviD-SYS.avi


Code:
19:40:04 M: 37933056   DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:[email protected]/TV%20Shows
19:40:07 M: 37666816   DEBUG: Saving fileitems [smb://192.192.192.192/TV Shows/]
19:40:07 M: 37666816   DEBUG:   -- items: 7, sort method: 0, ascending: false
19:40:08 M: 36864000   DEBUG: CApplication::OnKey: 167 pressed, action is 4
19:40:09 M: 36864000   DEBUG: CApplication::OnKey: 166 pressed, action is 3
19:40:10 M: 36864000   DEBUG: CApplication::OnKey: 11 pressed, action is 7
19:40:10 M: 36851712   DEBUG: Clearing cached fileitems [smb://192.192.192.192/TV Shows/01 Mon/]
19:40:10 M: 36851712   ERROR: XFILE::CFile::Delete - Error deleting file Z:\d6a81aa5.fi
19:40:10 M: 37679104   DEBUG: CGUIMediaWindow::GetDirectory (smb://192.192.192.192/TV Shows/01 Mon/)
19:40:10 M: 37679104   DEBUG:   ParentPath = [smb://192.192.192.192/TV Shows/]
19:40:10 M: 37679104   DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:[email protected]/TV%20Shows/01%20Mon
19:40:12 M: 36003840   DEBUG: CApplication::OnKey: 167 pressed, action is 4
19:40:13 M: 36003840   DEBUG: CApplication::OnKey: 167 pressed, action is 4
19:40:17 M: 36003840   DEBUG: CApplication::OnKey: 195 pressed, action is 11
19:40:17 M: 36003840   DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:[email protected]/TV%20Shows/01%20Mon/Punk%27d
19:40:17 M: 36003840    INFO: Loading skin file: DialogProgress.xml
19:40:17 M: 35053568    INFO: Get URL: http://tvdb.zsori.com/interfaces/GetSeries.php?seriesname=punk'd
19:40:18 M: 35577856    INFO: Loading skin file: DialogSelect.xml
19:40:19 M: 35352576   DEBUG: CApplication::OnKey: 11 pressed, action is 7
19:40:21 M: 35999744    INFO: Loading skin file: DialogProgress.xml
19:40:21 M: 35561472    INFO: Get URL: http://tvdb.zsori.com/interfaces/GetSeries.php?seriesname=punk'd
19:40:22 M: 35561472    INFO: Get URL: http://tvdb.zsori.com/interfaces/GetBanners.php?seriesid=72268
19:40:30 M: 35561472   DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:[email protected]/TV%20Shows/01%20Mon
19:40:30 M: 35561472   DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:[email protected]/TV%20Shows/01%20Mon/24
19:40:30 M: 35561472   DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:[email protected]/TV%20Shows/01%20Mon/Drive
19:40:30 M: 35561472   DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:[email protected]/TV%20Shows/01%20Mon/Heroes
19:40:30 M: 35561472   DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:[email protected]/TV%20Shows/01%20Mon/Prison%20Break
19:40:30 M: 35561472   DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:[email protected]/TV%20Shows/01%20Mon/Punk%27d
19:40:30 M: 35561472   DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:[email protected]/TV%20Shows/01%20Mon/Weeds
19:40:30 M: 35561472   DEBUG: running expression \[[Ss]([0-9]+)\]_\[[Ee][0-9][0-9]-([0-9]+)\][^\\/]* on label smb://192.192.192.192/tv shows/01 mon/drive/drive.101.hdtv-lol.avi
19:40:30 M: 35561472   DEBUG: running expression [\._ -][Ss]([0-9]+)[^0-9]*[Ee][0-9][0-9]-([0-9]+)[^\\/]* on label smb://192.192.192.192/tv shows/01 mon/drive/drive.101.hdtv-lol.avi

Not working example:

Painkiller.Jane.S01E01.DSR.XviD-NoTV.avi

Code:
20:06:51 M: 35876864   DEBUG: CGUIMediaWindow::GetDirectory (smb://192.168.1.200/TV Shows/05 Fri/)
20:06:51 M: 35876864   DEBUG:   ParentPath = [smb://192.168.1.200/TV Shows/05 Fri/]
20:06:51 M: 35876864   DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:[email protected]/TV%20Shows/05%20Fri
20:06:52 M: 35012608   DEBUG: CApplication::OnKey: 11 pressed, action is 7
20:06:52 M: 35000320   DEBUG: Clearing cached fileitems [smb://192.168.1.200/TV Shows/05 Fri/Painkiller Jane/]
20:06:52 M: 35000320   ERROR: XFILE::CFile::Delete - Error deleting file Z:\f97dab3e.fi
20:06:52 M: 35864576   DEBUG: CGUIMediaWindow::GetDirectory (smb://192.168.1.200/TV Shows/05 Fri/Painkiller Jane/)
20:06:52 M: 35864576   DEBUG:   ParentPath = [smb://192.168.1.200/TV Shows/05 Fri/]
20:06:52 M: 35864576   DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:[email protected]/TV%20Shows/05%20Fri/Painkiller%20Jane
20:06:56 M: 36298752   DEBUG: CApplication::OnKey: 216 pressed, action is 9
20:06:56 M: 36397056   DEBUG: CGUIMediaWindow::GetDirectory (smb://192.168.1.200/TV Shows/05 Fri/)
20:06:56 M: 36397056   DEBUG:   ParentPath = [smb://192.168.1.200/TV Shows/]
20:06:56 M: 36397056   DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:[email protected]/TV%20Shows/05%20Fri
20:06:58 M: 35012608   DEBUG: CApplication::OnKey: 195 pressed, action is 11
20:06:58 M: 35012608   DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:[email protected]/TV%20Shows/05%20Fri/Painkiller%20Jane
20:06:58 M: 35012608    INFO: Loading skin file: DialogProgress.xml
20:06:58 M: 34066432    INFO: Get URL: http://tvdb.zsori.com/interfaces/GetSeries.php?seriesname=painkiller+jane
20:07:01 M: 34566144    INFO: Loading skin file: DialogSelect.xml
20:07:03 M: 34304000   DEBUG: CApplication::OnKey: 11 pressed, action is 7
20:07:04 M: 34988032    INFO: Loading skin file: DialogProgress.xml
20:07:04 M: 34557952    INFO: Get URL: http://tvdb.zsori.com/interfaces/GetSeries.php?seriesname=painkiller+jane
20:07:07 M: 34537472    INFO: Get URL: http://tvdb.zsori.com/interfaces/GetBanners.php?seriesid=75546
20:07:08 M: 34549760    INFO: Loading skin file: DialogVideoInfo.xml
20:07:10 M: 34918400   DEBUG: CApplication::OnKey: 11 pressed, action is 7
20:07:11 M: 34988032    INFO: Loading skin file: DialogProgress.xml
20:07:11 M: 34041856    INFO: Get URL: http://tvdb.zsori.com/interfaces/GetSeries.php?seriesname=painkiller+jane
20:07:14 M: 34566144    INFO: Loading skin file: DialogSelect.xml
20:07:19 M: 34304000   DEBUG: CApplication::OnKey: 11 pressed, action is 7
20:07:19 M: 34975744    INFO: Loading skin file: DialogProgress.xml
20:07:20 M: 34557952    INFO: Get URL: http://tvdb.zsori.com/interfaces/GetSeries.php?seriesname=painkiller+jane
20:07:23 M: 34537472    INFO: Get URL: http://tvdb.zsori.com/interfaces/GetBanners.php?seriesid=75546
20:07:23 M: 34553856    INFO: Loading skin file: DialogVideoInfo.xml

I've tried using a customized advancedsettings.xml file as well, but there has been no change. It seems like it's hit, and miss for me. Sometimes, it works, most of the time it doesn't.

I'm using the latest T3CH build.
Reply
#64
I found out what the problem was. It was my folder structure.

E:\TV Shows\01 Mon\Drive - Doesn't correctly scan
E:\TV Shows\Mon\Drive - Doesn't correctly scan either

E:\TV Shows\Drive - Works fine

I'll no longer use the days of the week.
Reply
#65
could someone please help me with the regexps I should use? My TV eps are stored as follows:


F:\TV Series\Lost\01x01-First.Episode.Pilot.avi
F:\TV Series\Lost\01x02-Second.Episode.Pilot.avi
...
F:\TV Series\The Sopranos\01x01-First.Episode.Pilot.avi
F:\TV Series\The Sopranos\01x02-First.Episode.Pilot.avi
...

Many thanks for the help!
Reply
#66
sakamoto Wrote:could someone please help me with the regexps I should use? My TV eps are stored as follows:


F:\TV Series\Lost\01x01-First.Episode.Pilot.avi
F:\TV Series\Lost\01x02-Second.Episode.Pilot.avi
...
F:\TV Series\The Sopranos\01x01-First.Episode.Pilot.avi
F:\TV Series\The Sopranos\01x02-First.Episode.Pilot.avi
...

Many thanks for the help!
would these be valuable options?

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

OR

<tvshowmatching>
<regexp>([0-9]+)x([0-9]+)-[^\\/]*</regexp>
</tvshowmatching>
Reply
#67
Yes both should work imo.
Reply
#68
I am not familiar with these type of strings. I have read the wiki and the other posts and have come up with the following set of strings that I had hoped would work, but sadly have not. This is what I have come up with:

<tvshowmatching>
<regexp>([0-9]+)([0-9][0-9])[^\\/]*</regexp>
<regexp>season([0-9]+)[\\/]episode([0-9]+)[^\\/]*</regexp>
<regexp>Season[\._ ]([0-9]+)[\\/]([0-9]+)[^\\/]*</regexp>
<regexp>[Ss]eason([0-9]+)[\\/]episode([0-9]+)[^\\/]*</regexp>
<regexp>[Ss]eason[\._ ]([0-9]+)[\\/]([0-9]+)[^\\/]*</regexp>
<twopart>
<regexp>\[[Ss]([0-9]+)\]_\[[Ee][0-9][0-9]\-([0-9]+)\][^\\/]*</regexp> % foo_[s01]_[e01-02]
<regexp>[\._ \-][Ss]([0-9]+)[^0-9]*[Ee][0-9][0-9]\-([0-9]+)[^\\/]*</regexp> % foo.s01.e01-02
<regexp>[\._ \-][0-9]+x[0-9]+[\._ \-]*([0-9]+)x([0-9]+)[^\\/]*</regexp> % foo.1x09 1x10
</twopart>
</tvshowmatching>

The files are all located in the following directory structure:
smb:\\TV\[Show Name]\Season #\[s#][ee] - [ep name].avi
season number is one or two digits. ep number is 01-99.

for example "TV\24\Season 1\101 - Series Premier.avi"

Thanks for any and all help!
Reply
#69
You can't have the season number be 1 or 2 numbers unless you have some way of telling it that the season number has ended. Like an x or a . like this:

"TV\24\Season 1\1.01 - Series Premier.avi"
or:
"TV\24\Season 1\1x01 - Series Premier.avi"

Otherwise it has no way of knowing if the season number is 1 to 2 digits. If you add either of those, the default setting should work (I believe).

Good luck.

J_K_M_A_N
Reply
#70
Not entirely true, JKMAN... if episode is always 2 digits, then you can assume that the remaining numbers are the season:
Code:
[Ss]eason [0-9]+[\\/]([0-9]+)([0-9][0-9])[^\\/]*
However, JKMAN's suggestion on how to name your stuff is accurate, tempxbmcusr. Some rare series might have more than 100 episodes in a season (soap operas are an obvious example) and will break this naming scheme. It's better to use one of the more popular naming schemes and protect yourself from having to rename everything down the line.
Reply
#71
J_K_M_A_N and szsori:
Thank you both for your responses. I never really thought about the fact that the season number on the files themselves would be causing problems. It was one of those oversights when you are too used to your way.

Thanks!
Reply
#72
I have another question. Do you know how the database sees the path for the file? If, so does it depend on where the "Set Content" flag is set? When I changed the file name to just including the ep number (see above posts) and set the TV directory (SMB:\\COMPUTER\TV\Series\Season #\## - ep name.avi) to be the content TV, it did not find the episodes. However, when TV content is set to NONE and I set the individual series folder to TV it was able to find an episode. There are too many series folders to do it individually and there has to be a way to put it higher in the path hierarchy.

Therefore I thought that maybe there was a difference in the path that depends on where the content is set. So I added a *[/\/] to the beginning of the regexp so that it would ignore everything before the [Ss]eason part of the path. But this did not work.

Code:
<tvshowmatching>
    <regexp>[Ss]eason [0-9]+[\\/]([0-9]+)([0-9][0-9])[^\\/]*</regexp>
    <regexp>[Ss]eason[\._ ]([0-9]+)[\\/]([0-9]+)[^\\/]*</regexp>
    
    <regexp>*[\\/][Ss]eason [0-9]+[\\/]([0-9]+)([0-9][0-9])[^\\/]*</regexp>
    <regexp>*[\\/][Ss]eason[\._ ]([0-9]+)[\\/]([0-9]+)[^\\/]*</regexp>
</tvshowmatching>

Also, does a regexp work from R->L or L->R when it is looking at a string (path)?

Once I get mine working I am willing to write a xbmc regexp generator based on user defined paths and possibly "set content" flags (if that ends up being involved).

Thanks!
Reply
#73
szsori Wrote:Not entirely true, JKMAN... if episode is always 2 digits, then you can assume that the remaining numbers are the season:

I was just basing my answer on the fact that he said the season number was 1 or 2 digits. He didn't say it was always 2. I should have been more clear. Sad

I believe the first directory below the set content folder is used as the show name. I also believe that spiff added the option to set content on the folder of the show itself. You have to watch for the 's'. One says TV Shows and I think the other says TV Show.

Good luck.

J_K_M_A_N
Reply
#74
I've been trying to figure this out on my own for awhile but have been having problems so hoping someone here might be able to help.
here's what I have. So far this is working -

SeriesName\Season 1\SeriesName - 08.avi
all of Season 1 shows up fine in the library that way, however -

SeriesName\Season 3\SeriesName_66.avi
which is episode 66 of the series or episode 15 of season 3
or -
SeriesName\Season 6\SeriesName_124.avi
which is episode 124 of the series or episode 4 of season 6

those don't show up in the library at all. I know the naming scheme is kinda funky, is SeriesName_EpisodeNumber.xxx
tv.com does use those episode numbers (season 3 episode 66 vs season 3 episode 15)so I was hoping i wouldn't have to go renaming 6 season's worth of stuff if I didn't have to. I really hope I'm making sense here but I've been racking my brain out with these expressions but I must just be completely dense and can't figure it out. Hoping someone could help if it can be done at all, or let me know if it's just not possible either.
Reply
#75
You have to rename.
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
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 17

Logout Mark Read Team Forum Stats Members Help
Regular Expressions1