i've been running into a number of problems since my upgrade from XBMC 13 to Kodi 14 and as such, i've begun testing a new implementation of my system in house, however, i've been running into some issues with file recognition when dealing with Anime.
I've also been performing a mass rename/organization change to my anime directories (using AniDB O'Matic) which could be leading to some issues, but as i've been pushing towards a more "uniform" convention, i'm hoping that if I solve the one problem, i'll solve the rest as well.
Running a completely fresh install of Kodi, with the AniDB mod from the OP installed and configured, I seem to only be getting episode information for a select few shows.
All of my folders are recognized without issue, but the contents seem to be hit and miss.
Most notably, i'm finding anything using the following format is not being detected.
Quote:[GroupName] Anime Title - 1 [HASH].ext -- No Leading Zero on Episode Number (Occurs when season is less than 10 episodes)
[GroupName] Anime Title - 01 [HASH].ext -- Leading Zero on Episode Number (Occurs when season is >= 10 episodes)
[GroupName] Anime Title - 1v2 [HASH].ext -- Episode Number with Revision
[GroupName] Anime Title - S1 [HASH].ext -- Specials (Episode Number appears as S1/S2/S3/S3/etc.)
[GroupName] Anime Title - S1v3 [HASH].ext -- Same as above, but with revision number.
[GroupName] Anime Title 2 - 1 [HASH].ext -- Season 2/Episode 1, additionally, will the 2 which is denoting the season number be picked up as the episode number?
[GroupName] Anime Title S2 - 1 [HASH].ext -- Variant of above, S "could" also appear as other letter(s), R for example.
[GroupName] Anime Title (YEAR) - 1 [HASH].ext -- As remasters, rereleases, or even second seasons sometimes define a year, this format can happen too.
Some filenames being recognized are:
(These filenames will not be present and will follow the above format(s) once I have completed my naming changes)
Quote:Arigatou.Death.Note.Ep01.[x264.AAC][558F2901].mkv
[H-A]_Nana_EP_01_[E01183C2].mkv
[SHS-TW] D.Gray-man - 001 [DB146C6F].avi **(which is interesting, since [SHS] D.Gray-man - 007 [FA9E073F].avi doesn't get picked up)**
Arigatou.Blood+.Ep01.[x264.AAC][2CF30EA5].mkv
I'm not much use when it comes to working around regex sorcery, so i'm having trouble figuring out exactly what or where something is going wrong, or rather, how I can tweak this to my situation.
I'm currently using the advancedsettings.xml file defined at
http://kodi.wiki/view/Anime#Scanning_fil...aming_them
I am also using the regexp contained in the OP (inline prior to the end of the prepend section of the tvshowmatching)
Code:
<regexp> - ()(\d+)((?:-\d+)*)(?:v\d+)? - [^\\/]*$</regexp>
<regexp defaultseason="0"> - ()s(\d+)((?:-\d+)*)(?:v\d+)? - [^\\/]*$</regexp>
My full advancedsettings.xml can be found at
http://pastebin.com/Uyyk7auY
Any assistance with this is greatly appreciated.
Thank you.
***
[EDIT]
While playing around with some other expressions i've found throughout the forums, I hacked a couple together with the help of regex101.com and came up with these.
Code:
<regexp>(?i)[-][-._ ]+S(?: ?)?(\d{1,3})[-._ ]*(?:ep?[ .]?)?(\d{0,3})(?:[_ ]?v\d+)?[-._ ]*(?:[[({][^])}]+[])}][-_ ]*)*?(?:[[({][\da-f]{8}[])}])</regexp>
<regexp>(?i)()[-._ ]+(?:ep?[ .]?)?(\d{1,3})(?:[_ ]?v\d+)?[-._ ]*(?:[A-Za-z_ ]+)?(?:[[({][^])}]+[])}][-_ ]*)*?(?:[[({][\da-f]{8}[])}])</regexp>
As per the site, these should be able to match any of my expected filenames (as below), as well as any names not yet converted.
Quote:[GroupName] Anime Title - 1 [FF37F77E].ext
[GroupName] Anime Title - 01 [FF37F77E].ext
[GroupName] Anime Title - 1v2 [FF37F77E].ext
[GroupName] Anime Title 2 - 01 [FF37F77E].ext
[GroupName] Anime Title S2 - 01 [FF37F77E].ext
[GroupName] Anime Title R2 - 01 [FF37F77E].ext
[GroupName] Anime Title (2014) - 1 [FF37F77E].ext
[GroupName] Anime Title (2014) - 01 [FF37F77E].ext
[GroupName] Anime Title - Subtitle (2014) - 01 [FF37F77E].ext
[GroupName] Anime Title - S1 [FF37F77E].ext
[GroupName] Anime Title - S2 [FF37F77E].ext
[GroupName] Anime Title - S01 [FF37F77E].ext
[GroupName] Anime Title - S1v3 [FF37F77E].ext
[GroupName] Anime Title - S02v2 [FF37F77E].ext
Arigatou.Death.Note.Ep01.[x264.AAC][558F2901].mkv
[H-A]_Nana_EP_01_[E01183C2].mkv
[SHS-TW] D.Gray-man - 001 [DB146C6F].avi
Arigatou.Blood+.Ep01.[x264.AAC][2CF30EA5].mkv
Unfortunately though, when I put these into my advancedsettings.xml and comment out any other expressions, it doesn't appear to work at all.
=========================================
[EDIT2] -
RESOLVED
Made some further modifications to my RegExps and now appear to have everything working as intended.
My "new" full advancedsettings.xml can be found here:
http://pastebin.com/Jzy2vZnu
My changes/additions were...
Removal of all other RegExp, and the implementation of the following:
Code:
<tvshowmatching action="prepend">
<!-- Regular Season Episodes -->
<regexp>(?i)[^S|C\T\d?v\d](\d{1,3})(?:[_ ]?v\d+)?[-._ ]*(?:[A-Za-z_ ]+)?(?:[[({][^])}]+[])}][-_ ]*)*?(?:[[({][\da-f]{8}[])}])</regexp>
<!-- Specials ONLY -->
<regexp defaultseason="0">(?i)[S](\d{1,3})*(?:ep?[ .]?)?(\d{0,3})(?:[_ ]?v\d+)?[-._ ]*(?:[[({][^])}]+[])}][-_ ]*)*?(?:[[({][\da-f]{8}[])}])</regexp>
</tvshowmatching>
This RegExp combo allows a standardized naming convention, following the format seen above.
It also allows you to rename Trailers/OPs/EDs using AniDB's numbering system, and as per the AniDB O'Matic naming system.
(Trailers prefixed with T##, OPs/EDs prefixed with C##, and Specials prefixed with S##)
Hopefully this can help someone else out.