Feature/france.tv sport (#1700)

* Fix sport.francetvinfo.fr stream URL extraction

* Modify conditionnal statement to keep token related logic together
(as suggested by @beardypig)
This commit is contained in:
yhel 2018-05-28 21:36:52 +02:00 committed by Forrest
parent 1d1f262d7d
commit 4ba7f84f7d
1 changed files with 3 additions and 1 deletions

View File

@ -166,7 +166,9 @@ class Pluzz(Plugin):
if '.mpd' in video_url:
continue
if '.f4m' in video_url or 'france.tv' in self.url:
if ('.f4m' in video_url or
'france.tv' in self.url or
'sport.francetvinfo.fr' in self.url):
res = http.get(self.TOKEN_URL.format(video_url))
video_url = res.text