JustWatch integration
complete
Amrayu78
Someone from JustWatch contacted me and I think it would be nice to integrate this on our site.
I will send you the PDF since it contains sensitive data.
Please let me know what you think of this.
Amrayu78
marked this post as
complete
Amrayu78
Max Romanchenko New task for you.
Max Romanchenko
Amrayu78
I think it's a good idea and won't require any complicated configuration. I can integrate the JustWatch widget directly into our templates.
Just to clarify - should we include it on all pages for Drama, Movie, and Special? And do you have a preferred placement on the page (e.g. below the synopsis, near the cast, etc.)?
Let me know and I'l proceed accordingly.
Amrayu78
Max Romanchenko yes, dramas, movies and specials. Let’s place it directly under synopsis to see how it looks first. Thanks!
Max Romanchenko
Amrayu78
I've added the JustWatch widget below the synopsis section. Since we don't have JustWatch, IMDB or TMDB IDs, the widget searches by title and year.
While it won't find matches for most titles, it does successfully locate some shows and movies - see the screenshots I provided for examples of working matches.
Amrayu78
Max Romanchenko Thanks max! Would it be a good idea to start adding TMDB IDs?
Max Romanchenko
Amrayu78
Yes, adding TMDB IDs would be a good idea! It would make the JustWatch widget much more accurate and reliable.
With TMDB IDs, the widget can directly fetch the correct title instead of guessing based on title and year.
The widget supports TMDB IDs directly, so when you add them to your titles, we can configure it to use those precise identifiers first, only falling back to title/year search when no ID is available.
Amrayu78
Max Romanchenko Okay, let’s add a new field for TMBD ID then. You can add it to the meta data of the titles we already have. If an ID is available then we can auto-create a link to the tmdb page. It’ll be similar to the CDJapan IDs we have.
Max Romanchenko
Amrayu78
Perfect! The TMDB ID field has been added (in forms and in the admin panel). It now automatically creates a link to the TMDB page when available, and the JustWatch widget has been improved to use the TMDB ID for better accuracy while keeping the title/year search as a fallback option.
Please test it.
C
Cat
Max Romanchenko Just a quick question, as I just tested adding the TMDB listing for a series (Just a Bit Espers) - I was wondering if we use this instead of the "Licensed" field now, or do we use both? Also is it meant to pop up like this? I was trying to work out why there are two icons lol
Max Romanchenko
Cat That's a great question. The new widget does cover similar functionality to the "Licensed" field by showing streaming availability. However, it's still quite new, so I'd recommend we test it for a while before making any decisions about replacing existing fields.
Let's gather some data and then discuss with Duong to make the best decision together.
Amrayu78
Max Romanchenko Lets see how this JustWatch widget works first.
The Licensed field has a bit deeper integration on DO since it's included in search too and there's a globe icon in the search to indicate licensed titles.
I found a potential bug, for https://www.themoviedb.org/tv/299056-drama
The TMBD ID can have text at the end like this, so I couldn't update this title: https://drama-otaku.com/drama/takumi-kun-series-drama/?edit-post
Amrayu78
We might have to expand this field a bit?
Here's another issue: https://www.themoviedb.org/movie/1554065
The link is listed as /movie/ but it's actually a drama on tmdb, as a result the link is broken on our site.
Another variant:
Max Romanchenko
Amrayu78
Thank you for your research!
- TMDB URL slugs - You're right that TMDB URLs often include slugs like "-drama", but this is handled automatically. TMDB properly redirects from clean IDs (/tv/299056) to the slugged versions (/tv/299056-drama), so our links will always work correctly.
In other words, there is no need to store the full TMDB URL.
- Content type mismatches - You're right again. I've expanded the TMDB field (TMDB Details) to store both the ID and TMDB content type (movie/show). This ensures links and the JustWatch widget always match TMDB's classification, even when it differs from our site's post types.
The updated implementation now stores both TMDB ID and content type to generate accurate TMDB links and provide precise JustWatch widget matching when available, with fallback to title/year search when no ID exists.
This should resolve both issues you found.
Amrayu78
Max Romanchenko Thanks for these enhancements. it's working good.
Can we change TMDB Type "Show" to "TV" so it matches TMDB?
Also one more minor enhancement since some users asked for this feature a long time ago. Please expose the TMDB ID so users can copy it for the meta-data.
See attached.
Max Romanchenko
Amrayu78 It's done, everything's ready. Please check it.
Amrayu78
Max Romanchenko looks great! Thanks.