Ticket #7514: jamu_do_not_use_mirrors.patch
File jamu_do_not_use_mirrors.patch, 1.8 KB (added by , 14 years ago) |
---|
-
mythplugins/mythvideo/mythvideo/scripts/jamu.py
47 47 fan art and banners and meta data. The richer the source the more valuable the script. 48 48 ''' 49 49 50 __version__=u"v0.5. 6"50 __version__=u"v0.5.7" 51 51 # 0.1.0 Initial development 52 52 # 0.2.0 Inital beta release 53 53 # 0.3.0 Add mythvideo metadata updating including movie graphics through … … 221 221 # adding a hostname when the video had an absolute path. This caused issues with playback. 222 222 # Added more informative error messages when TMDB is returning bad xml responses. 223 223 # 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 224 226 225 227 226 228 usage_txt=u''' … … 2157 2159 if url_dict.has_key(x[:i]): 2158 2160 temp_array = [x[i+1:],''] 2159 2161 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"),'']] 2162 2164 2163 2165 unique_dir={u'poster': ['posterdir', True], u'banner': ['bannerdir', True], u'fanart': ['fanartdir', True], u'filename': ['episodeimagedir', True]} 2164 2166 # If a graphics directory was not specified then default to the 'allgraphics' directory