Skip to content
Snippets Groups Projects

Youtube.lua regex fix for #25988 and #25995

Closed Kung Lao requested to merge (removed):kunglao-master-patch-38675 into master
  1. youtube.lua - js_descramble function doesn't return the descrambler function name due to a regex mismatch.

  2. Issue ref: #25988 (closed), #25995 (closed)

  3. javascript code string to match: Gma=function(a,b,c,d){var e=[];c=g.r(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.KB(h.url,!0);if(h.s){var l=h.sp,m=wja(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.r(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=Lka(h.type,h.quality,h.itag,h.width,h.height);e.push(new cG(h,f))}}return aG(a.B,e,JF(a,b))};

with the applied regex patch the js_descramble function returns "wja" (without quotes) as it should

Edited by Kung Lao

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading