advancedsettings- moviestacking (regular expressions)
#1
Big Grin 
Big GrinHey all!

I am having issues setting up stacking to work with my naming hierarchy. I was wondering if there was a 'regular expressions' Nerdguru out there who could help me out.Huh

I want these to stack:

The First Movie - 1 - The Episode - Part 1.avi
The First Movie - 1 - The Episode - Part 2.avi

The First Movie - 2 - The Episode - Part 1.avi
The First Movie - 2 - The Episode - Part 2.avi

The First Movie - 3 - The Episode.avi

The First Movie - With A Subtext - 1 - The Episode - Part 1.avi
The First Movie - With A Subtext - 1 - The Episode - Part 1.avi

The Second Movie - Part 1.avi
The Second Movie - Part 1.avi

A Movie with Part in the Name 1.avi

A Movie with Part in the Name 2.avi

as:


The First Movie - 1 - The Episode.avi

The First Movie - 2 - The Episode.avi

The First Movie - 3 - The Episode.avi

The First Movie - With A Subtext - 1 - The Episode.avi

The Second Movie.avi

A Movie with Part in the Name 1.avi

A Movie with Part in the Name 2.avi

SO, the only time I want to invoke stacking is when there is a ' - Part #' at the end of the filename before the extension.Nod

I do not want ANYTHING else to stack.


RoflAny helpHuh?
Reply
#2
I have the files set as:
Example cd1.avi
Example cd2.avi

for a two part film. The cdx nomenclature is anachronistic these days, but xbmc seems to like it.
Reply
#3
I'm hoping to edit my advancedsettings.xml rather than rename hundreds of files.

Anyone?
Reply
#4
This section of the wiki has the info you need http://wiki.xbmc.org/index.php?title=Adv...tacking.3E
Reply
#5
Looking at it, the default is this:
Code:
<moviestacking>
    <!-- <cd/dvd/part/pt/disk/disc/d> <0-N> -->
    <regexp>(.*?)([ _.-]*(?:cd|dvd|p(?:ar)?t|dis[ck]|d)[ _.-]*[0-9]+)(.*?)(\.[^.]+)$</regexp>
    <!-- <cd/dvd/part/pt/disk/disc/d> <a-d> -->
    <regexp>(.*?)([ _.-]*(?:cd|dvd|p(?:ar)?t|dis[ck]|d)[ _.-]*[a-d])(.*?)(\.[^.]+)$</regexp>
    <!-- movienamea-xvid.avi, movienameb-xvid.avi -->
    <regexp>(.*?)([ ._-]*[a-d])(.*?)(\.[^.]+)$</regexp>
  </moviestacking>
you should be able to override that with a this
Code:
<moviestacking>
    <!-- <- part > <0-N> -->
    <regexp>(.*?)([ _.-]*(?: - part)[ _.-]*[0-9])(.*?)(\.[^.]+)$</regexp>
  </moviestacking>

That'll match "movie - part 1.avi" but will not match any of "movie part 1.avi" or "movie - part1.avi"

(but my regex skills are lousy, so this may not work, suggest testing it!)
Reply
#6
Hey,

can you help me? i tried looking everywhere i also tried to write it myself but i just dont get it,

im using Yammm and the syntax it uses is
Title (Year) [1 Of 2]
Title (Year) [2 Of 2]
ex:
A View to a Kill (1985) [1 of 2]
A View to a Kill (1985) [2 of 2]

and i just cant get this to stack, please can someone help me?

thanks!
Reply
#7
Hey painishere

Did you ever get the stacking problem fixed with yammm? I had exactly the same problem with movies renamed by yammm. I'm not great with regular expressions but have adapted one of the default ones. This regular expression seems to work for me:

Code:
<moviestacking action="append">
    <!-- This expression will match movename1 [1 of 2].avi -->
    <regexp>(.*?)([ _.-]*(?:cd|dvd|\[|dis[ck]|d)[ _.-]*[0-9]+)(.*?)(\.[^.]+)$</regexp>
</moviestacking>

I've also taken out the part with matches for "part" as yammm doesn't use this and it was causing problems with "Hangover Part II (2008) [1 of 2]".
Reply

Logout Mark Read Team Forum Stats Members Help
advancedsettings- moviestacking (regular expressions)0