[9] minor fixes

pull/1261/head
meisnate12 2 years ago
parent edc8cdc230
commit d92bd09575

@ -88,7 +88,7 @@ jobs:
- name: Get Changelog
id: notes
run: echo "NOTES=$(cat CHANGELOG -Raw)" >> $GITHUB_OUTPUT
run: echo 'NOTES="$(cat CHANGELOG)"' >> $GITHUB_OUTPUT
- name: Create release
id: create_release

@ -1 +1 @@
1.18.2-develop8
1.18.2-develop9

@ -405,7 +405,7 @@ overlays:
template: [name: flags, name: standard]
catalan:
variables: {key: ca, text: CA, weight: 330, country: es}
variables: {key: ca, text: CA, weight: 330, country: ad}
template: [name: flags, name: standard]
welsh:

@ -165,8 +165,10 @@ class Overlays:
reset_list = ["plex", "tmdb"]
else:
reset_list = []
reset_attempted = False
for reset in reset_list:
if reset == "plex":
reset_attempted = True
temp_poster = next((p for p in item.posters()), None)
if temp_poster:
new_backup = f"{self.library.url}{temp_poster.key}&X-Plex-Token={self.library.token}"
@ -174,12 +176,13 @@ class Overlays:
else:
logger.trace("Plex Error: Plex Poster Download Failed")
if reset == "tmdb":
reset_attempted = True
try:
new_backup = self.find_poster_url(item)
break
except Failed as e:
logger.trace(e)
if not new_backup and not self.library.reset_overlays:
if reset_attempted and not new_backup:
logger.error("Overlay Error: Reset Failed")
else:
new_backup = item.posterUrl

Loading…
Cancel
Save