update plex-download.py to use server auth-token instead of account auth-token (#1113)

This commit is contained in:
Ender Tunç 2023-03-10 00:27:30 +00:00 committed by GitHub
parent 0080cc8964
commit 6eee2eed35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,6 +82,6 @@ if __name__ == '__main__':
# We do this manually since we don't want to add a progress to Episode etc
filename = '%s.%s' % (item._prettyfilename(), part.container)
url = item._server.url('%s?download=1' % part.key)
filepath = utils.download(url, token=account.authenticationToken, filename=filename, savepath=os.getcwd(),
filepath = utils.download(url, token=item._server._token, filename=filename, savepath=os.getcwd(),
session=item._server._session, showstatus=True)
#print(' %s' % filepath)