From 792d4debebaef6047b50f6b50339ac11f08c0ee2 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 19 Jun 2016 15:34:27 +0200 Subject: [PATCH] Fix fanart.tv fallback to English not working - Fixes #63 --- resources/lib/PlexAPI.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index b6a4a8a4..2c29ae92 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -2125,7 +2125,8 @@ class API(): allartworks[fanarttype[1]] = entry.get("url") break # just grab the first english OR undefinded one as fallback - if allartworks.get(fanarttype[1]) is None: + # (so we're actually grabbing the more popular one) + if not allartworks.get(fanarttype[1]): for entry in data[fanarttvimage]: if entry.get("lang") in ("en", "00"): allartworks[fanarttype[1]] = entry.get("url")