From 45d71621feee2b982df269e45d8f08412c0fff41 Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Tue, 22 Mar 2016 18:46:30 +0300 Subject: [PATCH] callback fix --- .idea/workspace.xml | 543 +++++++++++++++++++++++--------------------- Core.py | 6 +- 2 files changed, 290 insertions(+), 259 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9119024..67476a6 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,16 +1,9 @@ - - - + - - - - - @@ -40,13 +33,12 @@ - + - - + + - @@ -55,7 +47,6 @@ - @@ -92,40 +83,46 @@ - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -135,7 +132,7 @@ - + @@ -145,27 +142,27 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + @@ -219,7 +216,7 @@ - + @@ -249,18 +246,20 @@ - + - - + + - + + + @@ -270,7 +269,6 @@ - @@ -278,26 +276,49 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -342,11 +363,11 @@ - + - - + + @@ -401,7 +422,6 @@ @@ -471,6 +492,8 @@ + + @@ -585,8 +608,6 @@ - - @@ -768,18 +789,6 @@ @@ -1076,14 +1097,13 @@ - + - - + @@ -1096,6 +1116,7 @@ + @@ -1112,7 +1133,6 @@ - @@ -1122,7 +1142,6 @@ - @@ -1137,29 +1156,17 @@ - - - - - - - - - - - - - - - - @@ -1265,13 +1272,6 @@ - - - - - - - @@ -1478,10 +1478,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -1510,20 +1543,108 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - @@ -1532,7 +1653,6 @@ - @@ -1568,100 +1688,19 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + + + @@ -1671,7 +1710,6 @@ - @@ -1679,31 +1717,24 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/Core.py b/Core.py index cfdfa22..3e74ee0 100644 --- a/Core.py +++ b/Core.py @@ -1869,7 +1869,6 @@ class Core: def callback(self, params={}): get = params.get - external = unquote(get("external"), None) subaction = unquote(get("subaction"), None) url = unquote(get("url"),'') sdata = unquote(get("sdata"),'{}') @@ -1907,5 +1906,6 @@ class Core: xbmc.executebuiltin('xbmc.RunPlugin("plugin://plugin.video.torrenter/?action=playTorrent&url=' + fileIndex + '")') return - sdata['filename'] = url - xbmc.executebuiltin('xbmc.RunPlugin("' + back_url + '&stringdata=' + json.dumps(sdata) + '")') + sdata['filename'] = ensure_str(url) + #log('[call]: '+sdata['filename']+json.loads(json.dumps(sdata))['filename']) + xbmc.executebuiltin('xbmc.RunPlugin(%s&stringdata=%s)' % (back_url, urllib.quote_plus(json.dumps(sdata))))