Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix shows import #67

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

jakufort
Copy link
Contributor

Trakt sync api returns episodes field even when sync is for whole shows.

This makes using options.type as key in result['added'] dict impossible, since result won't have this key.

To solve this issue, I'm using Counter object (instead of standard dict), which sums added and updated.

For not_found I decided that it would make sense to aggregate data instead of only showing counter (since it should be useful to know what wasn't imported).

Trakt sync api returns `episodes` field even when sync is for whole shows.

This makes using `options.type` as key in `result['added']` dict impossible, since result won't have this key.

To solve this issue, I'm using `Counter` object (instead of standard dict), which sums `added` and `updated`.

For `not_found` I decided that it would make sense to aggregate data instead of only showing counter
(since it should be useful to know what wasn't imported).
@xbgmsharp xbgmsharp merged commit a258d04 into xbgmsharp:master Dec 16, 2024
@xbgmsharp
Copy link
Owner

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants