fix BestFilmVersion emby重复订阅问题

This commit is contained in:
mayun110
2023-08-12 12:32:50 +08:00
parent f16c4a9c8c
commit 230a562c54

View File

@ -628,7 +628,11 @@ class BestFilmVersion(_PluginBase):
logger.warn(f'未识别到媒体信息,标题:{data.item_name}tmdbID{tmdb_id}')
return
else:
if settings.MEDIASERVER == 'jellyfin' and (data.save_reason != 'UpdateUserRating' or not data.item_favorite):
if data.channel == 'jellyfin' and (data.save_reason != 'UpdateUserRating' or not data.item_favorite):
return
if data.channel == 'emby' and data.event != 'item.rate':
return
if data.channel == 'plex' and data.event != 'item.rate':
return
if data.item_type not in ['Movie', 'MOV', 'movie']:
return