Could I have some help with <epbookmark> please?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Knottyboy Offline
Junior Member
Posts: 17
Joined: Jan 2010
Reputation: 0
Post: #1
Good Afternoon All,

I'm currently using the following regexp in my advancedsettings.xml:

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

All my shows are in the format:

Show Name\Season 01\[ep01] - Episode Name.mkv

The above mentioned code works and most my episodes are scraped correctly.

I have some video containers with more than 1 episode (not necessarily in order)

ie
[ep01-02] – Episode 1 Name + Episode 2 Name.mkv
or
[ep01-04-06] – Episode 1 Name + Episode 4 Name + Episode 6 Name.mkv

I have tried using the following:

File:

[ep01-02] – Episode 1 Name + Episode 2 Name.mkv

Quote:<episodedetails>
<title>Episode 1</title>
<season>1</season>
<episode>1</episode>
<epbookmark>0</epbookmark>
</episodedetails>
<episodedetails>
<title>Episode 2</title>
<season>1</season>
<episode>2</episode>
<epbookmark>671</epbookmark>
</episodedetails>

The above is saved as:
[ep01-02] – Episode 1 Name + Episode 2 Name.nfo

The second episode starts at 11 minutes and 11 seconds

What I'm trying to achieve is to get the file '[ep01-02] – Episode 1 Name + Episode 2 Name.mkv' to show up as episode 1 and 2 and when you click on episode 2 it will start the mkv at 11 minutes and 11 seconds. Am I going about this the right way?

Thanks in advance,
find quote
jhusch Offline
Member
Posts: 60
Joined: Jan 2011
Reputation: 0
Location: Bealeton, VA
Post: #2
I have been looking for a way to do this as well. I followed the instructions I found on the wiki and didnt have any luck.

Sad
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,187
Joined: Nov 2003
Reputation: 82
Post: #3
looks ok in principle, yes. and i tested it, works fine here.

the reason it doesn't work for you is that your regexp has no third selection group.

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

from wiki page: 'NOTE: for multi-episode matching to work, there needs to be a third set of parentheses on the end. This part is fed back into the regexp engine. '

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.
(This post was last modified: 2011-08-18 14:36 by spiff.)
find quote
Knottyboy Offline
Junior Member
Posts: 17
Joined: Jan 2010
Reputation: 0
Post: #4
spiff Wrote:looks ok in principle, yes. and i tested it, works fine here.

the reason it doesn't work for you is that your regexp has no third selection group.

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

from wiki page: 'NOTE: for multi-episode matching to work, there needs to be a third set of parentheses on the end. This part is fed back into the regexp engine. '


Thanks for that, I thought it would be something along those lines (regexp needed tweaking). I will try this when I get home from work.

Much appreciated mate.
find quote
firedrow Offline
Junior Member
Posts: 7
Joined: Aug 2010
Reputation: 0
Location: Columbia, MO
Post: #5
Anyone mind taking a second to look at my RegEx setup? It's not my forte.

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

I've named the sample episode <tv show>\Season 1\02-03.avi. I've also added the 02-03.nfo that says:

Code:
<episodedetails>
  <title>TV SHOW</title>
  <season>1</season>
  <episode>2</episode>
  <epbookmark>0</epbookmark>
</episodedetails>
<episodedetails>
  <title>TV SHOW</title>
  <season>1</season>
  <episode>3</episode>
  <epbookmark>658</epbookmark>
</episodedetails>

But when I scan it still only comes up as one episode, 02. The regex tester I used says it pulls 3 variables.
find quote