2015-08-13, 21:14
OK, try this test version of texturecache.py: http://sprunge.us/gELh
It will partially re-quote dav/davs urls before setting them into the media library.
(note the following is a dry-run, also I'm using your test data for the poster which is clearly not a valid poster!)
When the above is applied to the media library, Kodi will quote/encode the % from %28 and %29 as %25, so you'll end up with "j movies" returning:
and the decoded version of the above is:
which I think is what you were getting at the beginning.
It will partially re-quote dav/davs urls before setting them into the media library.
(note the following is a dry-run, also I'm using your test data for the poster which is clearly not a valid poster!)
Code:
$ ./texturecache.py testset movie 2395 art.poster "davs://xxxx/base/Media/Videos/Movies/Lock,.Stock.and.Two.Smoking.Barrels.(1998).720p.bluray.h264/Lock,.Stock.and.Two.Smoking.Barrels.(1998).720p.bluray.h264.mp4"
### DRY RUN ###
{
"params": {
"art": {
"poster": "davs://xxxx/base/Media/Videos/Movies/Lock,.Stock.and.Two.Smoking.Barrels.%281998%29.720p.bluray.h264/Lock,.Stock.and.Two.Smoking.Barrels.%281998%29.720p.bluray.h264.mp4"
},
"movieid": 2395
},
"method": "VideoLibrary.SetMovieDetails"
}
### DRY RUN ###
When the above is applied to the media library, Kodi will quote/encode the % from %28 and %29 as %25, so you'll end up with "j movies" returning:
Code:
"poster": "image://davs%3a%2f%2fxxxx%2fbase%2fMedia%2fVideos%2fMovies%2fLock%2c.Stock.and.Two.Smoking.Barrels.%25281998%2529.720p.bluray.h264%2fLock%2c.Stock.and.Two.Smoking.Barrels.%25281998%2529.720p.bluray.h264.mp4/"
Code:
"poster": "image://davs://xxxx/base/Media/Videos/Movies/Lock,.Stock.and.Two.Smoking.Barrels.%281998%29.720p.bluray.h264/Lock,.Stock.and.Two.Smoking.Barrels.%281998%29.720p.bluray.h264.mp4/"