From 683f50d632cbb41bdd2267514325c2698e87ec54 Mon Sep 17 00:00:00 2001 From: KOL Date: Sat, 21 Nov 2015 20:50:54 +0300 Subject: [PATCH] - Fix decoding signature in some cases --- Contents/Info.plist | 2 +- Contents/Services/Shared Code/jsinterp.pys | 2 +- Contents/Services/Shared Code/video.pys | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Contents/Info.plist b/Contents/Info.plist index 0d1b081..bbff855 100644 --- a/Contents/Info.plist +++ b/Contents/Info.plist @@ -14,7 +14,7 @@ CFBundleSignature hook CFBundleVersion - 3.8 + 3.9 PlexPluginVersionUrl http://bit.ly/1FuE3dz diff --git a/Contents/Services/Shared Code/jsinterp.pys b/Contents/Services/Shared Code/jsinterp.pys index ef3cca6..2fa8aba 100644 --- a/Contents/Services/Shared Code/jsinterp.pys +++ b/Contents/Services/Shared Code/jsinterp.pys @@ -257,7 +257,7 @@ class JSInterpreter(object): def extract_function(self, funcname): func_m = re.search( r'''(?x) - (?:function\s+%s|[{;]%s\s*=\s*function)\s* + (?:function\s+%s|[{;\s]%s\s*=\s*function)\s* \((?P[^)]*)\)\s* \{(?P[^}]+)\}''' % ( re.escape(funcname), re.escape(funcname)), diff --git a/Contents/Services/Shared Code/video.pys b/Contents/Services/Shared Code/video.pys index 0c41ef4..4db585f 100644 --- a/Contents/Services/Shared Code/video.pys +++ b/Contents/Services/Shared Code/video.pys @@ -204,8 +204,8 @@ def DecryptSignature(s, player_url): DecryptSignature.cache[player_id] = parse_sig_js(code) return DecryptSignature.cache[player_id](s) - except Exception: - Log.Error('Cannot decrypt signature') + except Exception as e: + Log.Error('Cannot decrypt signature: %s' % e) return ''