2019-12-17, 22:48
Hi,
My database is plagued false entries. That is because much folder structures look like this:
This causes (or i think but a fairly educated guess) the movie to appear x number of times.
I can clean thuis up, but i need to do that directly in the KODI sqlite database as i don't want to change the folder content. There might be more ways, but i only know of this one.
Now a clean nice solution imho would be to let the indexer be a little more intelligent.
The indexer knows (or should know) the movie length from IMDb (and it knows that ID as it's present in my "uniqueid" table).
Now if it uses the exact time that IMDb gives as check against files to index it probably doesn't index much as the length can deviate a bit.
So here's the algorithm i would apply to it.
I think i can implement this, but i don't quite know where the code is hidden for these scrapers? In my case "themoviedb" in particular.
All the above is true for series too.
Cheers,
Mark
My database is plagued false entries. That is because much folder structures look like this:
Quote:Movie
- Video file <actual movie>
- Video file <trailer>
- ..
This causes (or i think but a fairly educated guess) the movie to appear x number of times.
I can clean thuis up, but i need to do that directly in the KODI sqlite database as i don't want to change the folder content. There might be more ways, but i only know of this one.
Now a clean nice solution imho would be to let the indexer be a little more intelligent.
The indexer knows (or should know) the movie length from IMDb (and it knows that ID as it's present in my "uniqueid" table).
Now if it uses the exact time that IMDb gives as check against files to index it probably doesn't index much as the length can deviate a bit.
So here's the algorithm i would apply to it.
- Get the information from the scraper.
- Get the video length of all the potential files.
- Index the file that is in length within 10% of the length that IMDb says it should be.
- Disregard the rest.
I think i can implement this, but i don't quite know where the code is hidden for these scrapers? In my case "themoviedb" in particular.
All the above is true for series too.
Cheers,
Mark