The instructions are extremely vague as to how to set this up but I did it as best I could.
My config looks like this
sonarrytdl:
scan_interval: 1 # minutes between scans
debug: False # Set to True for a more verbose output
sonarr:
host: 127.0.0.1
port: 8989 # sonarr default port
apikey: mykey12345
ssl: false
version: v4 # if running v4 beta, allows the v3 api endpoints
ytdl:
default_format: bestvideo[width<=1920]+bestaudio/best[width<=1920]
series:
- title: Smarter Every Day
url: https://www.youtube.com/channel/UC6107grRI4m0o2-emgoDnAA
But I immediately get these errors starting here. My key looks right, my host is just localhost.
Sonarr isn't part of my docker but it's running on the same windows machine if that would make a difference?
2025-04-04 03:08:57 sonarr_youtubedl | 2025-04-04 07:08:57,797 - sonarr_youtubedl - INFO - Initial run
2025-04-04 03:08:57 sonarr_youtubedl | 2025-04-04 07:08:57,802 - sonarr_youtubedl - INFO - Configuration Found. Loading file.
2025-04-04 03:08:57 sonarr_youtubedl | 2025-04-04 07:08:57,811 - sonarr_youtubedl - INFO - Scan interval set to every 1 minutes by config.yml
2025-04-04 03:08:57 sonarr_youtubedl | Traceback (most recent call last):
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
2025-04-04 03:08:57 sonarr_youtubedl | conn = connection.create_connection(
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 95, in create_connection
2025-04-04 03:08:57 sonarr_youtubedl | raise err
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, in create_connection
2025-04-04 03:08:57 sonarr_youtubedl | sock.connect(sa)
2025-04-04 03:08:57 sonarr_youtubedl | ConnectionRefusedError: [Errno 111] Connection refused
2025-04-04 03:08:57 sonarr_youtubedl |
2025-04-04 03:08:57 sonarr_youtubedl | During handling of the above exception, another exception occurred:
2025-04-04 03:08:57 sonarr_youtubedl |
2025-04-04 03:08:57 sonarr_youtubedl | Traceback (most recent call last):
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
2025-04-04 03:08:57 sonarr_youtubedl | httplib_response = self._make_request(
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 398, in _make_request
2025-04-04 03:08:57 sonarr_youtubedl | conn.request(method, url, **httplib_request_kw)
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 239, in request
2025-04-04 03:08:57 sonarr_youtubedl | super(HTTPConnection, self).request(method, url, body=body, headers=headers)
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/http/client.py", line 1285, in request
2025-04-04 03:08:57 sonarr_youtubedl | self._send_request(method, url, body, headers, encode_chunked)
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/http/client.py", line 1331, in _send_request
2025-04-04 03:08:57 sonarr_youtubedl | self.endheaders(body, encode_chunked=encode_chunked)
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/http/client.py", line 1280, in endheaders
2025-04-04 03:08:57 sonarr_youtubedl | self._send_output(message_body, encode_chunked=encode_chunked)
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/http/client.py", line 1040, in _send_output
2025-04-04 03:08:57 sonarr_youtubedl | self.send(msg)
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/http/client.py", line 980, in send
2025-04-04 03:08:57 sonarr_youtubedl | self.connect()
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 205, in connect
2025-04-04 03:08:57 sonarr_youtubedl | conn = self._new_conn()
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
2025-04-04 03:08:57 sonarr_youtubedl | raise NewConnectionError(
2025-04-04 03:08:57 sonarr_youtubedl | urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f01f2874760>: Failed to establish a new connection: [Errno 111] Connection refused
2025-04-04 03:08:57 sonarr_youtubedl |
2025-04-04 03:08:57 sonarr_youtubedl | During handling of the above exception, another exception occurred:
2025-04-04 03:08:57 sonarr_youtubedl |
2025-04-04 03:08:57 sonarr_youtubedl | Traceback (most recent call last):
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 489, in send
2025-04-04 03:08:57 sonarr_youtubedl | resp = conn.urlopen(
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 787, in urlopen
2025-04-04 03:08:57 sonarr_youtubedl | retries = retries.increment(
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment
2025-04-04 03:08:57 sonarr_youtubedl | raise MaxRetryError(_pool, url, error or ResponseError(cause))
2025-04-04 03:08:57 sonarr_youtubedl | urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=8989): Max retries exceeded with url: /api/v3/series?apikey=152692108c0d492cbec1ebad54624fc6 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f01f2874760>: Failed to establish a new connection: [Errno 111] Connection refused'))
2025-04-04 03:08:57 sonarr_youtubedl |
2025-04-04 03:08:57 sonarr_youtubedl | During handling of the above exception, another exception occurred:
2025-04-04 03:08:57 sonarr_youtubedl |
2025-04-04 03:08:57 sonarr_youtubedl | Traceback (most recent call last):
2025-04-04 03:08:57 sonarr_youtubedl | File "/app/sonarr_youtubedl.py", line 441, in <module>
2025-04-04 03:08:57 sonarr_youtubedl | main()
2025-04-04 03:08:57 sonarr_youtubedl | File "/app/sonarr_youtubedl.py", line 433, in main
2025-04-04 03:08:57 sonarr_youtubedl | series = client.filterseries()
2025-04-04 03:08:57 sonarr_youtubedl | File "/app/sonarr_youtubedl.py", line 183, in filterseries
2025-04-04 03:08:57 sonarr_youtubedl | series = self.get_series()
2025-04-04 03:08:57 sonarr_youtubedl | File "/app/sonarr_youtubedl.py", line 114, in get_series
2025-04-04 03:08:57 sonarr_youtubedl | res = self.request_get("{}/{}/series".format(
2025-04-04 03:08:57 sonarr_youtubedl | File "/app/sonarr_youtubedl.py", line 143, in request_get
2025-04-04 03:08:57 sonarr_youtubedl | res = requests.get(url)
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 73, in get
2025-04-04 03:08:57 sonarr_youtubedl | return request("get", url, params=params, **kwargs)
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 59, in request
2025-04-04 03:08:57 sonarr_youtubedl | return session.request(method=method, url=url, **kwargs)
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
2025-04-04 03:08:57 sonarr_youtubedl | resp = self.send(prep, **send_kwargs)
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
2025-04-04 03:08:57 sonarr_youtubedl | r = adapter.send(request, **kwargs)
2025-04-04 03:08:57 sonarr_youtubedl | File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 565, in send
2025-04-04 03:08:57 sonarr_youtubedl | raise ConnectionError(e, request=request)
2025-04-04 03:08:57 sonarr_youtubedl | requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8989): Max retries exceeded with url: /api/v3/series?apikey=mykey123456(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f01f2874760>: Failed to establish a new connection: [Errno 111] Connection refused'))
2036-01-01 00:00:00
sonarr_youtubedl exited with code 1
The instructions are extremely vague as to how to set this up but I did it as best I could.
My config looks like this
But I immediately get these errors starting here. My key looks right, my host is just localhost.
Sonarr isn't part of my docker but it's running on the same windows machine if that would make a difference?