Fixed an error caused by missing thumbnails

This commit is contained in:
Phin 2022-06-27 21:02:52 +05:30
parent 57583955cd
commit f6ca9fc7e7
3 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@
A Python script that displays your [Plex](https://www.plex.tv) status on [Discord](https://discord.com) using [Rich Presence](https://discord.com/developers/docs/rich-presence/how-to).
Current Version: 2.2.4
Current Version: 2.2.5
## Getting Started

View file

@ -204,7 +204,7 @@ class PlexAlertListener(threading.Thread):
self.logger.debug("Unsupported media type \"%s\", ignoring", mediaType)
return
thumbUrl = ""
if config["display"]["posters"]["enabled"]:
if thumb and config["display"]["posters"]["enabled"]:
thumbUrl = getKey(thumb)
if not thumbUrl:
self.logger.debug("Uploading image")

View file

@ -2,7 +2,7 @@ import os
import sys
name = "Discord Rich Presence for Plex"
version = "2.2.4"
version = "2.2.5"
plexClientID = "discord-rich-presence-plex"
discordClientID = "413407336082833418"