Problem on the addon with imdb and tmdb #428

Closed
opened 2025-10-15 09:34:14 +00:00 by GLlgGL · 9 comments
GLlgGL commented 2025-10-15 09:34:14 +00:00 (Migrated from github.com)

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.

Image
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. <img width="172" height="300" alt="Image" src="https://github.com/user-attachments/assets/55dcfe0d-8ca6-4d44-987c-5d84b5231e27" />
webstreamr commented 2025-10-15 11:40:52 +00:00 (Migrated from github.com)

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

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
GLlgGL commented 2025-10-15 11:49:43 +00:00 (Migrated from github.com)

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.

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.
webstreamr commented 2025-10-15 12:05:11 +00:00 (Migrated from github.com)

yeah, sorry, I was wrong. I checked using the tmdb find-by-id API with tt38110408 which returns something useful. but this is not how stremio works. stremio uses something like tt13207736:1:5 and 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.

yeah, sorry, I was wrong. I checked using the tmdb find-by-id API with `tt38110408` which returns something useful. but this is not how stremio works. stremio uses something like `tt13207736:1:5` and 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.
webstreamr commented 2025-10-15 12:19:51 +00:00 (Migrated from github.com)

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.

having said that, https://github.com/Ivshti/name-to-imdb/blob/93ef1ce2df4f8b71d7da37ea63c021f345930551/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.
GLlgGL commented 2025-10-15 12:34:54 +00:00 (Migrated from github.com)

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...

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...
webstreamr commented 2025-10-15 19:55:55 +00:00 (Migrated from github.com)

added a manual imdb -> tmdb mapping override for Monster for now in 405a8efad3 which 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

added a manual imdb -> tmdb mapping override for Monster for now in https://github.com/webstreamr/webstreamr/commit/405a8efad349a287744d0a584a2ff813a8b2d030 which 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
webstreamr commented 2025-10-15 20:18:11 +00:00 (Migrated from github.com)

switched some series sources from imdb to tmdb which deals with the rest I think

switched some series sources from imdb to tmdb which deals with the rest I think
GLlgGL commented 2025-10-15 20:38:41 +00:00 (Migrated from github.com)

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

There is an addon called StreamviX which is working on this TV serie. Didn't looked what he is using. [GiT repo](https://github.com/qwertyuiop8899/streamvix) 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
webstreamr commented 2025-10-15 21:28:57 +00:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Creepso/webstreamr-github#428
No description provided.