-
Notifications
You must be signed in to change notification settings - Fork 200
Sync support #282
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
Merged
Merged
Sync support #282
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
5432876
[sync] initial commit
andrey-yantsen edfe9d5
fix populating of `state` field in sync.Status
andrey-yantsen 05bd225
[connection] add posibliity to return first established connection fa…
andrey-yantsen 3f9673c
[base] add timeout argument to PlexObject.fetchItems()
andrey-yantsen 1fa3dc4
[sync] add timeout arg to SyncItem.getMedia()
andrey-yantsen 6051a8a
[sync] fix marking media as downloaded
andrey-yantsen 5ec0a42
[sync] pass clientIdentifier to created SyncItem()
andrey-yantsen 1f11bdf
[sync] override __repr__() for sync.Status
andrey-yantsen cd2849e
fix after @mikes-nasuni`s review
andrey-yantsen afbf45c
fix python2 compatibility
andrey-yantsen 34296c7
get rid of sync.init()
andrey-yantsen 57f68ac
use list comprehension
andrey-yantsen 59af01d
remove timeout from PlexObject.fetchItems()
andrey-yantsen 5860e2c
fix SyncItem under python 2.7
andrey-yantsen 9383ed0
fix __doc__ in sync module
andrey-yantsen 7fb616e
revert myplex._connect() back to it`s original state
andrey-yantsen 2f534dd
improve sync docs
andrey-yantsen 10226e1
get rid of PlexObjects where not needed
andrey-yantsen 1297724
add X-Plex-Sync-Version=2 to headers
andrey-yantsen 2be3f5c
add sync() method into Video, LibrarySection and MyPlexAccount
andrey-yantsen ef95e01
add SyncItem.delete()
andrey-yantsen e69df4d
add sync.Policy.create()
andrey-yantsen 4590adc
use self._default_sync_title instead of _prettyfilename as default title
andrey-yantsen a46a4aa
let the tests begin
andrey-yantsen f9c881b
add items for refreshing synclists to PlexServer
andrey-yantsen a811772
fix sync tests
andrey-yantsen 9971435
sync for everybody!
andrey-yantsen 5a147f8
add TODO doctring for Audio._defaultSyncTitle()
andrey-yantsen 98d93d3
SyncItems tag may be presented only once, there is no need for loop
andrey-yantsen 24c974f
add more TODO docstrings
andrey-yantsen e82e7d7
hello docs
andrey-yantsen ee867f5
remove relative import
andrey-yantsen 462a16d
remove unused variable from tests/test_sync.py
andrey-yantsen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added this because it doesn't require anything from the client, it just reports to the server the we can work with Sync. Basically without this header you can't add new SyncItems.