Skip to content

Commit

Permalink
Include "progress" and "paused_at" properties in to_dict()
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzeman committed Feb 17, 2015
1 parent 6e858f4 commit 5591df8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion trakt/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,13 @@ def to_dict(self):
result.update({
'watched': 1 if self.is_watched else 0,
'collected': 1 if self.is_collected else 0,

'plays': self.plays if self.plays is not None else 0,
'progress': self.progress,

'collected_at': to_iso8601(self.collected_at),
'paused_at': to_iso8601(self.paused_at),

'ids': {}
})

Expand Down Expand Up @@ -218,8 +223,12 @@ def to_dict(self):
result.update({
'watched': 1 if self.is_watched else 0,
'collected': 1 if self.is_collected else 0,

'plays': self.plays if self.plays is not None else 0,
'collected_at': to_iso8601(self.collected_at)
'progress': self.progress,

'collected_at': to_iso8601(self.collected_at),
'paused_at': to_iso8601(self.paused_at)
})

if self.rating:
Expand Down

0 comments on commit 5591df8

Please sign in to comment.