2010-01-14, 01:29
i'm simply trying to find the anime id based on the title xbmc found on the filename or directory name.
the match should be based on thoses "main" titles lines :
when you make a regex trying to scan the whole database file (2.2MB) it takes approx 30 sec to 1 min to find a match, probably a lot more if the entry is located farther as i didn't use "repeat" for my test.
so i'd like to break the database into <anime></anime> blocks and try to a title match for each of them. I do know how to assign a matching block to a buffer and then use that buffer for further parsing but i haven't found a way to repeat that on all the blocks.
But frankly i must say that even with such method i'm not really sure it'll be much faster and if not that would make the use of anidb titles database quite useless, or maybe only optional for those with serious muscle under their xbmc hood.
Google anidb title search works fine but anidb indexed page titles don't always have the actual anime title in them, only "Anidb.net".
the match should be based on thoses "main" titles lines :
Code:
<title type="main" xml:lang="x-jat">Musekinin Kanchou Tylor</title>
when you make a regex trying to scan the whole database file (2.2MB) it takes approx 30 sec to 1 min to find a match, probably a lot more if the entry is located farther as i didn't use "repeat" for my test.
so i'd like to break the database into <anime></anime> blocks and try to a title match for each of them. I do know how to assign a matching block to a buffer and then use that buffer for further parsing but i haven't found a way to repeat that on all the blocks.
But frankly i must say that even with such method i'm not really sure it'll be much faster and if not that would make the use of anidb titles database quite useless, or maybe only optional for those with serious muscle under their xbmc hood.
Google anidb title search works fine but anidb indexed page titles don't always have the actual anime title in them, only "Anidb.net".