mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 06:04:15 +00:00
Add test to sync client identifier
This commit is contained in:
parent
2a31fe3329
commit
ac549bbd90
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ ENTITLEMENTS = {
|
|||
"windows",
|
||||
"windows_phone",
|
||||
}
|
||||
SYNC_DEVICE_IDENTIFIER = "sync-client-%s" % plexapi.X_PLEX_IDENTIFIER
|
||||
SYNC_DEVICE_IDENTIFIER = "test-sync-client-%s" % plexapi.X_PLEX_IDENTIFIER
|
||||
SYNC_DEVICE_HEADERS = {
|
||||
"X-Plex-Provides": "sync-target",
|
||||
"X-Plex-Platform": "iOS",
|
||||
|
|
|
@ -19,7 +19,7 @@ if __name__ == '__main__':
|
|||
device.delete()
|
||||
|
||||
# Remove the test sync client
|
||||
sync_client_identifier = 'sync-client-%s' % X_PLEX_IDENTIFIER
|
||||
sync_client_identifier = 'test-sync-client-%s' % X_PLEX_IDENTIFIER
|
||||
for device in plex.myPlexAccount().devices():
|
||||
if device.clientIdentifier == sync_client_identifier:
|
||||
print('Removing device "%s", with id "%s"' % (device.name, device. clientIdentifier))
|
||||
|
|
Loading…
Reference in a new issue