linuxserver/docker-bazarr

Error with get_providers.py, line 301

Closed this issue · 2 comments

linuxserver.io

There is an error with line 301 in the get_providers.py that makes Bazarr restart endlessly. Current workaround is to comment out line 301: tp = eval(str(get_throttled_providers())).

Expected Behavior

Bazarr should start normally.

Current Behavior

Bazarr restarts endlessly.

Steps to Reproduce

  1. Start Bazarr container
  2. View log

Environment

OS: Ubuntu LTS 20.04.2
CPU architecture: x86_64/arm32/arm64
How docker service was installed: official docker repo

Command used to create docker container (run/create/compose/screenshot)

bazarr:
image: linuxserver/bazarr:latest
container_name: bazarr
depends_on:
- wireguard
network_mode: service:wireguard
environment:
- PUID=$PUID
- PGID=$PGID
- TZ=$TZ
volumes:
- $DOCKERDIR/bazarr/config:/config
- /mnt/Pool/Movies:/movies
- /mnt/Pool/TV:/tv
restart: always
labels:
- "com.centurylinklabs.watchtower.depends-on=wireguard"

Docker logs

^,
SyntaxError: unmatched ')',
Bazarr starting...,
Bazarr exited.,
Traceback (most recent call last):,
File "/app/bazarr/bazarr/main.py", line 31, in ,
from get_episodes import *,
File "/app/bazarr/bazarr/get_episodes.py", line 10, in ,
from get_subtitle import episode_download_subtitles,
File "/app/bazarr/bazarr/get_subtitle.py", line 29, in ,
from get_providers import get_providers, get_providers_auth, provider_throttle, provider_pool,
File "/app/bazarr/bazarr/get_providers.py", line 301, in ,
tp = eval(str(get_throttled_providers())),
File "", line 1,
{'yifysubtitles': ('ConnectionError', datetime.datetime(2021, 2, 24, 8, 21, 56, 248462), '10 minutes'), 'podnapisi': ('ConnectionError', datetime.datetime(2021, 2, 24, 8, 29, 11, 997878), '10 minutes'), 'supersubtitles': ('ConnectionError', datetime.datetime(2021, 2, 24, 8, 29, 12, 8323), '10 minutes'), 'titrari': ('ConnectionError', datetime.datetime(2021, 2, 24, 8, 29, 11, 992984), '10 minutes'), 'tvsubtitles': ('ConnectionError', datetime.datetime(2021, 2, 24, 8, 29, 12, 9927), '10 minutes')})},
^,
SyntaxError: unmatched ')',
Bazarr starting...,
Bazarr exited.,

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

This would be a upstream issue. Report to Bazarr directly. I also cannot reproduce this.