Skip to content

Commit

Permalink
fix: resume.db can't read
Browse files Browse the repository at this point in the history
fixes #380
  • Loading branch information
Sandmann79 committed Mar 29, 2020
1 parent 0953057 commit ef3dad0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin.video.amazon-test/resources/lib/playback.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,10 @@ def getResumePoint(self):
if not xbmcvfs.exists(self.resumedb) or self.content == 2:
return {}
with co(self.resumedb, 'rb') as fp:
items = pickle.load(fp)
try:
items = pickle.load(fp)
except KeyError:
items = {}
self.resume = items.get(self.asin, {}).get('resume', 0)
fp.close()
return items
Expand Down

0 comments on commit ef3dad0

Please sign in to comment.