Skip to content

Commit

Permalink
small change in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mynttt committed Feb 7, 2022
1 parent 41e75b5 commit 688d77c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import updatetool.imdb.ImdbDatabaseSupport.ImdbMetadataResult;

//TODO: new v4 support and v3 legacy lookup
// TMDB API v4 appears to only be used to manage the user account and user account items like personal watchlists (07.02.2022)

public class TmdbApiV4 extends AbstractApi implements TmdbApi {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/updatetool/imdb/ImdbDatabaseSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private boolean updateNewAgentMetadataMapping(ImdbMetadataResult m) throws SQLEx
return false;

String result = null;
try(var handle = provider.queryFor("SELECT t.tag FROM taggings tg LEFT JOIN tags t ON tg.tag_id = t.id AND t.tag_type = 314 WHERE tg.metadata_item_id = " + m.id + " AND t.tag NOT NULL")) {
try(var handle = provider.queryFor("SELECT t.tag FROM taggings tg LEFT JOIN tags t ON tg.tag_id = t.id AND t.tag_type = 314 WHERE tg.metadata_item_id = " + m.id + " AND t.tag NOT NULL ORDER BY t.tag ASC")) {
while(handle.result().next()) {
String id = handle.result().getString(1);
if(result == null || !result.startsWith("imdb://"))
Expand Down

0 comments on commit 688d77c

Please sign in to comment.