From c19b05cb4d6d2ca0f0ae77d37b49d6c6773a68b1 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Wed, 18 Jan 2023 09:46:15 -0800 Subject: [PATCH] Add subtitle to media title printout * Resolution for movies * Number of seasons for tv shows --- reporting/streaming_service_availability.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reporting/streaming_service_availability.py b/reporting/streaming_service_availability.py index e9f3a6c..9379c9a 100644 --- a/reporting/streaming_service_availability.py +++ b/reporting/streaming_service_availability.py @@ -45,7 +45,14 @@ def check_streaming_services(plex, libraries, services, available_only): if available_only and not availabilities: continue - print(f' └─ {item.title} ({item.year})') + if item.type == 'movie': + subtitle = item.media[0].videoResolution + subtitle = subtitle.upper() if subtitle == 'sd' else ((subtitle + 'p') if subtitle.isdigit() else '') + else: + subtitle = item.childCount + subtitle = str(subtitle) + ' season' + ('s' if subtitle > 1 else '') + + print(f' └─ {item.title} ({item.year}) ({subtitle})') for availability in availabilities: title = availability.title