new video attribute 'ext'

This commit is contained in:
Romain Bignon 2011-03-25 09:55:30 +01:00
commit 17754719ef
5 changed files with 66 additions and 49 deletions

View file

@ -23,6 +23,10 @@ __all__ = ['DailymotionVideo']
class DailymotionVideo(BaseVideo):
def __init__(self, *args, **kwargs):
BaseVideo.__init__(self, *args, **kwargs)
self.ext = 'flv'
@classmethod
def id2url(cls, _id):
if _id.isdigit():