From 16b3480112bb8ce9382ac0f18a54a3f96cbe1e20 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 8 Mar 2022 16:06:13 -0500 Subject: [PATCH] [11] original_language messages --- .github/workflows/nightly.yml | 18 ++++++++++++++++-- VERSION | 2 +- modules/tmdb.py | 4 ++++ 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index b7545a42..ba901491 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -43,9 +43,23 @@ jobs: push: true tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:nightly - - name: Discord Notification + - name: Discord Success Notification uses: sarisia/actions-status-discord@v1 + if: success() with: webhook: ${{ secrets.DISCORD_WEBHOOK }} nodetail: true - title: Nightly Docker Build Finished + title: "Nightly Docker Build: **Success**" + username: Docker + avatar_url: https://www.docker.com/sites/default/files/d8/2019-07/Moby-logo.png + + - name: Discord Failure Notification + uses: sarisia/actions-status-discord@v1 + if: failure() + with: + webhook: ${{ secrets.DISCORD_WEBHOOK }} + nodetail: true + title: "Nightly Docker Build: **Failed**" + color: 0xe30c43 + username: Docker + avatar_url: https://www.docker.com/sites/default/files/d8/2019-07/Moby-logo.png diff --git a/VERSION b/VERSION index 4316ea97..61a72f05 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.16.0-develop10 +1.16.0-develop11 diff --git a/modules/tmdb.py b/modules/tmdb.py index 7bcde631..d47ac9ff 100644 --- a/modules/tmdb.py +++ b/modules/tmdb.py @@ -258,6 +258,10 @@ class TMDb: tmdb_item = self.get_movie(tmdb_id) if is_movie else self.get_show(tmdb_id) except Failed as e: logger.error(str(e)) + elif tvdb_id and not is_movie: + logger.info(f"{item.title[:25]:<25} | No TMDb ID for TVDb ID: {tvdb_id}") + elif imdb_id: + logger.info(f"{item.title[:25]:<25} | No TMDb ID for IMDb ID: {imdb_id}") else: logger.info(f"{item.title[:25]:<25} | No TMDb ID for Guid: {item.guid}") return tmdb_item