-
Notifications
You must be signed in to change notification settings - Fork 481
BUG: Unhandled error in plugin discover: Expecting value: line 1 column 1 (char 0) #1973
Copy link
Copy link
Closed
Labels
Description
Expected behaviour:
Discover should run normally.
Actual behaviour:
Discover crashed.
Steps to reproduce:
- Step 1: Run task "download-movies-discover"
Config:
movies-metainfo:
metainfo_movie: yes
tmdb_lookup: yes
parsing:
movie: guessit
reject:
regexp:
reject:
- \b(s|d)ub(s|bed|lado|titulado)?\b
- \bhc\b
- \bdual\b
- \b3d\b
- \bfre(nch)?\b
- \bita(lian)?\b
- \bspa(nish)?\b
- \bger(man)?\b
- \bcastellano\b
- \brus(sian)?\b
- \bswe(dish)?\b
- \bhindi\b
- '[\. ]korsub[\. ]?'
movie:
torrent_alive: 5 # Will reject results with less than 1 seed
quality: 1080p webdl+ aac+ # Make sure no screeners or cams are downloaded
content_size:
min: 600
max: 7168
strict: no
set:
path: '/{? folder.root ?}{? folder.moviesDVD ?}'
template: transmissionRPC
transmission:
addpaused: no
ratio: 0
clean-movies-queue:
priority: 31
template:
- disable-seen-retry
- movies-metainfo
filesystem:
path:
- "/{? folder.root ?}{? folder.moviesDVD ?}"
recursive: yes
retrieve: files
regexp: '.*\.(avi|mkv|mp4)$'
accept_all: yes
list_remove:
- movie_list: movies
- trakt_list:
username: "{? trakt.username ?}"
account: "{? trakt.account ?}"
list: "{? trakt.list ?}"
type: movies
download-movies-discover:
priority: 33 # run after the movie list fill task
template:
- movies-metainfo
- reject
- movie
- notifyViaEmail
discover:
what:
- movie_list: movies
from:
- rarbg:
category:
- x264 720p
- x264 1080p
ranked: false
interval: 1 hour
release_estimations:
optimistic: 75 days
list_add:
- subtitle_list:
list: subtitles
languages:
- en
path: '{{path}}'
allow_dir: true
remove_after: "4 weeks"
check_subtitles: yes
list_match:
from:
- movie_list: movies
list_remove:
- trakt_list:
username: "{? trakt.username ?}"
account: "{? trakt.account ?}"
list: "{? trakt.list ?}"
type: movies
Log:
2017-09-22 00:17 WARNING movie_list clean-movies-queue Could not get a movie name, skipping
2017-09-22 10:01 CRITICAL task download-movies-discover BUG: Unhandled error in plugin discover: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/opt/lib/python3.6/site-packages/flexget/task.py", line 486, in __run_plugin
return method(*args, **kwargs)
File "/opt/lib/python3.6/site-packages/flexget/event.py", line 23, in __call__
return self.func(*args, **kwargs)
File "/opt/lib/python3.6/site-packages/flexget/plugins/input/discover.py", line 289, in on_task_input
entries = self.estimated(entries, estimation_mode)
File "/opt/lib/python3.6/site-packages/flexget/plugins/input/discover.py", line 201, in estimated
est_date = estimator.estimate(entry)
File "/opt/lib/python3.6/site-packages/flexget/plugins/estimators/est_released.py", line 28, in estimate
estimate = estimator(entry)
File "/opt/lib/python3.6/site-packages/flexget/plugins/estimators/est_released_movies_bluray.py", line 36, in estimate
movie = lookup(title=movie_name, year=movie_year, session=session)
File "/opt/lib/python3.6/site-packages/flexget/plugins/internal/api_bluray.py", line 209, in lookup
updated_movie = BlurayMovie(title=title, year=year)
File "<string>", line 4, in __init__
File "/opt/lib/python3.6/site-packages/sqlalchemy/orm/state.py", line 414, in _initialize_instance
manager.dispatch.init_failure(self, args, kwargs)
File "/opt/lib/python3.6/site-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/opt/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 187, in reraise
raise value
File "/opt/lib/python3.6/site-packages/sqlalchemy/orm/state.py", line 411, in _initialize_instance
return manager.original_init(*mixed[1:], **kwargs)
File "/opt/lib/python3.6/site-packages/flexget/plugins/internal/api_bluray.py", line 77, in __init__
search_results = bluray_request('quicksearch/search.php', **params)['items']
File "/opt/lib/python3.6/site-packages/flexget/plugins/internal/api_bluray.py", line 34, in bluray_request
return requests.get(full_url, params=params).json(strict=False)
File "/opt/lib/python3.6/site-packages/requests/models.py", line 892, in json
return complexjson.loads(self.text, **kwargs)
File "/__init__.py", line 367, in loads
File "/decoder.py", line 339, in decode
File "/decoder.py", line 357, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Additional information:
- FlexGet version: 2.10.94
- Python version: 3.6
- Installation method: pip
- Using daemon (yes/no): no
Reactions are currently unavailable