fix 语法问题

This commit is contained in:
jeblove 2024-03-10 18:10:09 +08:00
parent b310367d25
commit b9dec73773
2 changed files with 2 additions and 2 deletions

View File

@ -458,7 +458,7 @@ class Emby:
:param item_id: 在Emby中的ID :param item_id: 在Emby中的ID
:param image_type: 图片类型如BackdropPrimary :param image_type: 图片类型如BackdropPrimary
""" """
if self._playhost is None or self._playhost == "": if not self._playhost:
logger.error("Emby外网播放地址未能获取或为空") logger.error("Emby外网播放地址未能获取或为空")
return None return None

View File

@ -443,7 +443,7 @@ class Jellyfin:
:param item_id: 在Jellyfin中的ID :param item_id: 在Jellyfin中的ID
:param image_type: 图片类型如BackdropPrimary :param image_type: 图片类型如BackdropPrimary
""" """
if self._playhost is None or self._playhost == "": if not self._playhost:
logger.error("Jellyfin外网播放地址未能获取或为空") logger.error("Jellyfin外网播放地址未能获取或为空")
return None return None