Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'address' #10

Open
LampPrinter opened this issue Apr 15, 2023 · 7 comments
Open

KeyError: 'address' #10

LampPrinter opened this issue Apr 15, 2023 · 7 comments

Comments

@LampPrinter
Copy link

LampPrinter commented Apr 15, 2023

Getting this.

url = self.server["address"]+self.rating_key
~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'address'

Hopefully someone with knowledge can look into it.

@cgmckeever
Copy link

Did this just start happening from a working setup? Or is this your initial setup?

Just verified that using the latest release with the login patch is still working

https://github.com/codedninja/plexmedia-downloader/pull/9/files

This is my fetch script, where plex pass and user are environment vars

#!/bin/bash

IFSO=$IFS
IFS=$'\n'

LIST="
https://app.plex.tv/desktop/#!/server/rest-of-the-address
"


for url in $LIST
do
    echo ${url: -10}
    python3 main.py -u ${PLEXUSER} -p ${PLEXPASS} $url
done

@LampPrinter
Copy link
Author

I am part of 2 servers. It is working on one and not on another. Any way to debug?

I get this

Logged in as: xxxxxxxx
Found 17 servers
Getting urls of content to download.
Traceback (most recent call last):
  File "/Users/xxxxxxx/Downloads/main.py", line 303, in <module>
    plex.command_line()
  File "/Users/xxxxxxxx/Downloads/main.py", line 295, in command_line
    self.download()
  File "/Users/xxxxxxxx/Downloads/main.py", line 213, in download
    contents = self._get_metadata()
               ^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxxxxxxxx/Downloads/main.py", line 192, in _get_metadata
    url = self.server["address"]+self.rating_key
          ~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'address'

@cgmckeever
Copy link

This sounds like something not configured/parsed right .. I would debug what this variable is and see why its yelling about address (outside it obviously not being there), but it may indicate where the misconfig is

self.server
``

@LampPrinter
Copy link
Author

Any progress?

@LampPrinter
Copy link
Author

LampPrinter commented Sep 21, 2023

Bumping again. Hoping somebody fixes this.
@cgmckeever

@cgmckeever
Copy link

I dont think anyone has looked into it, and it also seems like its not something consistent.
did you try this? Compared across the two installs?

I would debug what this variable is and see why its yelling about address (outside it obviously not being there), but it may indicate where the misconfig is

@cgmckeever
Copy link

@LampPrinter just installed this fresh, on a fresh OS install w/ python ... didnt hit this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants