id decoration belongs to formatter

This commit is contained in:
Christophe Benz 2010-06-17 15:47:05 +02:00
commit a0f8137fc5
5 changed files with 28 additions and 23 deletions

View file

@ -47,11 +47,7 @@ class BaseVideo(object):
@property
def page_url(self):
return self.id2url(self.provider_id)
@property
def provider_id(self):
return self.id.split('@')[0]
return self.id2url(self.id)
class ICapVideo(ICap):