Skip to content

BUG: Unhandled error in plugin metainfo_content_size: 'NoneType' object has no attribute 'endswith' #1403

@maartenpaauw

Description

@maartenpaauw

Expected behaviour:

Accept completed torrents.

Actual behaviour:

Crashing.

Steps to reproduce:

  • Step 1: Updated Flexget.
  • Step 2: Updated Python.
  • Step 3: After removing "onlycomplete" from "from_transmission" it works. My config worked before.

Config:

# Laad series vanaf transmission.
      - from_transmission:

          # Gebruikersnaam van Transmission.
          username: '{{ secrets.transmission.username }}'

          # Wachtwoord van Transmission.
          password: '{{ secrets.transmission.password }}'

          # Alle torrents worden opgepakt.
          onlycomplete: yes

Log:

2016-09-11 22:28 DEBUG    manager                       Figuring out config load paths
2016-09-11 22:28 DEBUG    manager                       Found config: /Users/<<USERNAME>>/.flexget/config.yml
2016-09-11 22:28 DEBUG    manager                       Config file /Users/<<USERNAME>>/.flexget/config.yml selected
2016-09-11 22:28 VERBOSE  task_queue                    There are 5 tasks to execute. Shutdown will commence when they have completed.
2016-09-11 22:28 VERBOSE  trakt_list    series_task     Retrieving `shows` list `series`
2016-09-11 22:28 VERBOSE  filesystem    series_task     Starting to scan folders.
2016-09-11 22:28 VERBOSE  filesystem    series_task     Scanning folder /Users/<<USERNAME>>/Downloads/Transmission/Torrents/Series/. Recursion is set to False.
2016-09-11 22:28 WARNING  inputs        series_task     Input filesystem did not return anything
2016-09-11 22:28 VERBOSE  backlog       series_task     Added 3 entries from backlog
2016-09-11 22:28 VERBOSE  details       series_task     Produced 91 entries.
2016-09-11 22:28 CRITICAL task          series_task     BUG: Unhandled error in plugin metainfo_content_size: 'NoneType' object has no attribute 'endswith'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/flexget/task.py", line 476, in __run_plugin
    return method(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/flexget/plugins/metainfo/content_size.py", line 56, in on_task_metainfo
    if entry['location'].endswith('.torrent') or entry['location'].endswith('.nzb'):
AttributeError: 'NoneType' object has no attribute 'endswith'

Additional information:

  • Flexget Version: 2.3.23
  • Python Version: 2.7.12
  • Installation method: pip
  • OS and version: OS X El Capitan 10.11.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions