@evgsd wrote:
Hi guys.
I'm writing a plugin for the tracker.
I make method 'on_task_input' and parse feeddef on_task_input(self, task, config): parse feed... ... for item in feed.entries: entry = Entry() entry['url'] = item.link entry['title'] = item.title entry['series_name_rus'] = name_rus entry['series_name_eng'] = name_eng entries.append(entry) return entries
But when i test this plugin in logs i see
2017-05-18 11:14 DEBUG backlog Kinozal 0 entries purged from backlog 2017-05-18 11:14 VERBOSE details Kinozal Produced 50 entries. ..... 2017-05-18 11:14 DEBUG parser_internal Kinozal Parsing series: `Элементарно (5 сезон: 1-23 серии из 24) / Elementary / 2016 / ПМ (LostFilm) / WEB-DL (1080p)` kwargs: {'name': 'Elementary', 'identified_by': 'auto', 'alternate_names': [], 'name_regexps': [], 'strict_name': False, 'allow_groups': [], 'date_yearfirst': None, 'date_dayfirst': None, 'special_ids': [], 'prefer_specials': None, 'assume_special': None, 'ep_regexps': [], 'date_regexps': [], 'sequence_regexps': [], 'id_regexps': []} 2017-05-18 11:14 DEBUG parser_internal Kinozal Parsing result: <SeriesParser(data=Элементарно (5 сезон: 1-23 серии из 24) / Elementary / 2016 / ПМ (LostFilm) / WEB-DL (1080p),name=Elementary,id=None,season=None,season_pack=None,episode=None,quality=None,proper=0,status=INVALID)> (in 0.1509999999997902 ms) 2017-05-18 11:14 DEBUG urlrewriter Kinozal Checking 0 entries 2017-05-18 11:14 VERBOSE details Kinozal Summary - Accepted: 0 (Rejected: 0 Undecided: 50 Failed: 0)
Config file:
tasks: Kinozal: kinozal: username: 'login' password: 'password' template: - tvshows series: 1080p: - 'Elementary'
What am I doing wrong?
Where can I read more about plug-in development?
Thanks.
Posts: 7
Participants: 2