Formatting

Signed-off-by: Luis Garcia <git@luigi311.com>
This commit is contained in:
Luis Garcia
2025-02-21 14:41:19 -07:00
parent 0b02f531c1
commit 998f2b1209
3 changed files with 13 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
# Functions for Jellyfin and Emby # Functions for Jellyfin and Emby
import traceback, os import traceback
import os
from math import floor from math import floor
from typing import Any, Literal from typing import Any, Literal
from dotenv import load_dotenv from dotenv import load_dotenv
@@ -427,9 +428,9 @@ class JellyfinEmby:
if user_name.lower() not in users_watched: if user_name.lower() not in users_watched:
users_watched[user_name.lower()] = UserData() users_watched[user_name.lower()] = UserData()
users_watched[user_name.lower()].libraries[ users_watched[user_name.lower()].libraries[library_title] = (
library_title library_data
] = library_data )
return users_watched return users_watched
except Exception as e: except Exception as e:

View File

@@ -1,4 +1,6 @@
import os, traceback, json import os
import traceback
import json
from dotenv import load_dotenv from dotenv import load_dotenv
from time import sleep, perf_counter from time import sleep, perf_counter

View File

@@ -1,4 +1,5 @@
import os, requests import os
import requests
from dotenv import load_dotenv from dotenv import load_dotenv
from urllib3.poolmanager import PoolManager from urllib3.poolmanager import PoolManager
@@ -397,9 +398,9 @@ class Plex:
if user.title.lower() not in users_watched: if user.title.lower() not in users_watched:
users_watched[user.title.lower()] = UserData() users_watched[user.title.lower()] = UserData()
users_watched[user.title.lower()].libraries[ users_watched[user.title.lower()].libraries[library.title] = (
library.title library_data
] = library_data )
return users_watched return users_watched
except Exception as e: except Exception as e: