diff --git a/scripts/plexEmail.py b/scripts/plexEmail.py index fbb0d50..72ce2ee 100644 --- a/scripts/plexEmail.py +++ b/scripts/plexEmail.py @@ -1313,12 +1313,13 @@ def exceptionHandler(type, value, tb): pwLink = '' emailText += '
' emailText += ' | ' + showTitle.decode('utf-8') + '' emailText += 'S' + str(tvEpisodes[episode]['season_index']) + ' E' + str(tvEpisodes[episode]['index']) + ': ' + title.decode('utf-8') + ' ' htmlText += ''
- htmlText += ''
+ if (len(imageInfo) != 0):
+ htmlText += ''
htmlText += ' ' + showTitle.decode('utf-8') + '' htmlText += 'S' + str(tvEpisodes[episode]['season_index']) + ' E' + str(tvEpisodes[episode]['index']) + ': ' + title.decode('utf-8') + ' ' @@ -1669,4 +1670,4 @@ def exceptionHandler(type, value, tb): elif (not config['email_enabled']): print 'Emails were not sent because the option is disabled in the config file.' else: - print 'Emails were not sent because there were no new additions in the timeframe specified.' \ No newline at end of file + print 'Emails were not sent because there were no new additions in the timeframe specified.' |