Skip to content

Commit

Permalink
Cleanup to remove unnecessary python imports
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SteveErl authored and linuxdude42 committed Jan 22, 2023
1 parent d7daab2 commit 5be6bda
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions mythtv/programs/scripts/metadata/Television/tvmaze.py
Expand Up @@ -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

Expand Down Expand Up @@ -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: " + \
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 5be6bda

Please sign in to comment.