Skip to content

Commit

Permalink
Add IdsMixin to PlaybackEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Apr 7, 2024
1 parent 9ebc163 commit dfc367f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion trakt/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from deprecated import deprecated

from trakt.core import delete, get, post
from trakt.mixins import IdsMixin
from trakt.utils import slugify, timestamp

__author__ = 'Jon Nappi'
Expand All @@ -20,14 +21,18 @@


@dataclass(frozen=True)
class PlaybackEntry:
class PlaybackEntry(IdsMixin):
progress: float
paused_at: str
id: int
type: str
# data for "type" structure
data: Any

@property
def _ids(self):
return self.data["ids"]


@post
def comment(media, comment_body, spoiler=False, review=False):
Expand Down

0 comments on commit dfc367f

Please sign in to comment.