From 5be6bdaae28c0cea0390037aac5b88d05f517593 Mon Sep 17 00:00:00 2001 From: Steve Erlenborn <1751095+SteveErl@users.noreply.github.com> Date: Thu, 3 Nov 2022 20:46:22 -0500 Subject: [PATCH] Cleanup to remove unnecessary python imports The tool pylint reported several unnecessary includes in tvmaze.py. These have been removed to make the script run a little bit faster. Refs: #654 --- mythtv/programs/scripts/metadata/Television/tvmaze.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mythtv/programs/scripts/metadata/Television/tvmaze.py b/mythtv/programs/scripts/metadata/Television/tvmaze.py index 409d2cc2157..4a7e7c5f945 100755 --- a/mythtv/programs/scripts/metadata/Television/tvmaze.py +++ b/mythtv/programs/scripts/metadata/Television/tvmaze.py @@ -68,8 +68,7 @@ def get_show_art_lists(tvmaze_show_id): def buildList(tvtitle, opts): # option -M title from lxml import etree - from MythTV import VideoMetadata, datetime - from MythTV.utility import levenshtein + from MythTV import VideoMetadata from MythTV.tvmaze import tvmaze_api as tvmaze from MythTV.tvmaze import locales @@ -354,10 +353,7 @@ def buildSingle(args, opts, tvmaze_episode_id=None): # option -D inetref season episode from lxml import etree - from MythTV import VideoMetadata, datetime - from MythTV.utility import levenshtein from MythTV.tvmaze import tvmaze_api as tvmaze - from MythTV.tvmaze import locales if opts.debug: dstr = "Function 'buildSingle' called with arguments: " + \ @@ -507,8 +503,7 @@ def buildSingleItem(inetref, season, episode_id): def buildCollection(tvinetref, opts): # option -C inetref from lxml import etree - from MythTV import VideoMetadata, datetime - from MythTV.utility import levenshtein + from MythTV import VideoMetadata from MythTV.tvmaze import tvmaze_api as tvmaze from MythTV.tvmaze import locales