Skip to content

Commit

Permalink
Fix episode listing
Browse files Browse the repository at this point in the history
This is a fix or Issue jamorin#10, where you get a "not responding" message when trying to list episodes -

jamorin#10

The problem was the data being looked for in JSON (series title) doesn't exist. I swapped this out to instead use the Season # as the view title in Plex.
  • Loading branch information
some-guy-23 committed Jan 24, 2016
1 parent 8799298 commit d8609cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def episode(series_id, season_id):
Log.Critical(e.message)
return MessageContainer(S("error"), e.message)
request = r.json()
series_title = request[0]["series"]["title"]
oc = ObjectContainer(title2=series_title)
current_season = "Season " + season_id
oc = ObjectContainer(title2=current_season)
# for e in reversed(request):
# for e in reversed(request):
for e in sorted(request, key=lambda x: x["episodeNumber"], reverse=True):
Expand Down

0 comments on commit d8609cc

Please sign in to comment.