mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-24 12:43:06 +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",
|
||||||
"windows_phone",
|
"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 = {
|
SYNC_DEVICE_HEADERS = {
|
||||||
"X-Plex-Provides": "sync-target",
|
"X-Plex-Provides": "sync-target",
|
||||||
"X-Plex-Platform": "iOS",
|
"X-Plex-Platform": "iOS",
|
||||||
|
|
|
@ -19,7 +19,7 @@ if __name__ == '__main__':
|
||||||
device.delete()
|
device.delete()
|
||||||
|
|
||||||
# Remove the test sync client
|
# 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():
|
for device in plex.myPlexAccount().devices():
|
||||||
if device.clientIdentifier == sync_client_identifier:
|
if device.clientIdentifier == sync_client_identifier:
|
||||||
print('Removing device "%s", with id "%s"' % (device.name, device. clientIdentifier))
|
print('Removing device "%s", with id "%s"' % (device.name, device. clientIdentifier))
|
||||||
|
|
Loading…
Reference in a new issue