mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
for for imdb convert
This commit is contained in:
parent
53f29e927f
commit
b192e51f5f
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class Cache:
|
|||
if row and row[to_id]:
|
||||
datetime_object = datetime.strptime(row["expiration_date"], "%Y-%m-%d")
|
||||
time_between_insertion = datetime.now() - datetime_object
|
||||
id_to_return = int(row[to_id])
|
||||
id_to_return = row[to_id] if to_id == "imdb_id" else int(row[to_id])
|
||||
expired = time_between_insertion.days > self.expiration
|
||||
return id_to_return, expired
|
||||
|
||||
|
|
Loading…
Reference in a new issue