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

Implemented: Remove a playback (progress) item. #54

Merged
merged 3 commits into from
Feb 15, 2017
Merged

Implemented: Remove a playback (progress) item. #54

merged 3 commits into from
Feb 15, 2017

Conversation

sharkykh
Copy link
Contributor

@sharkykh sharkykh commented Feb 13, 2017

[recreated #53 from a clean slate]

I noticed that remove a playback item was not yet implemented, so I implemented it myself.
It might not be the best code or way to accomplish that,
but it's working, and that's something.

Usage is:
Trakt['sync/playback'].delete_progress(pbid)
Trakt['sync/playback'].delete(pbid)

pbid being the playback id you get from Trakt['sync/playback'].get()

If improvements are needed, the are very welcome.

P.S. I also made a script to test use this..
https://github.com/sharkykh/TraktPlaybackProgressManager

@coveralls
Copy link

coveralls commented Feb 13, 2017

Coverage Status

Coverage decreased (-0.08%) to 83.416% when pulling 6fee31d on sharkykh:sync-playback-delete-method into 2b6bfd3 on fuzeman:master.

@sharkykh sharkykh changed the title Implemented the option to remove a playback (progress) item. Implemented: Remove a playback (progress) item. Feb 13, 2017
@coveralls
Copy link

coveralls commented Feb 14, 2017

Coverage Status

Coverage increased (+0.04%) to 83.54% when pulling fe5fa9a on sharkykh:sync-playback-delete-method into 2b6bfd3 on fuzeman:master.

Copy link
Owner

@fuzeman fuzeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution 😄, please see my inline comment.

@@ -16,3 +16,10 @@ def episodes(self, store=None, **kwargs):
store,
**kwargs
)

@authenticated
def delete_progress(self, playbackid, **kwargs):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this method? couldn't the delete method be used directly?

@coveralls
Copy link

coveralls commented Feb 15, 2017

Coverage Status

Coverage increased (+0.03%) to 83.526% when pulling 68e2959 on sharkykh:sync-playback-delete-method into 2b6bfd3 on fuzeman:master.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 83.526% when pulling 68e2959 on sharkykh:sync-playback-delete-method into 2b6bfd3 on fuzeman:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 83.526% when pulling 68e2959 on sharkykh:sync-playback-delete-method into 2b6bfd3 on fuzeman:master.

@coveralls
Copy link

coveralls commented Feb 15, 2017

Coverage Status

Coverage increased (+0.03%) to 83.526% when pulling 68e2959 on sharkykh:sync-playback-delete-method into 2b6bfd3 on fuzeman:master.

@sharkykh
Copy link
Contributor Author

Thanks for your comment. I guess we don't need it.
I tried to do that at the very beginning and for some reason
I couldn't find the working solution, but now I got it working.
See latest commit.

Copy link
Owner

@fuzeman fuzeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍, preparing new release now.

@fuzeman fuzeman merged commit 68e2959 into fuzeman:master Feb 15, 2017
@fuzeman
Copy link
Owner

fuzeman commented Feb 15, 2017

Released in v2.13.0

@sharkykh sharkykh deleted the sync-playback-delete-method branch February 16, 2017 03:53
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.

3 participants