Skip to content

Commit

Permalink
- Fix signed content playing
Browse files Browse the repository at this point in the history
  • Loading branch information
kolsys committed Mar 17, 2018
1 parent e7a099f commit cd7426d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<key>CFBundleSignature</key>
<string>hook</string>
<key>CFBundleVersion</key>
<string>4.7</string>
<string>4.8</string>

<key>PlexPluginVersionUrl</key>
<string>http://bit.ly/1FuE3dz</string>
<string>https://go.kolsys.cf/1FuE3dz</string>
<key>PlexPluginCodePolicy</key>
<string>Elevated</string>

Expand Down
8 changes: 7 additions & 1 deletion Contents/Services/Shared Code/video.pys
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,13 @@ def DecryptSignature(s, player_url):
return '.'.join(str(len(part)) for part in example_sig.split('.'))

def parse_sig_js(jscode):
funcname = Regex('(?:\.sig\|\||\.set\("signature",)([a-zA-Z0-9$]+)\(').search(jscode).group(1)
funcname = Regex((
'(?:' +
'\.sig\|\||' +
'\.set\("signature",|' +
'\|\|\(\w\w?="signature"\),\w\w?.set\(\w\w?,' +
')([a-zA-Z0-9$]+)\('
)).search(jscode).group(1)
jsi = JSInterpreter(jscode)
initial_function = jsi.extract_function(funcname)
return lambda s: initial_function([s])
Expand Down

0 comments on commit cd7426d

Please sign in to comment.