plexmedia-downloader icon indicating copy to clipboard operation
plexmedia-downloader copied to clipboard

KeyError: 'address'

Open LampPrinter opened this issue 2 years ago • 7 comments

Getting this.

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

Hopefully someone with knowledge can look into it.

LampPrinter avatar Apr 15 '23 22:04 LampPrinter

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

cgmckeever avatar Apr 16 '23 13:04 cgmckeever

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'

LampPrinter avatar Apr 16 '23 20:04 LampPrinter

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
``

cgmckeever avatar Apr 17 '23 18:04 cgmckeever

Any progress?

LampPrinter avatar May 19 '23 22:05 LampPrinter

Bumping again. Hoping somebody fixes this. @cgmckeever

LampPrinter avatar Sep 21 '23 20:09 LampPrinter

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 avatar Sep 24 '23 00:09 cgmckeever

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

cgmckeever avatar Oct 02 '23 14:10 cgmckeever