Skip to content

Commit

Permalink
- Fix encoding signed content like Vevo and other
Browse files Browse the repository at this point in the history
  • Loading branch information
KOL committed Dec 24, 2015
1 parent 13f9171 commit 04d118f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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>4.0</string>
<string>4.1</string>

<key>PlexPluginVersionUrl</key>
<string>http://bit.ly/1FuE3dz</string>
Expand Down
4 changes: 2 additions & 2 deletions Contents/Services/Shared Code/jsinterp.pys
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class JSInterpreter(object):
obj = {}
obj_m = re.search(
(r'(?:var\s+)?%s\s*=\s*\{' % re.escape(objname)) +
r'\s*(?P<fields>([a-zA-Z$0-9]+\s*:\s*function\(.*?\)\s*\{.*?\})*)' +
r'\s*(?P<fields>([a-zA-Z$0-9]+\s*:\s*function\(.*?\)\s*\{.*?\}\s*,*\s*)*)' +
r'\}\s*;',
self.code)
fields = obj_m.group('fields')
Expand All @@ -257,7 +257,7 @@ class JSInterpreter(object):
def extract_function(self, funcname):
func_m = re.search(
r'''(?x)
(?:function\s+%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

0 comments on commit 04d118f

Please sign in to comment.