Release [MOD] AniDB.net scrapers for TV shows and Movies
@mad61190, @TheFireKahuna all updated. Thank you! And please keep pointing these things out when you spot them. Specials, in particular, are a pain to keep on top of.


@Snuffsis, "Fairy Tail - 01" although simple, is not actually a pattern that works by default in Kodi. If you play the episode that Kodi has marked as episode 1, you'll find it's actually episode 101. This is because Kodi does match three (and higher) digit numbers as SEE - that is, first digit Season, last two digits Episode.

So only those shows that have more than 100 episodes will have any files enumerated (but incorrectly). Everything else will have no episodes.

...And if the show has no episodes, then you've clearly "watched" all of the episodes, which is why the shows are automatically being marked as watched.

To fix you need to make an advancedsettings.xml (wiki) containing:

Code:
<advancedsettings>
  <tvshowmatching action="prepend">
    <regexp>().*(?:\D|^)(\d+)((?:-\d+)+)(?=(?:\[[^\]]+]|\([^)]+\)|\{[^}]+\}|[^\]\[(){}]+)*)[^\/\\]*$</regexp>
    <regexp>().*(?:\D|^)(\d+)(?=(?:\[[^\]]+]|\([^)]+\)|\{[^}]+\}|[^\]\[(){}]+)*)[^\/\\]*$</regexp>
    <regexp defaultseason="0">().*(?:\D|^)s(\d+)(?!\d*e\d+)((?:-\d+)*)(?=(?:\[[^\]]+]|\([^)]+\)|\{[^}]+\}|[^\]\[(){}]+)*)[^\/\\]*$</regexp>
  </tvshowmatching>
</advancedsettings>

These are slightly modified from Sesshoumaru's post, which are pretty good as all-round regexps and should match the bulk of your file correctly, but there are probably still exceptions that won't work.
The first regexp handles multi-episode files with numbering 01-02-03 etc. You would need to rename the Sexy Commando Gaiden files to include all episode numbers, not just first and last.
The second regexp is for regular single episode files. Have to handle this separately from multi-episode case because the regex is greedy and would just use the last episode number otherwise.
The third regexp is adapted for special episodes using the numbering scheme "s01", you may have to manually rename them to get them to work, should you have any. It should also avoid matching incorrectly against "s01e01".

My recommendation as always is to use a file renaming tool, such as the anidb client with the rules I link in the first post, to rename all your files to a consistent standard (that will match the more specific regexps also in the first post).

I hope this helps.
Reply


Messages In This Thread
RE: - by scudlee - 2013-10-12, 17:42
RE: [RELEASE] [MOD] AniDB.net scrapers for TV shows and Movies - by scudlee - 2016-01-07, 17:52
Logout Mark Read Team Forum Stats Members Help
[MOD] AniDB.net scrapers for TV shows and Movies8