- parse video xml with lxml instead of regexpes
- add a prefix to IDs to know what kind of object it is
This commit is contained in:
Romain Bignon 2013-05-24 18:19:51 +02:00
commit 4ee284b2ab
5 changed files with 38 additions and 24 deletions

View file

@ -23,5 +23,5 @@ __all__ = ['ArteLiveCollection']
class ArteLiveCollection(Collection):
@classmethod
def id2url(cls, _id):
return 'http://liveweb.arte.tv/fr/cat/%s/' % _id
def id2url(cls, _id, lang):
return 'http://liveweb.arte.tv/%s/cat/%s/' % (lang, _id)