projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[generic] Add support for BOMs (Fixes #4753)
[youtube-dl]
/
youtube_dl
/
extractor
/
francetv.py
diff --git
a/youtube_dl/extractor/francetv.py
b/youtube_dl/extractor/francetv.py
index 9bc959a9b5645822905b460d7561bd60b0b12e32..bbc760a4990cac1b6cdb731c161d61c853a72729 100644
(file)
--- a/
youtube_dl/extractor/francetv.py
+++ b/
youtube_dl/extractor/francetv.py
@@
-6,13
+6,15
@@
import re
import json
from .common import InfoExtractor
import json
from .common import InfoExtractor
-from ..utils import (
+from ..compat import (
+ compat_urllib_parse_urlparse,
compat_urlparse,
compat_urlparse,
- ExtractorError,
+)
+from ..utils import (
clean_html,
clean_html,
- parse_duration,
- compat_urllib_parse_urlparse,
+ ExtractorError,
int_or_none,
int_or_none,
+ parse_duration,
)
)
@@
-40,8
+42,6
@@
class FranceTVBaseInfoExtractor(InfoExtractor):
else:
georestricted = False
else:
georestricted = False
-
-
formats = []
for video in info['videos']:
if video['statut'] != 'ONLINE':
formats = []
for video in info['videos']:
if video['statut'] != 'ONLINE':