Skip to content

Commit

Permalink
- Fix empty My subscriptions in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
KOL committed Jun 16, 2015
1 parent 8522716 commit 5457636
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,14 @@ def MySubscriptions(offset=None):
return NoContents()

if 'single_column_browse_results' in res:
res = res['single_column_browse_results']['tabs'][0]['content']
for item in res['single_column_browse_results']['tabs']:
if 'selected' in item and item['selected'] is True:
res = item['content']
break
else:
res = res['continuation_contents']

if not len(res['contents']):
if not 'contents' in res or not len(res['contents']):
return NoContents()

if 'continuations' in res:
Expand Down
2 changes: 1 addition & 1 deletion Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<key>CFBundleSignature</key>
<string>hook</string>
<key>CFBundleVersion</key>
<string>3.0</string>
<string>3.1</string>

<key>PlexPluginVersionUrl</key>
<string>http://bit.ly/1FuE3dz</string>
Expand Down

0 comments on commit 5457636

Please sign in to comment.