2015-08-13, 21:37
It's partially correct. It looks to be encoding the parenthesis correctly (and ampersands from another movie I looked at ) but it is not doing the commas where as when xbmc originally encoded them it encoded the commas as well.
Code:
ORIGINAL EXAMPLE OF URL based off of file name:
mysql> select c22 from movieview where idFile = 123;
+---------------------------------------------------------------------------------------------------------------------------------------------+
| c22 |
+---------------------------------------------------------------------------------------------------------------------------------------------+
| davs://xxxx/base/Media/Videos/Movies/Lock%2c.Stock.and.Two.Smoking.Barrels.%281998%29.720p.bluray.h264/ |
+---------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
after with test py:
->$ cat try.dat | ./tbeta.py testset
### DRY RUN ###
{
"params": {
"art": {
"fanart": "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-fanart.jpg",
"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-poster.jpg"
},
"movieid": 123
},
"method": "VideoLibrary.SetMovieDetails"
}
### DRY RUN ###
->$ ./texturecache.py j movies | grep Lock
"file": "davs://xxxx/base/Media/Videos/Movies/Lock%2c.Stock.and.Two.Smoking.Barrels.%281998%29.720p.bluray.h264/Lock%2c.Stock.and.Two.Smoking.Barrels.%281998%29.720p.bluray.h264.mp4",
"label": "Lock, Stock and Two Smoking Barrels",
"title": "Lock, Stock and Two Smoking Barrels"