fuzeman/trakt.py

View on GitHub
trakt/interfaces/sync/playback.py

Summary

Maintainability
A
0 mins
Test Coverage


from trakt.interfaces.base import authenticated
from trakt.interfaces.sync.core.mixins import Get, Delete


class SyncPlaybackInterface(Get, Delete):
    path = 'sync/playback'

    #
    # Shortcut methods
    #

    @authenticated
    def shows(self, store=None, **kwargs):
        raise NotImplementedError()

    @authenticated
    def episodes(self, store=None, **kwargs):
        return self.get(
            'episodes',
            store=store,
            **kwargs
        )