A feature-rich command-line audio/video downloader
[cda] Decode URL (fixes #12255)
Alex Seilerfdeea72611b2
diff --git a/youtube_dl/extractor/cda.py b/youtube_dl/extractor/cda.pyindex ae7af2f0e3..1ee35b5019 100755--- a/youtube_dl/extractor/cda.py+++ b/youtube_dl/extractor/cda.py@@ -1,6 +1,7 @@# coding: utf-8from __future__ import unicode_literals+import codecsimport refrom .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'],}