Skip to content

Commit

Permalink
v5.8.x Fix issue with episode control
Browse files Browse the repository at this point in the history
  • Loading branch information
terrelsa13 committed Oct 25, 2024
1 parent 768c323 commit afd5cba
Show file tree
Hide file tree
Showing 3 changed files with 172 additions and 153 deletions.
3 changes: 3 additions & 0 deletions mumc_modules/mumc_get_media.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,10 @@ def get_mediaItems(the_dict,media_type,user_info,media_returns):
RecursiveItemCount=int(series_info['RecursiveItemCount'])
UnplayedItemCount=int(series_info['UserData']['UnplayedItemCount'])
PlayedEpisodeCount=RecursiveItemCount - UnplayedItemCount
SeriesName=item['SeriesName']

if (not ('SeriesName' in var_dict['mediaCounts_byUserId'][user_info['user_id']][item['SeriesId']])):
var_dict['mediaCounts_byUserId'][user_info['user_id']][item['SeriesId']]['SeriesName']=SeriesName
if (not ('TotalEpisodeCount' in var_dict['mediaCounts_byUserId'][user_info['user_id']][item['SeriesId']])):
var_dict['mediaCounts_byUserId'][user_info['user_id']][item['SeriesId']]['TotalEpisodeCount']=RecursiveItemCount
if (not ('UnplayedEpisodeCount' in var_dict['mediaCounts_byUserId'][user_info['user_id']][item['SeriesId']])):
Expand Down
Loading

0 comments on commit afd5cba

Please sign in to comment.