-
Notifications
You must be signed in to change notification settings - Fork 481
Blu-ray.com estimator crashes #1352
Copy link
Copy link
Closed
Description
Expected behaviour:
System shouldn't crash, perhaps fall back to another estimator?
Actual behaviour:
Flexget crashed when no result is found on blu-ray.com.
Steps to reproduce:
- Step 1: Make sure a movie is in a movie_list (or any input) that does not exist on blu-ray.com. (for example The Lost(2009)
- Step 2: Use a task that tries get the release dat for the movie.
Config:
DownloadMoviesTest:
discover:
interval: 3 hour
what:
- movie_list:
list_name: "Testing"
from:
- piratebay: yes
Log:
2016-08-18 11:41 DEBUG est_released DownloadMoviesLQ The Lost
2016-08-18 11:41 DEBUG est_movies_bluray DownloadMoviesLQ Searching Blu-ray.com for release date of The Lost (2009)
2016-08-18 11:41 VERBOSE api_bluray DownloadMoviesLQ Searching from blu-ray.com title=The Lost
2016-08-18 11:41 DEBUG utils.requests DownloadMoviesLQ Fetching http://m.blu-ray.com/quicksearch/search.php
2016-08-18 11:41 DEBUG utils.requests DownloadMoviesLQ Fetching http://m.blu-ray.com/countries.json.php
2016-08-18 11:41 CRITICAL task DownloadMoviesLQ BUG: Unhandled error in plugin discover: 'NoneType' object has no attribute 'lower'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flexget/task.py", line 472, 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 "/usr/local/lib/python2.7/dist-packages/flexget/plugins/input/discover.py", line 289, in on_task_input
entries = self.estimated(entries, estimation_mode)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/input/discover.py", line 201, in estimated
est_date = estimator.estimate(entry)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/estimators/est_released.py", line 28, in estimate
estimate = estimator(entry)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/estimators/est_released_movies_bluray.py", line 31, in estimate
movie = lookup(title=movie_name, year=movie_year, session=session)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/internal/api_bluray.py", line 212, in lookup
if title.lower() != movie.name.lower():
AttributeError: 'NoneType' object has no attribute 'lower'
Additional information:
- Flexget Version: 2.3.0
- Python Version: 2.7.12
- Installation method: pip
- OS and version: Ubuntu Server 14.04
- Link to crash log: http://pastebin.com/xqkbdPFm
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels