X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fdefense.py;h=98e3aedfd08ada1300cbf3114a41022949062402;hb=136dadde9543a80f490b26c822dcfdff5541c335;hp=1637fa4a78bf61e30633755c70030ada42260528;hpb=2886be15aa00e064c494eb0b6977246cdb905b1f;p=youtube-dl diff --git a/youtube_dl/extractor/defense.py b/youtube_dl/extractor/defense.py index 1637fa4a7..98e3aedfd 100644 --- a/youtube_dl/extractor/defense.py +++ b/youtube_dl/extractor/defense.py @@ -1,8 +1,5 @@ from __future__ import unicode_literals -import re -import json - from .common import InfoExtractor @@ -28,8 +25,9 @@ class DefenseGouvFrIE(InfoExtractor): r"flashvars.pvg_id=\"(\d+)\";", webpage, 'ID') - json_url = ('http://static.videos.gouv.fr/brightcovehub/export/json/' - + video_id) + json_url = ( + 'http://static.videos.gouv.fr/brightcovehub/export/json/%s' % + video_id) info = self._download_json(json_url, title, 'Downloading JSON config') video_url = info['renditions'][0]['url']