Remove unused scrobbler _post copy
import trakt.movies
import trakt.sync
import trakt.users
-from trakt import post
from trakt.errors import ForbiddenException, OAuthException
from trakt.movies import Movie
from trakt.sync import Scrobbler
@@ -52,25 +51,6 @@ def stop(self, progress: float):
self.logger.debug(f"pause({self.scrobbler.media}): {progress}")
return self.scrobbler.pause(progress)
- # Copied method, until upstream is merged
- # https://github.com/moogar0880/PyTrakt/pull/196
- @nocache
- @rate_limit()
- @time_limit()
- @retry()
- @post
- def _post(self, method: str, progress: float):
- self.scrobbler.progress = progress
- uri = f"scrobble/{method}"
- payload = dict(
- progress=self.scrobbler.progress,
- app_version=self.scrobbler.version,
- date=self.scrobbler.date,
- )
- payload.update(self.scrobbler.media.to_json_singular())
- response = yield uri, payload
- yield response
-
class TraktRatingCollection(dict):
def __init__(self, trakt: TraktApi):
