Skip to content

Commit

Permalink
Fixed for Flexget 2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tarzasai committed Aug 21, 2016
1 parent 3041e92 commit 4f11d52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions extras/input/from_uoccin.py → extras/input/uoccin_emit.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from flexget.utils import json

try:
from flexget.plugins.api_tvdb import lookup_series
from flexget.plugins.internal.api_tvdb import lookup_series
except ImportError:
raise plugin.DependencyError(issued_by='uoccin', missing='api_tvdb',
message='uoccin requires the `api_tvdb` plugin')
Expand All @@ -29,7 +29,8 @@ def load_uoccin_data(path):
return udata


class FromUoccin(object):
class UoccinEmit(object):

schema = {
'type': 'object',
'properties': {
Expand All @@ -47,8 +48,8 @@ def on_task_input(self, task, config):
"""Creates an entry for each item in your uoccin watchlist.
Example::
from_uoccin:
uoccin_emit:
path: /path/to/gdrive/uoccin
type: series
tags: [ 'favorite', 'hires' ]
Expand Down Expand Up @@ -98,7 +99,7 @@ def on_task_input(self, task, config):
else:
sname = itm['name']
try:
sname = lookup_series(tvdb_id=eid).seriesname
sname = lookup_series(tvdb_id=eid).name
except LookupError:
self.log.warning('Unable to lookup series %s from tvdb, using raw name.' % eid)
surl = 'http://thetvdb.com/?tab=series&id=' + eid
Expand Down Expand Up @@ -143,4 +144,4 @@ def on_task_input(self, task, config):

@event('plugin.register')
def register_plugin():
plugin.register(FromUoccin, 'from_uoccin', api_ver=2)
plugin.register(UoccinEmit, 'uoccin_emit', api_ver=2)
2 changes: 1 addition & 1 deletion extras/output/uoccin_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from flexget.utils import json

try:
from flexget.plugins.api_tvdb import lookup_series
from flexget.plugins.internal.api_tvdb import lookup_series
except ImportError:
raise plugin.DependencyError(issued_by='uoccin', missing='api_tvdb',
message='uoccin requires the `api_tvdb` plugin')
Expand Down

0 comments on commit 4f11d52

Please sign in to comment.