Skip to content

Commit

Permalink
[cda] Decode URL (fixes #12255)
Browse files Browse the repository at this point in the history
  • Loading branch information
goggle authored and dstftw committed Feb 26, 2017
1 parent 7fd4655 commit fdeea72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions youtube_dl/extractor/cda.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# coding: utf-8
from __future__ import unicode_literals

import codecs
import re

from .common import InfoExtractor
Expand Down Expand Up @@ -96,6 +97,10 @@ def extract_format(page, version):
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'],
}
Expand Down

0 comments on commit fdeea72

Please sign in to comment.