Ok, thanks for this.
That’s what I made, but not as efficient as this... have to change

Having a look at the link you provided, honestly, I’m not sure I understood how it’s supposed to work :
Code: Select all
356 @Define("imdbid")
357 public String getImdbId() {
358 if (getMovie().getImdbId() > 0)
359 return String.format(Locale.ROOT, "tt%07d", getMovie().getImdbId());
360 if (getMovie().getTmdbId() > 0)
361 return String.format(Locale.ROOT, "tt%07d", getPrimaryMovieInfo().getImdbId()); // lookup IMDbID for TMDbID
362
363 return null;
364 }
Is my issue due to the 2nd « if » ?
If there’s no imdbid (null) but a tmdbid, you still return the null imdbid with a tt%07d format, so « tt null » with 3 spaces ; 4 chars for « null » + 3 blanks = 7 chars
=> what’s the aim of this ? If it’s the case, I don’t understand ?!?
Notice that it’s the opposite case for tmdb ; it can return null if tmdbid doesn’t exists but imdbid, yes.
Thanks.