Add test to sync client identifier

This commit is contained in:
JonnyWong16 2020-12-06 17:35:44 -08:00
parent 2a31fe3329
commit ac549bbd90
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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))