Skip to content

Commit 5afaa49

Browse files
glenscCopilot
andcommitted
Remove app metadata from scrobble payloads
The Trakt scrobble API only requires progress and the media object. Sending undocumented app_version/app_date fields with null values causes 400 responses from the API. Fixes #100 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 2c7091c commit 5afaa49

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

trakt/sync.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,7 @@ def _post(self, uri):
607607
608608
:param uri: The uri to post to
609609
"""
610-
payload = dict(progress=self.progress, app_version=self.version,
611-
date=self.date)
610+
payload = dict(progress=self.progress)
612611
payload.update(self.media.to_json_singular())
613612
response = yield uri, payload
614613
yield response

0 commit comments

Comments
 (0)