Advertisement
sihy

Untitled

Jan 28th, 2020
1,673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. @@ -233,7 +241,9 @@
  2. if title_tuple is None:
  3. raise RuntimeError("Record has no title: " + data)
  4.  
  5. - if not force_refresh and rec.has_key("image") and rec.has_key("fanart_image") and rec["image"] is not None and rec["fanart_image"] is not None:
  6. + # simon edit - the eval of empty strings doesn't work
  7. + if not force_refresh and rec.has_key("image") and rec.has_key("fanart_image") and rec["image"] is not None and rec["fanart_image"] is not None and len(rec['image']) and len(rec['fanart_image']):
  8. + # end
  9. logging.info("We have both image and fanart_image already for %s so nothing to do (%s)", uuid, recjson)
  10. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement