Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
7b4e90a5
Commit
7b4e90a5
authored
Sep 22, 2013
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
youtube.lua: handle inlined function in descrambling javascript
parent
45b748e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
share/lua/playlist/youtube.lua
share/lua/playlist/youtube.lua
+6
-0
No files found.
share/lua/playlist/youtube.lua
View file @
7b4e90a5
...
...
@@ -128,6 +128,12 @@ function js_descramble( sig, js_url )
-- characters:
-- function jj(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c;return a}
local
idx
=
string.match
(
rule
,
"=..%([^,]+,(%d+)%)"
)
-- This swapping function may also appear inlined:
-- var b=a[0];a[0]=a[59%a.length];a[59]=b;
-- In that case we only catch one of the three rules.
if
not
idx
then
idx
=
string.match
(
rule
,
".%[(%d+)%]=."
)
end
if
idx
then
idx
=
tonumber
(
idx
)
if
not
idx
then
idx
=
0
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment