From 8318a87d5d1d96db6cde93d5a84bcfde9532d2a3 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Fri, 5 Jan 2024 17:26:24 +0100 Subject: [PATCH] Fix bugs due to metadata ids behing ints instead of strings --- scanner/providers/implementations/themoviedatabase.py | 1 - scanner/providers/types/metadataid.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scanner/providers/implementations/themoviedatabase.py b/scanner/providers/implementations/themoviedatabase.py index a0882371..587ecd64 100644 --- a/scanner/providers/implementations/themoviedatabase.py +++ b/scanner/providers/implementations/themoviedatabase.py @@ -1,6 +1,5 @@ import asyncio import logging -from sys import orig_argv from aiohttp import ClientSession from datetime import datetime, timedelta from typing import Awaitable, Callable, Dict, List, Optional, Any, TypeVar diff --git a/scanner/providers/types/metadataid.py b/scanner/providers/types/metadataid.py index 87bfc915..a4944400 100644 --- a/scanner/providers/types/metadataid.py +++ b/scanner/providers/types/metadataid.py @@ -6,3 +6,6 @@ from typing import Optional class MetadataID: data_id: str link: Optional[str] + + def __post_init__(self): + self.data_id = str(self.data_id)