Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Load - TypeError: '<' not supported between instances of 'NoneType' and 'str' #78

Open
abnersnell opened this issue Dec 5, 2023 · 0 comments

Comments

@abnersnell
Copy link

Attempted to enable Dynamic Load for TV, running from "latest" docker, receive the following:

2023-12-04 19:59:28,340 - INFO - [SONARR][DYNAMIC LOAD] Skipping Friends because it is exempt.
2023-12-04 19:59:28,806 - WARNING - '<' not supported between instances of 'NoneType' and 'str', retrying in 5 seconds...
2023-12-04 19:59:35,035 - WARNING - '<' not supported between instances of 'NoneType' and 'str', retrying in 5 seconds...
Traceback (most recent call last):
File "/app/eraserr.py", line 30, in
main(args)
File "/app/src/main.py", line 24, in main
job_runner.run()
File "/app/src/jobs.py", line 60, in run
self.dynamic_load_job()
File "/app/src/jobs.py", line 114, in dynamic_load_job
self.dynamic_load_series()
File "/app/src/jobs.py", line 171, in dynamic_load_series
self.sonarr.get_dynamic_load_media(media_to_load, self.dry_run)
File "/usr/local/lib/python3.12/site-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/retry/api.py", line 73, in retry_decorator
return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/retry/api.py", line 33, in __retry_internal
return f()
^^^
File "/app/src/clients/sonarr.py", line 358, in get_dynamic_load_media
total_size += self.__handle_dynamic_load(series, dynamic_media, dry_run)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/clients/sonarr.py", line 270, in __handle_dynamic_load
episodes_to_load, episodes_to_unload = self.__get_episodes_to_load_and_unload(series, dynamic_media)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/clients/sonarr.py", line 195, in __get_episodes_to_load_and_unload
filtered_episodes = [episode for episode in episodes if episode.get("seasonNumber", -1) != 0 and episode.get("airDate") < datetime.now().isoformat() and episode.get("airDate") > datetime.fromtimestamp(time.time() - self.dynamic_load.watched_deletion_threshold).isoformat()]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'NoneType' and 'str'
2023-12-04 19:59:41,921 - INFO - Starting Eraserr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant