projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[4tube] Minor changes and extract more metadata
[youtube-dl]
/
youtube_dl
/
extractor
/
radiofrance.py
diff --git
a/youtube_dl/extractor/radiofrance.py
b/youtube_dl/extractor/radiofrance.py
index 2866115efba2500b9bf8f862ca199da6acf6ceb7..34652f6c11ca9668bce89cd4c908d0c363221218 100644
(file)
--- a/
youtube_dl/extractor/radiofrance.py
+++ b/
youtube_dl/extractor/radiofrance.py
@@
-1,12
+1,7
@@
# coding: utf-8
# coding: utf-8
-import datetime
-import json
import re
from .common import InfoExtractor
import re
from .common import InfoExtractor
-from ..utils import (
- remove_start,
-)
class RadioFranceIE(InfoExtractor):
class RadioFranceIE(InfoExtractor):
@@
-42,11
+37,11
@@
class RadioFranceIE(InfoExtractor):
webpage, u'audio URLs')
formats = [
{
webpage, u'audio URLs')
formats = [
{
- 'format_id': m[0],
- 'url': m[1],
+ 'format_id':
f
m[0],
+ 'url':
f
m[1],
'vcodec': 'none',
}
'vcodec': 'none',
}
- for m in
+ for
f
m in
re.findall(r"([a-z0-9]+)\s*:\s*'([^']+)'", formats_str)
]
# No sorting, we don't know any more about these formats
re.findall(r"([a-z0-9]+)\s*:\s*'([^']+)'", formats_str)
]
# No sorting, we don't know any more about these formats