🛠️ Ruff errors refactored.

This commit is contained in:
Robert Honz
2024-01-12 11:20:10 +01:00
parent 87091fb060
commit 677bca872e
5 changed files with 19 additions and 10 deletions
+3 -1
View File
@@ -29,7 +29,9 @@ from tidal_dl_ng.model.gui_data import ProgressBars
# TODO: Set appropriate client string and use it for video download.
# https://github.com/globocom/m3u8#using-different-http-clients
class RequestsClient:
def download(self, uri: str, timeout: int = None, headers: dict | None = None, verify_ssl: bool = True):
def download(
self, uri: str, timeout: int = REQUESTS_TIMEOUT_SEC, headers: dict | None = None, verify_ssl: bool = True
):
if not headers:
headers = {}