Skip to content

Commit

Permalink
- Fix decoding signature in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
KOL committed Nov 21, 2015
1 parent e4fd902 commit 683f50d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<key>CFBundleSignature</key>
<string>hook</string>
<key>CFBundleVersion</key>
<string>3.8</string>
<string>3.9</string>

<key>PlexPluginVersionUrl</key>
<string>http://bit.ly/1FuE3dz</string>
Expand Down
2 changes: 1 addition & 1 deletion Contents/Services/Shared Code/jsinterp.pys
Original file line number Diff line number Diff line change
Expand Up @@ -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<args>[^)]*)\)\s*
\{(?P<code>[^}]+)\}''' % (
re.escape(funcname), re.escape(funcname)),
Expand Down
4 changes: 2 additions & 2 deletions Contents/Services/Shared Code/video.pys
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''


Expand Down

0 comments on commit 683f50d

Please sign in to comment.