Closed razzamatazm closed 2 years ago
Do you have a library shared with anyone else? Probably not. You're probably the only one that has access to your server (you don't share it with someone). That is completely fine, but the script didn't account for that.
Don't worry though, I can fix it easily.
I do share my server with some friends. They don't have direct access - just through the normal plex sharing user thing.
On Mon, Aug 29, 2022 at 3:10 PM Casvt @.***> wrote:
Do you have a library shared with anyone else? Probably not. You're probably the only one that has access to your server (you don't share it with someone). That is completely fine, but the script didn't account for that.
Don't worry though, I can fix it easily.
— Reply to this email directly, view it on GitHub https://github.com/Casvt/Plex-scripts/issues/139#issuecomment-1230917667, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOEFJTUQ4RQRLVWKPMOL43V3UYPBANCNFSM577LI2AA . You are receiving this because you authored the thread.Message ID: @.***>
Oh okay. Even though that was not your problem, I still fixed it.
Could you do the following for me please?
machine_id = _req_cache(ssn, f'{base_url}/')['MediaContainer']['machineIdentifier']
shared_users = ssn.get(f'http://plex.tv/api/servers/{machine_id}/shared_servers').text
result = map(lambda r: r.split('"')[0:3:2], shared_users.split('userID="')[1:])
user_data = tuple(zip(*result)) or ((),())
machine_id = _req_cache(ssn, f'{base_url}/')['MediaContainer']['machineIdentifier']
shared_users = ssn.get(f'http://plex.tv/api/servers/{machine_id}/shared_servers').text
print(shared_users)
result = map(lambda r: r.split('"')[0:3:2], shared_users.split('userID="')[1:])
print(list(map))
user_data = tuple(zip(*result)) or ((),())
REDACTED
.Thanks :)
Hi There -
This worked! Unfortunately when i stuck the other commands in there it didn't work. I may have been tabbing wrong.
Alright the print commands can be removed. Just leave the file "clean". Good to hear it works now :)
I'm moving my intro markers from a baremetal install to a docker install on a separate machine. I ran into this error: