Skip to content

Error in npo_watchlist #1588

@maxdaniel98

Description

@maxdaniel98

Expected behaviour:

Flexget should find my NPO Watchlist entries

Actual behaviour:

Flexget stops at a critial error

Steps to reproduce:

  • Step 1: Execute task with NPO Watchlist in it

Config:

tasks:
  NPO series:
    npo_watchlist:
      email: maxdaniel98@gmail.com
      password: ********
      remove_accepted: yes
    accept_all: yes
    exec:
      fail_entries: yes
      auto_escape: yes
      on_output:
        for_accepted:
          - download-npo -o "/var/hdd/media/series/{{series_name_plain}}/" -f "{serie_titel} - {datum} {aflevering_titel} ({episode_id})" -t {{url}}

Log:

2016-12-25 22:53 CRITICAL task          NPO series      BUG: Unhandled error in plugin npo_watchlist: u'min' is not in list
2016-12-25 22:53 CRITICAL manager       NPO series      An unexpected crash has occurred. Writing crash report to /home/pi/.flexget/crash_report.2016.12.25.225356276310.log. Please verify you are running the latest version of flexget by using "flexget -V" from CLI or by using version_checker plugin at http://flexget.com/wiki/Plugins/version_checker. You are currently using version 2.8.11
2016-12-25 22:53 WARNING  task          NPO series      Aborting task (plugin: npo_watchlist)
2016-12-25 22:55 INFO     search_npo    NPO series      Retrieving npo.nl episode watchlist for maxdaniel98@gmail.com
2016-12-25 22:55 CRITICAL task          NPO series      BUG: Unhandled error in plugin npo_watchlist: u'min' is not in list
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flexget/task.py", line 483, in __run_plugin
    return method(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/home/pi/.flexget/plugins/input/npo_watchlist.py", line 317, in on_task_input
    entries = self._get_watchlist_entries(task, config)
  File "/home/pi/.flexget/plugins/input/npo_watchlist.py", line 148, in _get_watchlist_entries
    entry_date = self._parse_date(listItem.find('span', class_='global__content-info').text)
  File "/home/pi/.flexget/plugins/input/npo_watchlist.py", line 81, in _parse_date
    month = months.index(date_match.group(2)) + 1
ValueError: u'min' is not in list

Additional information:

  • Flexget Version: 2.8.11 (latest release on 25-12-2016)
  • Python Version: Python 2.7.9
  • Installation method: Via PIP
  • OS and version: Debian 8 Jessie on Raspberry Pi 2B

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions