-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.5.1 <=> TMDB Fallback for new movie agent
- Loading branch information
Showing
29 changed files
with
793 additions
and
656 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.5.0 | ||
1.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package updatetool; | ||
|
||
import java.util.List; | ||
import updatetool.common.Pair; | ||
import updatetool.imdb.ImdbDatabaseSupport.ImdbMetadataResult; | ||
|
||
public final class Globals { | ||
|
||
private Globals() {} | ||
|
||
/* | ||
* Badges | ||
*/ | ||
|
||
public static final Pair<String, String> | ||
NEW_TMDB = Pair.of("at:audienceRatingImage", "themoviedb://image.rating"), | ||
NEW_IMDB = Pair.of("at:audienceRatingImage", "imdb://image.rating"), | ||
NEW_TVDB = Pair.of("at:audienceRatingImage", "thetvdb://image.rating"), | ||
ROTTEN_A = Pair.of("at:audienceRatingImage", "rottentomatoes://image.rating.upright"), | ||
ROTTEN_R = Pair.of("at:ratingImage", "rottentomatoes://image.rating.ripe"), | ||
OLD_IMDB = Pair.of("at:ratingImage", "imdb://image.rating"); | ||
|
||
public static final List<Pair<String, String>> STRIP = List.of(NEW_TMDB, ROTTEN_A, ROTTEN_R, NEW_TVDB); | ||
|
||
/* | ||
* Agents | ||
*/ | ||
|
||
private static final List<String> NEW_AGENTS = List.of( | ||
"plex://movie/", | ||
"plex://season/", | ||
"plex://episode/", | ||
"plex://show/" | ||
); | ||
|
||
public static boolean isNewAgent(ImdbMetadataResult meta) { | ||
for(String newagent : NEW_AGENTS) { | ||
if(meta.guid.startsWith(newagent)) | ||
return true; | ||
} | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.