Could I have some help with <epbookmark> please?
#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,
Reply
#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
Reply
#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. '
Reply
#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.
Reply
#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.
Reply

Logout Mark Read Team Forum Stats Members Help
Could I have some help with <epbookmark> please?0