diff --git a/media_manager/indexer/repository.py b/media_manager/indexer/repository.py index 3ef8732..2a36f77 100644 --- a/media_manager/indexer/repository.py +++ b/media_manager/indexer/repository.py @@ -24,7 +24,9 @@ class IndexerRepository: log.debug("Saving indexer query result: %s", result) result_data = result.model_dump() - result_data["download_url"] = str(result.download_url) # this is the needful, because sqlalchemy is too dumb to handle the HttpUrl type + result_data["download_url"] = str( + result.download_url + ) # this is the needful, because sqlalchemy is too dumb to handle the HttpUrl type self.db.add(IndexerQueryResult(**result_data)) self.db.commit() diff --git a/media_manager/torrent/manager.py b/media_manager/torrent/manager.py index 8e35bac..597a60a 100644 --- a/media_manager/torrent/manager.py +++ b/media_manager/torrent/manager.py @@ -39,7 +39,9 @@ class DownloadManager: if os.getenv("QBITTORRENT_ENABLED", "false").lower() == "true": try: self._torrent_client = QbittorrentDownloadClient() - log.info("qBittorrent client initialized and set as active torrent client") + log.info( + "qBittorrent client initialized and set as active torrent client" + ) except Exception as e: log.error(f"Failed to initialize qBittorrent client: {e}") diff --git a/web/src/lib/components/download-season-dialog.svelte b/web/src/lib/components/download-season-dialog.svelte index a9d785e..55c1ea4 100644 --- a/web/src/lib/components/download-season-dialog.svelte +++ b/web/src/lib/components/download-season-dialog.svelte @@ -6,7 +6,11 @@ import { toast } from 'svelte-sonner'; import type { PublicIndexerQueryResult } from '$lib/types.js'; - import { convertTorrentSeasonRangeToIntegerRange, getFullyQualifiedMediaName, formatSecondsToOptimalUnit } from '$lib/utils'; + import { + convertTorrentSeasonRangeToIntegerRange, + formatSecondsToOptimalUnit, + getFullyQualifiedMediaName + } from '$lib/utils'; import { LoaderCircle } from 'lucide-svelte'; import * as Dialog from '$lib/components/ui/dialog/index.js'; import * as Tabs from '$lib/components/ui/tabs/index.js'; @@ -283,8 +287,10 @@