diff options
author | Alex Seiler <seileralex@gmail.com> | 2017-02-26 15:05:52 +0100 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2017-02-26 22:05:52 +0800 |
commit | fdeea72611b2c2c29a9a34e91ae4bd9b8dfc1f64 (patch) | |
tree | c5a59911af564202c1e29d7f35086a36971f0571 /youtube_dl/extractor | |
parent | 7fd465525695bb589fa8932e1e36f38ad511735b (diff) |
[cda] Decode URL (fixes #12255)
Diffstat (limited to 'youtube_dl/extractor')
-rwxr-xr-x | youtube_dl/extractor/cda.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/cda.py b/youtube_dl/extractor/cda.py index ae7af2f0e..1ee35b501 100755 --- a/youtube_dl/extractor/cda.py +++ b/youtube_dl/extractor/cda.py @@ -1,6 +1,7 @@ # coding: utf-8 from __future__ import unicode_literals +import codecs import re from .common import InfoExtractor @@ -96,6 +97,10 @@ class CDAIE(InfoExtractor): if not video or 'file' not in video: self.report_warning('Unable to extract %s version information' % version) return + if video['file'].startswith('uggc'): + video['file'] = codecs.decode(video['file'], 'rot_13') + if video['file'].endswith('adc.mp4'): + video['file'] = video['file'].replace('adc.mp4', '.mp4') f = { 'url': video['file'], } |