Giter Club home page Giter Club logo

plexmedia-downloader's People

Contributors

alex-phillips avatar codedninja avatar nathanperier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

plexmedia-downloader's Issues

NotADirectoryError: [WinError 267] The directory name is invalid

Getting the following error because it's trying to create a folder with ":" in the name.
using --original-filename does not help. any way around this?

Found 1 servers
Getting urls of content to download.
Found 1 media content to download
Directories don't exists, creating folders
Traceback (most recent call last):
File "E:\plexmedia-downloader\main.py", line 303, in
plex.command_line()
File "E:\plexmedia-downloader\main.py", line 295, in command_line
self.download()
File "E:\plexmedia-downloader\main.py", line 228, in download
os.makedirs(content['folder'])
File "", line 225, in makedirs
NotADirectoryError: [WinError 267] The directory name is invalid: 'Christopher Columbus: The Discovery'

Please update the script for Python 3.

Hi there. Please update the script for python3 so that I can use it.
$ python3 main.py -u [email protected] -p password "url"

Traceback (most recent call last):
File "/home/chris/plexmedia-downloader/main.py", line 303, in
plex.command_line()
File "/home/chris/plexmedia-downloader/main.py", line 294, in command_line
self.parse_url(args.url)
File "/home/chris/plexmedia-downloader/main.py", line 257, in parse_url
self.server_hash = fragment[2]
IndexError: list index out of range

Tried on python 2 and got the following error.

$ python main.py -u [email protected] -p password "url"

File "main.py", line 28
**self.headers,
^
SyntaxError: invalid syntax

Btw, my OS is Ubuntu 21.04.

login failure: KeyError: 'error'

login fails and it appears this is the culprit:

    def login(self):
        # [...]
        if r.status_code != 200:
            print(r.json()["error"])
            quit(1)

It worked when I changed the status code to 201. Status code for successful login must have changed from previously 200. I recommend to change this to assume success on all 2xx status codes.

Syntax error

Hi,

I'm getting syntax errors with the latest release:

python main.py -u REDACTED -p REDACTED --original-filename 'https://app.plex.tv/URL/TO/MEDIA/...'

File "main.py", line 28
**self.headers,
^

File "main.py", line 56
'X-Plex-Token': self.user['authToken']
^

File "main.py", line 80
'X-Plex-Token': self.server["access_token"]
^

pip install -r requirements.txt
Requirement already satisfied: requests==2.24.0 in /home/kasper/.local/lib/python3.8/site-packages (from -r requirements.txt (line 1)) (2.24.0)
Requirement already satisfied: tqdm==4.51.0 in /home/kasper/.local/lib/python3.8/site-packages (from -r requirements.txt (line 2)) (4.51.0)
Requirement already satisfied: urllib3==1.25.10 in /home/kasper/.local/lib/python3.8/site-packages (from -r requirements.txt (line 3)) (1.25.10)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/lib/python3/dist-packages (from requests==2.24.0->-r requirements.txt (line 1)) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests==2.24.0->-r requirements.txt (line 1)) (2020.6.20)
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3/dist-packages (from requests==2.24.0->-r requirements.txt (line 1)) (2.10)

script is running on WSL2.

Feature Request: Original File Name

Was wondering if this would be possible to implement. Currently naming is based on the show & episode title, but it would be nice to have the option to keep the original file name that is present in the file media info through plex for sorting. Thank you for considering.

Not pulling from Libs

Hello,
I am trying this out and showed it my server. It see's my server and shares but is stuck on working with the green orb next to the names pulsing. Should I just leave it for a few hrs? I let it go for an hour but nada.

Btw this is on the unraid server.

KeyError: 'address'

Getting this.

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

Hopefully someone with knowledge can look into it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.