Skip to content

Commit

Permalink
Fix Emby notifier error on Python 3 (#7497)
Browse files Browse the repository at this point in the history
* Fix Emby notifier error on Python 3

* Update changelog
  • Loading branch information
sharkykh authored and medariox committed Dec 15, 2019
1 parent 367e129 commit ddc5876
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Add `uniqueid` to Kodi 12+ show metadata ([#7483](https://github.com/pymedusa/Medusa/pull/7483))

#### Fixes
- Fix Emby notifier error on Python 3 ([#7497](https://github.com/pymedusa/Medusa/pull/7497))

-----

Expand Down
8 changes: 4 additions & 4 deletions medusa/notifiers/emby.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def _notify_emby(self, message, host=None, emby_apikey=None):
)
resp.raise_for_status()

if resp.content:
log.debug('EMBY: HTTP response: {0}', resp.content.replace('\n', ''))
if resp.text:
log.debug('EMBY: HTTP response: {0}', resp.text.replace('\n', ''))

log.info('EMBY: Successfully sent a test notification.')
return True
Expand Down Expand Up @@ -127,8 +127,8 @@ def update_library(self, show=None):
)
resp.raise_for_status()

if resp.content:
log.debug('EMBY: HTTP response: {0}', resp.content.replace('\n', ''))
if resp.text:
log.debug('EMBY: HTTP response: {0}', resp.text.replace('\n', ''))

log.info('EMBY: Successfully sent a "Series Library Updated" command.')
return True
Expand Down

0 comments on commit ddc5876

Please sign in to comment.