projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[go90] Improve extraction
[youtube-dl]
/
youtube_dl
/
extractor
/
cda.py
diff --git
a/youtube_dl/extractor/cda.py
b/youtube_dl/extractor/cda.py
index ae7af2f0e3c432dd5c9f75401d787f0b2b27d083..1ee35b50197d148f1d8564a9c553bd8a8031cd24 100755
(executable)
--- a/
youtube_dl/extractor/cda.py
+++ b/
youtube_dl/extractor/cda.py
@@
-1,6
+1,7
@@
# coding: utf-8
from __future__ import unicode_literals
# coding: utf-8
from __future__ import unicode_literals
+import codecs
import re
from .common import InfoExtractor
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 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'],
}
f = {
'url': video['file'],
}