TheTVDB.com Scraper absolute_number for Anime?

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Hijo del sol Offline
Junior Member
Posts: 11
Joined: Sep 2009
Reputation: 0
Post: #71
Nevermind; figured it out.

1. Set content>TVDB Settings>Absolute
2. Create Advancedsettings.xml
3. pull tv info again and boom. There it is.


Awesome!
find quote
chaoticmaster Offline
Junior Member
Posts: 33
Joined: Jul 2009
Reputation: 0
Post: #72
It worked. Thanks.
find quote
chaoticmaster Offline
Junior Member
Posts: 33
Joined: Jul 2009
Reputation: 0
Post: #73
TullariS Wrote:Hi

I used to get similar problems (#117 scanned as #17, etc). I made my own regexp for anime:

[\._ \-]([0-9]{2,3})()([\._\ \-][^\\/]*)

Or slightly simpler:

[\._ \-]([0-9]+)()([\._\ \-][^\\/]*)

The default regexp will not work for absolute numbering so you really need to use this one, or something along these lines.

It worked. Thanks.
find quote
dandel Offline
Junior Member
Posts: 16
Joined: May 2010
Reputation: 0
Post: #74
I started a bit of editing for the scrapers themselves to allow for querying the absolute number, however it's going to require a bit of work and fixes.... Look at bug #9723 on the xbmc trac website. However, this is work is not complete in any fashion.
find quote
Celestialtorpor Offline
Junior Member
Posts: 10
Joined: Jan 2010
Reputation: 0
Post: #75
This is great!

..Sort of.


I'm not sure what I did, but following the suggestions in this thread to allow certain animes over 100 episodes to show up properly, I implemented:

<advancedsettings>

<tvshowmatching>
<regexp>[\._ \-]([0-9]{2,3})()([\._\ \-][^\\/]*)</regexp>
</tvshowmatching>

</advancedsettings>


Only now *every* show with more than 1 season will not show the subsequent seasons.

Is there any way for me to have my cake and eat it too?
find quote
Xeijin Offline
Member
Posts: 62
Joined: Jul 2007
Reputation: 0
Post: #76
Celestialtorpor Wrote:This is great!

..Sort of.


I'm not sure what I did, but following the suggestions in this thread to allow certain animes over 100 episodes to show up properly, I implemented:

<advancedsettings>

<tvshowmatching>
<regexp>[\._ \-]([0-9]{2,3})()([\._\ \-][^\\/]*)</regexp>
</tvshowmatching>

</advancedsettings>


Only now *every* show with more than 1 season will not show the subsequent seasons.

Is there any way for me to have my cake and eat it too?

Does your Anime reside in the same folder as your TV Shows?

I'm not certain it will work, but if you have them mixed together try separating them, then re-scan your library and separately rescan "Anime" and "TV Shows" folders, with the 'absolute' setting turned ON for the Anime folder and OFF for the TV Shows folder.
find quote
TullariS Offline
Junior Member
Posts: 7
Joined: Jan 2010
Reputation: 0
Post: #77
Xeijin Wrote:Does your Anime reside in the same folder as your TV Shows?

I'm not certain it will work, but if you have them mixed together try separating them, then re-scan your library and separately rescan "Anime" and "TV Shows" folders, with the 'absolute' setting turned ON for the Anime folder and OFF for the TV Shows folder.

If that is how your <tvshowmatching> looks like, it would make sense you can't set shows with seasons to work, because you now only have that one rule to make all matches, and that rule only works with absolute numbering. You can either add the argument action="append" or action="prepend" to <tvshowmatching>, thus keeping the default rules and adding yours to the list, or you manually add all the rules you need. To give me greater control, my rules are set like this:

<tvshowmatching>
<regexp>[\._ \-][Ss]([0-9]+)[\.\-]?[Ee]([0-9]+)([^\\/]*)</regexp>
<regexp>[\._ \-]\[?([0-9]+)x([0-9]+)\]?([^\\/]*)</regexp>
<regexp>[\._ \-]([0-9]{2,3})()([\._\ \-][^\\/]*)</regexp>
</tvshowmatching>

This will match shows with seasons, in formats S00E00 and 00x00, and also matches shows with absolute numbering.

Also , don't forget to set the absolute numbering setting on or off accordingly. Its easier if you have all animes in one folder and all other shows in another.

Hope this helps
find quote
Celestialtorpor Offline
Junior Member
Posts: 10
Joined: Jan 2010
Reputation: 0
Post: #78
TullariS Wrote:If that is how your <tvshowmatching> looks like, it would make sense you can't set shows with seasons to work, because you now only have that one rule to make all matches, and that rule only works with absolute numbering. You can either add the argument action="append" or action="prepend" to <tvshowmatching>, thus keeping the default rules and adding yours to the list, or you manually add all the rules you need. To give me greater control, my rules are set like this:

<tvshowmatching>
<regexp>[\._ \-][Ss]([0-9]+)[\.\-]?[Ee]([0-9]+)([^\\/]*)</regexp>
<regexp>[\._ \-]\[?([0-9]+)x([0-9]+)\]?([^\\/]*)</regexp>
<regexp>[\._ \-]([0-9]{2,3})()([\._\ \-][^\\/]*)</regexp>
</tvshowmatching>

This will match shows with seasons, in formats S00E00 and 00x00, and also matches shows with absolute numbering.

Also , don't forget to set the absolute numbering setting on or off accordingly. Its easier if you have all animes in one folder and all other shows in another.

Hope this helps

Is that to say that for now there is no way to set a separate tvshowmatching regexp that is only activated for directories marked with Absolute Numbering turned on? I have multiple programs on multiple machines pointing to the files in my Videos folder, so moving them to a separate Anime folder would take some doing. I'll probably just stop watching animes after the 99th episodes instead. Tongue
find quote
jwcalla Offline
Junior Member
Posts: 42
Joined: Jul 2011
Reputation: 1
Post: #79
Ok so I've spent the past couple days looking into some way to do a hybrid multi-season / absolute episode ordering solution but have really run out of gas.

Let's say I have a file named s05e154, which hypothetically represents absolute episode #154 that happened to occur during season 5.

I can get the season and epnum xml tags correct in the regexp part, but XBMC can only match the episodes labeled season 1.

I think I need to make a code change somewhere, but in the places I've looked there's nothing obvious. I guess I'm confused about how it knows to handle s01e154 but not s05e154?
find quote
eliaske1130 Offline
Junior Member
Posts: 1
Joined: Sep 2011
Reputation: 0
Post: #80
Still having the same issues as other persons.

Currently I'm using the following code in advancedsettings.xml:
[HTML]
<advancedsettings>
<tvshowmatching action="append">
<regexp>[/\._ \-]()([0-9]+)(?![eExX])([/\._ \-]*[0-9]+)?</regexp>
</tvshowmatching>
</advancedsettings>
[/HTML]

When appending my normal tv-shows work perfectly, but my anime works till episode 99. Ofcourse this is because of the default rule:
[HTML] <regexp>([0-9]+)([0-9][0-9])[^\\/]*</regexp>[/HTML]
This line makes it impossible to have episodes over 99.

When inserting (prepend) the regex all my anime work, but my tv-shows with very bad naming like "house 301.avi" fails because of my custum regex.

Is it possible to enable a certain regex when "use absolute ordering" is checked and disable the default regex for "house 301.avi" showtype.
I would like to have an extra attribute in tvshowmatching tag witch specifies if "use absolute ordering" is checked.

for example:
[HTML]
<advancedsettings>
<tvshowmatching absolute="true" action="prepend">
<regexp>[/\._ \-]()([0-9]+)(?![eExX])([/\._ \-]*[0-9]+)?</regexp>
</tvshowmatching>
</advancedsettings>
[/HTML]
This would solve my problem completly.
find quote
Post Reply