[mythtv-commits] Ticket #8025: JAMU always attempts to download banner art for 'movie' files when run with the -MW switch
MythTV
mythtv at cvs.mythtv.org
Thu Feb 4 02:41:01 UTC 2010
#8025: JAMU always attempts to download banner art for 'movie' files when run with
the -MW switch
----------------------------------------+-----------------------------------
Reporter: david.madsen@… | Owner: mdean
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: Contributed Scripts & Apps | Version: unknown
Severity: medium | Mlocked: 0
----------------------------------------+-----------------------------------
After updating my metadata and fanart with the -MW swich I noticed that
there were a few recorded movies in the list that always seemed to attempt
to download banner art even though there is none available.
No matter how many times the script ran, those movies always queried the
server looking for banner art. I poked around and tracked the issue back
to here:
{{{
# Search for graphics that are already downloaded
for directory in graphicsDirectories.keys():
if directory == 'screenshot': # There is no downloading
of screenshots required
program[directory] = True
continue
if directory == 'banner' and program['subtitle'] == '': #
No banners for movies
program[directory] = True
continue
elif mirodetails:
if not mirodetails[u'tv'] and directory == 'banner': #
No banners for movies
program[directory] = True
continue
}}}
The subtitle check for the banner directory never matched and forced the
script to always attempt to update banner art. Changing the comparison to
the following fixed the repetitive update issue for me. Movies that had
fanart, and coverart no longer attempted to download images.
{{{
if directory == 'banner' and program['subtitle'] == None:
# No banners for movies
}}}
I have attached a simple patch for this change.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/8025>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list