Parsing with Absolute ordering (1 Viewer)

ductic

Portal Member
June 13, 2008
6
0
Home Country
Sweden Sweden
Hello,

I have a problem with a show (Naruto) that I hope someone has a solution to. As you can see in the attached picture, the parsing test shows that everything should parse correctly. When I do the "Online Data Sync" and choose "Absolute order" only episode 1-99 gets an episode title. Also, only episode 1-35 gets an episode image.

Why is this?

/Ductic
 

Attachments

  • Parsing-test.gif
    Parsing-test.gif
    78 KB

venares

Portal Member
November 7, 2007
23
3
Home Country
United Kingdom United Kingdom
Place all your eps in a folder called "Season 00".
Then use the expression below.
Works great with bleach so should work with Naruto too.
You may need to enable showing removables in mediaportal for the episodes to show up.

Regexp:
Code:
(?<season>00).*(?<series>Naruto)[\s-00_]{1,3}(?<episode>\d+)(?:-(?<episode2>\d+))?.*\.(?<ext>[^.]*)
 

ductic

Portal Member
June 13, 2008
6
0
Home Country
Sweden Sweden
Thank you venares, it now works as it should :) I have tried everything else than setting the season as 0. How simple and it now works :) Although I modified my own script so I didn't have to put the files in a separate seasons folder but the effect is still the same.

Thanks!:D
 

tgxiii

Portal Pro
November 17, 2008
68
0
Hi ductic. Would you mind sharing your modified script? I'd like to use absolute ordering as well without having to move my series into a different folder.
 

ductic

Portal Member
June 13, 2008
6
0
Home Country
Sweden Sweden
It's nothing fancy though but here's what I did:
A string replacement that is set to run before matching: Replace _Naruto_ with _Season_0_Naruto_

And then I have this parsing expression:
\[(DB|Lunar|Shinsen-Subs|umai-Doremi|ANBU-AonE|ADC-Elites|Gerusama.com|INP|Vegapunk|K-F|Infusion|Keep-Infusion)\]_Season_(?<season>[0-9])_(?<series>[^\d]*?)_(?<episode>[0-9]{1,3})(-(?<episode2>[0-9]{1,3}))?[\w\[\]]*.(?<ext>[^\\]*)

I use the same expression for my other anime shows which is why you see different release groups in the expression. You can remove those that you do not need.
 

tgxiii

Portal Pro
November 17, 2008
68
0
Ah, I didn't even think of using string replacement. That's pretty clever.

Problem is, I have a ton of different anime shows, and I don't want to have to type them all into the string replacement, and I also didn't want to add any new ones in case I got new shows.

Is there no way to hard code a "0" in a regular expression? Or in a simple expression even.
 

frying_fish

Portal Member
August 21, 2008
43
3
Home Country
United Kingdom United Kingdom
I was working on a way to get absolute ordering done over the summer when I had some free time. I find that it partially works. For bleach it has managed to get all the information for episodes up to 202, it does however sometimes put the wrong information in for the files, and displays them as :

Season 0
Season 1
Season 2

which is not ideal. However without a redesign to the way the database / plugin interact with each other I couldn't fix this issue. Essentially when finding the file information it will put the correct "series 1 - episode XXX" into the database table for the file itself. However the table that the plugin references for displaying these will not accept these details correctly - i.e. it will just fail to parse completely and won't display them properly at all.

If someone has good knowledge of C# and its interaction with sqllite databases and is willing to look into the code I don't know if there would be much trouble to it.
 

Users who are viewing this thread

Top Bottom