question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
tarzasaicommented, Sep 23, 2016

It’s happening to me all the times and it’s weird, because the “location in entry” check on line 54 should avoid this thing. Anyway I’ll try to refine that “if” and see what happens for a while… should send a PR in a few days.

0reactions
tarzasaicommented, Sep 26, 2016

just to confirm @gazpachoking was right:

2016-09-26 06:01 INFO     transmission  move_series     PluginTransmissionInput.on_task_input: bigfella is None!
Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found