Permalink
Browse files

fix stupid problem with python excaping slashes which fails on doing …

…the setFooDetails
  • Loading branch information...
1 parent 1965274 commit c60ab54626adb9603e14780752811aabf9ba15f1 @MartijnKaijser MartijnKaijser committed Nov 8, 2012
Showing with 6 additions and 2 deletions.
  1. +1 −1 addon.xml
  2. +4 −0 changelog.txt
  3. +1 −1 default.py
View
@@ -2,7 +2,7 @@
<addon
id="script.artwork.downloader"
name="Artwork Downloader"
- version="12.0.3"
+ version="12.0.4"
provider-name="paddycarey, putneyj, Martijn"
>
<requires>
View
@@ -1,3 +1,7 @@
+[B]12.0.4[/B]
+- Directly add the image URL to the databse
+- Option to override with local file
+
[B]12.0.1[/B]
- Fix bulk downloading for a single movie/tvshow
View
@@ -596,7 +596,7 @@ def _batch_download(self, image_list):
if self.settings.files_local and not item['arttype'] in ['extrafanart', 'extrathumbs']:
if not self.fileops._exists(item['localfilename']):
self.fileops._downloadfile(item['url'], item['filename'], item['targetdirs'], item['media_name'], self.mode)
- item['url'] = item['localfilename']
+ item['url'] = item['localfilename'].replace('\\','\\\\')
if item['mediatype'] == 'movie':
if item['arttype'] == 'poster':
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.SetMovieDetails", "params": { "movieid": %i, "art": { "poster": "%s" }}, "id": 1 }' %(item['dbid'], item['url']))

0 comments on commit c60ab54

Please sign in to comment.