Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
libquvi-scripts
libquvi-scripts-fix-youtube-lua.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libquvi-scripts-fix-youtube-lua.patch of Package libquvi-scripts
From 5b1c00284e1bae3069b51d07d84d3a096ca6bfcf Mon Sep 17 00:00:00 2001 From: Martin Herkt <lachs0r@hong-mailing.de> Date: Thu, 27 Sep 2012 13:45:27 +0200 Subject: [PATCH] Fix youtube.lua YouTube has added a new "signature" parameter to their playback URLs. Append this parameter to the URL if url_encoded_fmt_stream_map contains "sig". --- share/lua/website/youtube.lua | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff -Naur a/share/lua/website/youtube.lua b/share/lua/website/youtube.lua --- a/share/lua/website/youtube.lua 2011-11-29 08:37:43.000000000 -0600 +++ b/share/lua/website/youtube.lua 2012-10-02 10:33:22.051245295 -0500 @@ -126,7 +126,11 @@ for f in fmt_stream_map:gfind('([^,]*),') do local d = U.decode(f) if d['itag'] and d['url'] then - urls[U.unescape(d['itag'])] = U.unescape(d['url']) + local uurl = U.unescape(d['url']) + if d['sig'] then + uurl = uurl .. "&signature=" .. U.unescape(d['sig']) + end + urls[U.unescape(d['itag'])] = uurl end end
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor