BUG: Unhandled error in plugin metainfo_content_size: 'NoneType' object has no attribute 'endswith'
See original GitHub issueExpected 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:
- Created 7 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
just to confirm @gazpachoking was right: