From b191b45cb8794da53e4fc03ce1895038bdaa5292 Mon Sep 17 00:00:00 2001 From: Tom Niget Date: Wed, 8 Nov 2023 16:37:54 +0100 Subject: [PATCH] style: happy flake8 --- Contents/Code/plex_api_helper.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/Contents/Code/plex_api_helper.py b/Contents/Code/plex_api_helper.py index 567322f7..77e32069 100644 --- a/Contents/Code/plex_api_helper.py +++ b/Contents/Code/plex_api_helper.py @@ -205,8 +205,8 @@ def update_plex_item(rating_key): Log.Exception('{}: Error processing youtube url: {}'.format(item.ratingKey, e)) else: if theme_url: - add_media(item=item, media_type='themes', media_url_id=yt_video_url, media_url=theme_url) - + add_media(item=item, media_type='themes', + media_url_id=yt_video_url, media_url=theme_url) def add_media(item, media_type, media_url_id, media_file=None, media_url=None): @@ -242,7 +242,6 @@ def add_media(item, media_type, media_url_id, media_file=None, media_url=None): """ uploaded = False - themerr_data = general_helper.get_themerr_json_data(item=item) if media_file or media_url: @@ -254,18 +253,6 @@ def add_media(item, media_type, media_url_id, media_file=None, media_url=None): media_type_dict[media_type]['name'], item.type, item.title, item.ratingKey )) - try: - if themerr_data['settings_hash'] == settings_hash \ - and themerr_data[media_type_dict[media_type]['themerr_data_key']] == media_url_id: - Log.Info('Skipping {} for type: {}, title: {}, rating_key: {}'.format( - media_type_dict[media_type]['name'], item.type, item.title, item.ratingKey - )) - - # false because we aren't doing anything, and the listener will not see this item again - return False - except KeyError: - pass - # remove existing theme uploads if Prefs[media_type_dict[media_type]['remove_pref']]: general_helper.remove_uploaded_media(item=item, media_type=media_type)