Userscript: Apple Trailer, Allocine

This commit is contained in:
Ruud
2011-10-12 12:48:06 +02:00
parent 76f471ad34
commit 50be46bbea
4 changed files with 11 additions and 20 deletions
@@ -1,5 +1,4 @@
from beautifulsoup import BeautifulSoup
from couchpotato.core.event import fireEvent
from couchpotato.core.providers.userscript.base import UserscriptBase
class AlloCine(UserscriptBase):
@@ -20,8 +19,4 @@ class AlloCine(UserscriptBase):
name = split[0][:-5].strip()
year = split[0][-4:]
result = self.search(name, year)
if result:
movie = fireEvent('movie.info', identifier = result.get('imdb'), merge = True)
return movie
return self.search(name, year)