format
This commit is contained in:
@@ -234,7 +234,7 @@ class Jellyfin:
|
|||||||
if "MediaSources" in movie and movie["MediaSources"] != {}:
|
if "MediaSources" in movie and movie["MediaSources"] != {}:
|
||||||
if "UserData" not in movie:
|
if "UserData" not in movie:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Skip if not watched or watched less than a minute
|
# Skip if not watched or watched less than a minute
|
||||||
if (
|
if (
|
||||||
movie["UserData"]["Played"] == True
|
movie["UserData"]["Played"] == True
|
||||||
@@ -272,7 +272,7 @@ class Jellyfin:
|
|||||||
for show in watched_shows["Items"]:
|
for show in watched_shows["Items"]:
|
||||||
if not "UserData" in show:
|
if not "UserData" in show:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if "PlayedPercentage" in show["UserData"]:
|
if "PlayedPercentage" in show["UserData"]:
|
||||||
if show["UserData"]["PlayedPercentage"] > 0:
|
if show["UserData"]["PlayedPercentage"] > 0:
|
||||||
watched_shows_filtered.append(show)
|
watched_shows_filtered.append(show)
|
||||||
|
|||||||
@@ -69,13 +69,12 @@ def get_guids(item: Union[Movie, Episode], completed=True):
|
|||||||
f"Plex: {item.title} has no locations",
|
f"Plex: {item.title} has no locations",
|
||||||
1,
|
1,
|
||||||
)
|
)
|
||||||
|
|
||||||
if not item.guids:
|
if not item.guids:
|
||||||
logger(
|
logger(
|
||||||
f"Plex: {item.title} has no guids",
|
f"Plex: {item.title} has no guids",
|
||||||
1,
|
1,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"title": item.title,
|
"title": item.title,
|
||||||
|
|||||||
Reference in New Issue
Block a user