bcall adds suffix to object, not the backend itself
This commit is contained in:
parent
72270f3596
commit
657e8fe407
4 changed files with 1 additions and 12 deletions
|
|
@ -23,10 +23,6 @@ __all__ = ['YoujizzVideo']
|
|||
|
||||
|
||||
class YoujizzVideo(BaseVideo):
|
||||
def __init__(self, *args, **kwargs):
|
||||
BaseVideo.__init__(self, *args, **kwargs)
|
||||
self.id = u'%s@youjizz.com' % self.id
|
||||
|
||||
@classmethod
|
||||
def id2url(cls, _id):
|
||||
return 'http://www.youjizz.com/videos/%s.html' % _id
|
||||
|
|
|
|||
|
|
@ -23,10 +23,6 @@ __all__ = ['YoupornVideo']
|
|||
|
||||
|
||||
class YoupornVideo(BaseVideo):
|
||||
def __init__(self, *args, **kwargs):
|
||||
BaseVideo.__init__(self, *args, **kwargs)
|
||||
self.id = u'%s@youporn.com' % self.id
|
||||
|
||||
@classmethod
|
||||
def id2url(cls, _id):
|
||||
if _id.isdigit():
|
||||
|
|
|
|||
|
|
@ -23,10 +23,6 @@ __all__ = ['YoutubeVideo']
|
|||
|
||||
|
||||
class YoutubeVideo(BaseVideo):
|
||||
def __init__(self, *args, **kwargs):
|
||||
BaseVideo.__init__(self, *args, **kwargs)
|
||||
self.id = u'%s@youtube.com' % self.id
|
||||
|
||||
@classmethod
|
||||
def id2url(cls, _id):
|
||||
return 'http://www.youtube.com/watch?v=%s' % _id
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ class BackendsCall(object):
|
|||
|
||||
def _store_result(self, backend, result):
|
||||
with self.mutex:
|
||||
result.id = unicode(result.id) + '@' + backend.name
|
||||
self.responses.append((backend, result))
|
||||
self.response_event.set()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue