@@ -297,7 +297,7 @@ def _showPhoto(self):
297
297
if isCurrent and not self .initialLoad :
298
298
self .setBoolProperty ('is.updating' , True )
299
299
300
- path , background = self .getCachedPhotoData (meta . path , url , bgURL )
300
+ path , background = self .getCachedPhotoData (url , bgURL )
301
301
if not (path and background ):
302
302
return
303
303
@@ -327,14 +327,13 @@ def _showPhoto(self):
327
327
finally :
328
328
self .setBoolProperty ('is.updating' , False )
329
329
330
- def getCachedPhotoData (self , path , url , bgURL ):
330
+ def getCachedPhotoData (self , url , bgURL ):
331
331
if not url :
332
332
return
333
333
334
- ext = os .path .splitext (path )[1 ]
335
334
basename = hashlib .sha1 (url ).hexdigest ()
336
- tmpPath = os .path .join (self .tempFolder , basename + ext )
337
- tmpBgPath = os .path .join (self .tempFolder , "%s_bg%s " % ( basename , ext ) )
335
+ tmpPath = os .path .join (self .tempFolder , basename )
336
+ tmpBgPath = os .path .join (self .tempFolder , "%s_bg" % basename )
338
337
339
338
for p , url in ((tmpPath , url ), (tmpBgPath , bgURL )):
340
339
if not os .path .exists (p ):# and not xbmc.getCacheThumbName(tmpFn):
0 commit comments