youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit ad9fd84004d44c30d8b160f24ed1e58a4f95428f
parent a81dc8215127b4e9247bc390ade7bcf07b5079c3
Author: Yen Chi Hsuan <yan12125@gmail.com>
Date:   Thu, 20 Oct 2016 04:18:27 +0800

Merge pull request #10971 from kasper93/openload

[openload] Fix extraction.
Diffstat:
Myoutube_dl/extractor/openload.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/openload.py b/youtube_dl/extractor/openload.py @@ -70,10 +70,15 @@ class OpenloadIE(InfoExtractor): r'<span[^>]*>([^<]+)</span>\s*<span[^>]*>[^<]+</span>\s*<span[^>]+id="streamurl"', webpage, 'encrypted data') + magic = compat_ord(enc_data[-1]) video_url_chars = [] for idx, c in enumerate(enc_data): j = compat_ord(c) + if j == magic: + j -= 1 + elif j == magic - 1: + j += 1 if j >= 33 and j <= 126: j = ((j + 14) % 94) + 33 if idx == len(enc_data) - 1: