diff --git a/.github/git.png b/.github/git.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/.github/git.png differ diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 098fee8d..aeae719d 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -17,11 +17,12 @@ jobs: with: webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }} webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }} - title: Plex Meta Manager Nightly Commits + title: Nightly Commits commits: "true" username: Metabot avatar_url: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager/nightly/.github/pmm.png - author: Github Nightly + author: Github + author_icon_url: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager/nightly/.github/git.png - name: Check Out Repo uses: actions/checkout@v3 diff --git a/VERSION b/VERSION index 691a01f0..9e4d84f0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.16.2-develop25 +1.16.2-develop26 diff --git a/modules/mdblist.py b/modules/mdblist.py index 2e4f0c1c..784faf1f 100644 --- a/modules/mdblist.py +++ b/modules/mdblist.py @@ -1,4 +1,5 @@ from datetime import datetime +from json import JSONDecodeError from modules import util from modules.util import Failed from urllib.parse import urlparse @@ -171,6 +172,9 @@ class Mdblist: url_base = parsed_url._replace(query=None).geturl() url_base = url_base if url_base.endswith("/") else f"{url_base}/" url_base = url_base if url_base.endswith("json/") else f"{url_base}json/" - return [(i["imdb_id"], "imdb") for i in self.config.get_json(url_base, headers=headers, params=params)] + try: + return [(i["imdb_id"], "imdb") for i in self.config.get_json(url_base, headers=headers, params=params)] + except JSONDecodeError: + raise Failed(f"Mdblist Error: Invalid Response") else: raise Failed(f"Mdblist Error: Method {method} not supported")