Problem on the addon with imdb and tmdb #428
Labels
No labels
MediaFlow Proxy
autorelease: pending
autorelease: tagged
bug
documentation
duplicate
enhancement
help wanted
invalid
question
wontfix
🇩🇪 German
🇫🇷 French
🇮🇳 Indian
🇸🇦 Arabic
🌐 Multi
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Creepso/webstreamr-github#428
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi
I found a series called "Monster". When you select that series in stremio no result appears from your addon.
It's not that the sources don't have the series links but there is a glitch between imdb and tmdb.
To get title from tmdb you need to search by imdb id but in this case the result is empty.
TMDB doesn't have the IMDB id on their database on this series. TMDB itself has the movie in their database but not the IMDB id.
Here everything stucks.
On other addons with same source this series is showing results...
Maybe you have to get the title directly from imdb html instead?
Also It is best to try to get the title directly from both imdb and tmdb and search for both because there are many cases where the year for example of a serie shows different between two and the serie on the website where you are trying to scrap.
For example the serie Monster on the IMDB shows with year 2022 and on TMDB shows with year 2025...on the website that we talked together lately has this serie with year 2025...so in this case if you get the the year from imdb and use that on search will not show result but if you add a fallback in case the first search fails to try to get the year from TMDB and search again will show you the result.
thank you for reporting this, I was aware of the imdb/tmdb mess of that show, but thought so far that that's the reason. actually, there's an issue in the id conversion but it should be an easy fix
I don't know if it is easy but the logic should be that you have the possibility to search and get for movie/serie title and year directly from imdb and tmdb and use both in search query because if one fails(because the year or the title changes between those two and the website you are trying to match) use the other one.
I lost 30 min with my testings because i though it was a problem in my code but when i tried that serie directly with public instance was the same = 0 results...
So saying it short usig IMDB id to search on TMDB will not always work with existing code especialy with the newest movies/series.
yeah, sorry, I was wrong. I checked using the tmdb find-by-id API with
tt38110408which returns something useful. but this is not how stremio works. stremio uses something likett13207736:1:5and tt13207736 does not return anything.I won't start parsing tmdb/imdb html for this case. I can live with some kind of manual mapping for such rare cases, but I won't add much special code. as you said, the data is messed up. or the data where title and year are pulled from needs to change to something else. but honestly, I don't know if I want to spend much effort with something that works really well except for this edge case.
I'll keep this open and you can add more if you want, but please stop with the comment flooding. I'll have to unsubscribe from these issues otherwise and will most likely not look at them except they become urgent.
having said that,
93ef1ce2df/providers/cinemeta.js (L6-L7)could be a solution to deal with this. e.g. https://cinemeta.strem.io/stremioget/stremio/v1/q.json?b=eyJwYXJhbXMiOltudWxsLHt9XSwibWV0aG9kIjoibmFtZXMuc2VyaWVzIiwiaWQiOjEsImpzb25ycGMiOiIyLjAifQ== has also an entry with year for tt13207736. buut, I guess many sources still expect the tmdb title. and sources that would even work with imdb search are messed up, e.g. https://streamkiste.taxi/streamkiste/?story=tt13207736&do=search&subaction=search where I would use imdb (which should be unique) and then can use the first result, does not work. and series and episodes don't match at all. honestly, this is a very bad case which I don't know how to solve in general and I'm not sure if I even want to. I definitely can't have multiple different versions of finding things for every other source.This is very important because a lot of movie/series doesn't show results...
https://cinemeta.strem.io/stremioget/stremio/v1/q.json?b=eyJwYXJhbXMiOltudWxsLHt9XSwibWV0aG9kIjoibmFtZXMuc2VyaWVzIiwiaWQiOjEsImpzb25ycGMiOiIyLjAifQ==
That is also useless because is based on imdb format(for the tv series monster has the year 2022) and the website I am talking is based on tmdb(has the year of monster tv series 2025). This mismatch will give 0 results...Even if you at least get only the name still searching by name only will bring up multiple results(also results that might be other series) and you still can't detect which of them is the right one.
I will find a solution anyway and don't worry I will not comment anymore...
added a manual imdb -> tmdb mapping override for Monster for now in
405a8efad3which should improve the situation.3 sources which support search via imdb directly can not deal with this yet it looks, still thinking/looking about those cases
switched some series sources from imdb to tmdb which deals with the rest I think
There is an addon called StreamviX which is working on this TV serie. Didn't looked what he is using.
GiT repo
The manual fix is working now just tried.
What do you mean with changing some source from imdb to tmdb?
How I understand it is that stremio when you select a movie/serie gives you only id,season number and episode number(but not title) and you have to lookup with the imdb id on the tmdb to get the title.
Or depending on the website(source) if they use imdb format you can use meta to match them and if they use tmdb format you do the conversion Imdb->tmdb?!
Hmm confusing...Anyway I learned a lot for one week lol
Same ugly way of "fixing" it. But I think it's fine for that special case/show.. See https://github.com/qwertyuiop8899/streamvix/blob/main/src/config/imdbToTmdb.json
Basically the second thing, yes. Instead of searching on a http site for IMDb ID, I switched to tmdb ID and combined with the ugly manual map it finds the content. This was needed for a German and Spanish site.