[francetelevisions] add option to get video from an url

this will allow to do things like that : videoob -d -b francetelevisions download http://pluzz.francetv.fr/videos/faites_entrer_l_accuse.html
This commit is contained in:
Bezleputh 2015-01-06 17:04:11 +01:00 committed by Florent
commit 6c550ea5a7
3 changed files with 13 additions and 0 deletions

View file

@ -31,3 +31,7 @@ class PluzzTest(BackendTest):
v = l[0]
self.backend.fillobj(v, ('url',))
self.assertTrue(v.url, 'URL for video "%s" not found: %s' % (v.id, v.url))
def test_video_from_url(self):
v = self.backend.get_video('http://pluzz.francetv.fr/videos/faites_entrer_l_accuse.html')
self.assertTrue(v.url, 'URL for video "%s" not found: %s' % (v.id, v.url))