Ticket #7514: jamu_do_not_use_mirrors.patch

File jamu_do_not_use_mirrors.patch, 1.8 KB (added by r.d.vaughan@…, 17 years ago)

Remove forcing the TVDB URL to the mirrors web site

  • mythplugins/mythvideo/mythvideo/scripts/jamu.py

     
    4747fan art and banners and meta data. The richer the source the more valuable the script.
    4848'''
    4949
    50 __version__=u"v0.5.6"
     50__version__=u"v0.5.7"
    5151 # 0.1.0 Initial development
    5252 # 0.2.0 Inital beta release
    5353 # 0.3.0 Add mythvideo metadata updating including movie graphics through
     
    221221 #               adding a hostname when the video had an absolute path. This caused issues with playback.
    222222 #               Added more informative error messages when TMDB is returning bad xml responses.
    223223 #               Fixed an error in the graphic file naming convention when graphics share the same download directory.
     224 # 0.5.7 Remove the override of the TVDB graphics URL to the mirror site. See Kobe's comment:
     225 #       http://forums.thetvdb.com/viewtopic.php?f=4&t=2161#p9089
    224226
    225227
    226228usage_txt=u'''
     
    21572159                        if url_dict.has_key(x[:i]):
    21582160                                temp_array = [x[i+1:],'']
    21592161                                url_dict[x[:i]].append(temp_array)# Collect a list of the same graphics type of URLs
    2160                         else: # The first URL of a new graphics type
    2161                                 url_dict[x[:i]]=[[(x[i+1:]).replace(u"http://www.thetvdb.com",u"http://images.thetvdb.com"),'']]
     2162                        else: # The first URL of a new graphics type. Also URL replacement code left in place just in case
     2163                                url_dict[x[:i]]=[[(x[i+1:]).replace(u"http://www.thetvdb.com",u"http://www.thetvdb.com"),'']]
    21622164
    21632165                unique_dir={u'poster': ['posterdir', True], u'banner': ['bannerdir', True], u'fanart': ['fanartdir', True], u'filename': ['episodeimagedir', True]}
    21642166                # If a graphics directory was not specified then default to the 'allgraphics' directory