Add subtitle to media title printout

* Resolution for movies
* Number of seasons for tv shows
This commit is contained in:
JonnyWong16 2023-01-18 09:46:15 -08:00
parent f8a95935f9
commit c19b05cb4d
No known key found for this signature in database
GPG Key ID: B1F1F9807184697A

View File

@ -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