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: MythTV#654
  • Loading branch information
SteveErl committed Nov 13, 2022
1 parent 3b8037c commit ec29ebc
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions mythtv/programs/scripts/metadata/Television/tvmaze.py
Original file line number Diff line number Diff line change
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 ec29ebc

Please sign in to comment.