Finalspace Wrote:That issue for infinte loop and crashes xbmc scrapping process is definitly annoying and i want to do something to get this thing working.
I can simply reproduce that for the following folders:
"To Heart 2 ad"
"Bishoujo Senshi Sailor Moon R"
"Bishoujo Senshi Sailor Moon R (1993)"
Therefore i think it happens for all animes which dont exists by the anidb name in TVDB.
So i did some research into this problem to try and figure out how this infinite loop happens. It's really quite strange. It has to do with 3 functions.
after analyzing the show from the anidb page, GetTVDBLookupAPI is called to get any fanart and such.
GetTVDBLookupAPI scrapes the anib page for information to guess the tvdb name. It also stores all the prequels. It returns a call to GetFanartAPI with the tvdb search url
GetFanartAPI tries to get fanart from the tvdb data. It make a call to GetTVDBLookupLoopAPI to lookup prequels when there is no tvdb data
GetTVDBLookupLoopAPI makes a call to GetTVDBLookupAPI with the prequel info.
This problem of an infinite loop happens when you have a show that has no data on TVDB and it has a prequel that ALSO has no data on TVDB. But the error that occurs seems to be related to a bug in XBMC. I say this because the bug doesnt happen everytime, but seems non deterministic. It happens MOST times however.
I've appended 2 log sections. The first time is when the lookup did not fail. The second time when it fails. (the foo and bar attributes are some debugging information that I added. foo is the id of any known prequel, bar is the shows name). when xbmc crashes, for some reason when the tvdblookuploop calls tvdblookup with a prequel, the curl call doesnt happen. So the tvdb lookup returns the same show again, and this just goes on forever.
successful lookup.
Quote:13:47:09 T:3236 M:2237095936 DEBUG: scraper: GetTVDBLookupAPI returned <details><url function="GetFanartAPI" cache="tvdb-s5592-To%20Heart%202%20ad.xml"foo="4806"bar="To Heart 2 ad">http://www.thetvdb.com/api/GetSeries.php?seriesname=To%20Heart%202%20ad</url></details>
13:47:09 T:3236 M:2237095936 DEBUG: FileCurl::Open(086EF130) http://www.thetvdb.com/api/GetSeries.php...t%202%20ad
13:47:10 T:3236 M:2237100032 DEBUG: FileCurl::Close(086EF130) http://www.thetvdb.com/api/GetSeries.php...t%202%20ad
13:47:10 T:3236 M:2237116416 DEBUG: scraper: GetFanartAPI returned <details><url function="GetTVDBLookupLoopAPI" cache="5592.xml"foo="4806">&</url></details>
13:47:10 T:3236 M:2237095936 DEBUG: scraper: GetTVDBLookupLoopAPI returned <details foo=""><url function="GetTVDBLookupAPI" gzip="yes" cache="4806.xml">http://api.anidb.net:9001/httpapi?request=anime&client=xbmcscrap&clientver=1&protover=1&aid=4806</url></details>
13:47:10 T:3236 M:2237095936 DEBUG: FileCurl::Open(086EF130) http://api.anidb.net:9001/httpapi?reques...1&aid=4806
13:47:11 T:3236 M:2237095936 DEBUG: FileCurl::Close(086EF130) http://api.anidb.net:9001/httpapi?reques...1&aid=4806
13:47:11 T:3236 M:2237095936 DEBUG: scraper: GetTVDBLookupAPI returned <details><url function="GetFanartAPI" cache="tvdb-s4806-To%20Heart%202%20OVA.xml"foo=""bar="To Heart 2 OVA">http://www.thetvdb.com/api/GetSeries.php?seriesname=To%20Heart%202%20OVA</url></details>
13:47:11 T:3236 M:2237095936 DEBUG: FileCurl::Open(086EF130) http://www.thetvdb.com/api/GetSeries.php...%202%20OVA
13:47:14 T:3236 M:2237870080 DEBUG: FileCurl::Close(086EF130) http://www.thetvdb.com/api/GetSeries.php...%202%20OVA
13:47:14 T:3236 M:2237886464 DEBUG: scraper: GetFanartAPI returned <details><url function="GetTVDBLookupLoopAPI" cache="4806.xml"foo="">&</url></details>
13:47:14 T:3236 M:2237853696 DEBUG: scraper: GetTVDBLookupLoopAPI returned <details foo=""><url function="GetFanartDataReturnAPI" cache="4806.xml">&</url></details>
13:47:14 T:3236 M:2237853696 DEBUG: scraper: GetFanartDataReturnAPI returned <details></details>
failed lookup
Quote:13:49:44 T:2680 M:2241540096 DEBUG: scraper: GetTVDBLookupAPI returned <details><url function="GetFanartAPI" cache="tvdb-s5592-To%20Heart%202%20ad.xml"foo="4806"bar="To Heart 2 ad">http://www.thetvdb.com/api/GetSeries.php?seriesname=To%20Heart%202%20ad</url></details>
13:49:44 T:2680 M:2241536000 DEBUG: scraper: GetFanartAPI returned <details><url function="GetTVDBLookupLoopAPI" cache="5592.xml"foo="4806">&</url></details>
13:49:44 T:2680 M:2241536000 DEBUG: scraper: GetTVDBLookupLoopAPI returned <details foo=""><url function="GetTVDBLookupAPI" gzip="yes" cache="4806.xml">http://api.anidb.net:9001/httpapi?request=anime&client=xbmcscrap&clientver=1&protover=1&aid=4806</url></details>
13:49:44 T:2680 M:2241503232 DEBUG: scraper: GetTVDBLookupAPI returned <details><url function="GetFanartAPI" cache="tvdb-s4806-To%20Heart%202%20ad.xml"foo="4806"bar="To Heart 2 ad">http://www.thetvdb.com/api/GetSeries.php?seriesname=To%20Heart%202%20ad</url></details>
13:49:44 T:2680 M:2241499136 DEBUG: scraper: GetFanartAPI returned <details><url function="GetTVDBLookupLoopAPI" cache="4806.xml"foo="4806">&</url></details>
13:49:44 T:2680 M:2241499136 DEBUG: scraper: GetTVDBLookupLoopAPI returned <details foo=""><url function="GetTVDBLookupAPI" gzip="yes" cache="4806.xml">http://api.anidb.net:9001/httpapi?request=anime&client=xbmcscrap&clientver=1&protover=1&aid=4806</url></details>
13:49:44 T:2680 M:2241499136 DEBUG: scraper: GetTVDBLookupAPI returned <details><url function="GetFanartAPI" cache="tvdb-s4806-To%20Heart%202%20ad.xml"foo="4806"bar="To Heart 2 ad">http://www.thetvdb.com/api/GetSeries.php?seriesname=To%20Heart%202%20ad</url></details>
13:49:44 T:2680 M:2241499136 DEBUG: scraper: GetFanartAPI returned <details><url function="GetTVDBLookupLoopAPI" cache="4806.xml"foo="4806">&</url></details>
13:49:44 T:2680 M:2241499136 DEBUG: scraper: GetTVDBLookupLoopAPI returned <details foo=""><url function="GetTVDBLookupAPI" gzip="yes" cache="4806.xml">http://api.anidb.net:9001/httpapi?request=anime&client=xbmcscrap&clientver=1&protover=1&aid=4806</url></details>
13:49:44 T:2680 M:2241499136 DEBUG: scraper: GetTVDBLookupAPI returned <details><url function="GetFanartAPI" cache="tvdb-s4806-To%20Heart%202%20ad.xml"foo="4806"bar="To Heart 2 ad">http://www.thetvdb.com/api/GetSeries.php?seriesname=To%20Heart%202%20ad</url></details>
....
notice how foo and bar are related to the show being looked up even when we are looking up the prequel.