-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to use Tmdb instead of Imdb. #42
Comments
I want to emphasize that as an open source project I think it would be great to also support open knowledge platforms and make people aware of such solutions. |
And the result of the tmdbsimple library can be provided in other languages, not only in english.
When there is no result for my language, I make another query without specifying a language to make the query in English:
|
An additional option besides the automatic search, would also be to create a tag with the id of the movie / series on TMDB.
With the function below I can get url of the image, synopsis of the movie and link to the movie trailer:
### Search results for the 4 movies above
|
### Here the function for the Series
Search results for the 4 series above
|
The best strategy would be to add a tvg-tmdbid tag to the m3u file if tvg-tmdbid has any value with only numeric characters otherwise {tvg-tmdbid = ''}, search for the name of the 'movie or series' to find the TMDB ID and then search the other values with that TMDB ID
Of course, this is just a demonstrative example, but it could change the functions {movie_detail and serie_detail} to instead of printing the value in the terminal, return these values with a list to be manipulated in the main program code. Note: In this case, the search takes the first result from the TMDB list. This can cause problems, it can pass information from another film or series. |
Option to use Tmdb instead of Imdb.
Because tmdb is an open source database that is updated by the users themselves.
https://developers.themoviedb.org/3/getting-started/introduction
https://pypi.org/project/tmdbsimple/
https://pypi.org/project/tmdbv3api/
note:
Also provided in the code to make requests in the system language.
Because currently the synopsis of the films are shown on the screen in English only (Imdb whth hypnotix source code)
The text was updated successfully, but these errors were encountered: