You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
season.getWatched() always returns 0 episodes, season.getUnwatched() always returns the total number of episodes in the season, regardless of watched status.
Code snipppets
account=MyPlexAccount(username, password)
server_1=account.resource(server_1_name)
conn_1=server_1.connect()
s1_show=conn_1.library.section(libraryName).get(showName)
s1_seasons=s1_show.seasons()
forseasonins1_seasons:
print ("Season number is "+str(season.seasonNumber))
unwatchedEps=season.unwatched()
watchedEps=season.watched()
allEps=season.episodes()
print (str(len(unwatchedEps)) +" unwatched episodes in this season, "+str(len(watchedEps)) +" watched, "+str(len(allEps)) +" total")
Expected behavior
For a show with 2 seasons, 21 episodes in season 1, all of which are watched, and 10 episodes in season 2, 9 of which are watched, the expected output is:
Season number is 1
0 unwatched episodes in this season, 21 watched, 21 total
Season number is 2
1 unwatched episodes in this season, 9 watched, 10 total
But instead the output is:
Season number is 1
21 unwatched episodes in this season, 0 watched, 21 total
Season number is 2
10 unwatched episodes in this season, 0 watched, 10 total
Enviroment (please complete the following information):
OS: Raspbian Buster
Plex version 1.21.4.4079
Python Version 3.7.3
PlexAPI version 4.4.0
The text was updated successfully, but these errors were encountered:
Describe the issue
season.getWatched() always returns 0 episodes, season.getUnwatched() always returns the total number of episodes in the season, regardless of watched status.
Code snipppets
Expected behavior
For a show with 2 seasons, 21 episodes in season 1, all of which are watched, and 10 episodes in season 2, 9 of which are watched, the expected output is:
Season number is 1
0 unwatched episodes in this season, 21 watched, 21 total
Season number is 2
1 unwatched episodes in this season, 9 watched, 10 total
But instead the output is:
Season number is 1
21 unwatched episodes in this season, 0 watched, 21 total
Season number is 2
10 unwatched episodes in this season, 0 watched, 10 total
Enviroment (please complete the following information):
The text was updated successfully, but these errors were encountered: