[RELEASE] Texture Cache Maintenance utility
mklocal.py https support?

I may be doing something wrong, but do I need to to anything to support HTTPS URLs in mklocal.py?

Code:

##DEBUG## mediatype [movie]; mediatitle [Young Frankenstein]
##DEBUG##   artwork type [fanart] known by Kodi as [https://assets.fanart.tv/fanart/movies/3034/moviebackground/young-frankenstein-550106c446a7d.jpg]
##DEBUG##     [fanart    ] Lookup non-HTTP file using current URL:  https://assets.fanart.tv/fanart/movies/3...446a7d.jpg [FAIL]
##DEBUG##     [fanart    ] No alt source for non-HTTP files, using: https://assets.fanart.tv/fanart/movies/3...446a7d.jpg
##DEBUG##     [fanart    ] Converting local filename to Kodi path:  https://assets.fanart.tv/fanart/movies/3...446a7d.jpg
##DEBUG##     [fanart    ] No library change required, keeping:     https://assets.fanart.tv/fanart/movies/3...446a7d.jpg


Update:  Maybe a quick change to line 521?  The below is working for me.

Code:

FROM:
     if not source.startswith("http://"):
TO:
     if not source.startswith("http://") and not source.startswith("https://"):
     OR
     if not source.startswith("http"):
 

You could also throw in other prefixes like ftp://, although it don't know of a use case for that at present.

Thanks
Reply
 
Thread Rating:
  • 17 Vote(s) - 4.76 Average


Messages In This Thread
Crash on Gotham on OS X - by desepticon - 2014-05-29, 17:57
RE: [RELEASE] Texture Cache Maintenance utility - by wallacebw - 2017-11-10, 15:52
Cleaning - by AleisterHH - 2018-05-28, 22:03
RE: Cleaning - by Milhouse - 2018-05-28, 22:16
qax genre not updated - by Just-Me_A-User - 2018-06-12, 22:06
RE: qax genre not updated - by Milhouse - 2018-06-12, 23:40


Logout Mark Read Team Forum Stats Members Help
[RELEASE] Texture Cache Maintenance utility4.7617