add attribute 'ext'

This commit is contained in:
Romain Bignon 2013-07-27 13:32:11 +02:00
commit 6c0e9e34a2
4 changed files with 19 additions and 1 deletions

View file

@ -63,6 +63,7 @@ class SubtitlesPage(BasePage):
url = unicode('http://davidbillemont3.free.fr/%s' % href)
subtitle = Subtitle(id, name)
subtitle.url = url
subtitle.ext = url.split('.')[-1]
subtitle.language = unicode('fr')
subtitle.nb_cd = nb_cd
subtitle.description = NotAvailable
@ -106,6 +107,7 @@ class SubtitlesPage(BasePage):
id = unicode('%s|%s' % (self.browser.geturl().split('/')[-1], href))
subtitle = Subtitle(id, name)
subtitle.url = url
subtitle.ext = url.split('.')[-1]
subtitle.language = unicode('fr')
subtitle.nb_cd = nb_cd
subtitle.description = NotAvailable