Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84005

regex help

$
0
0
Hi. I have spent hours and hours trying to figure out a regexp for some special tv episodes. I have successfully got it to work but with some hardcoded parts. I would like to have a regexp that can do this by its own.
The regexp looks like this now

<tvshowmatching action="append">
<regexp>[Ss]([0-9]+)[ ._-]*[Ee]([0-9]+)([^\\/]*)(?Sad?Sad?:[\\/]dokkampchristiania)?[\\/] dokumentar\.kampen\.om\.christiania\.swesub\.pdtv\.xvid\-apb\.rar)?[\\/]Dokumentar\.Kampen\.om\.Christiania\.SWESUB\.PDTV\.XviD-APB\.avi)$</regexp>
</tvshowmatching>

The folder structure is this "L:\dokutest\Dokumentarer\s28e01\dokkampchristiania\dokumentar.kampen.om.christia​nia.swesub.pdtv.xvid-apb.rar/dokumentar.kampen.om.christiania.swesub.pdtv.xvid-apb.avi"

I have more of this with other names, seasons and episodes.

I am doing this way because its scene releases with no season and episode in its filename and i dont want to rename them.
"dokkampchristiania" is a symlink to a folder where the files actually are.

I hope that you understand what i mean Smile.
Thanks in advance
//Live2Ride

Viewing all articles
Browse latest Browse all 84005

Trending Articles