codedninja / plexmedia-downloader Goto Github PK
View Code? Open in Web Editor NEWOffline download media from Plex Media Server
Offline download media from Plex Media Server
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'
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.
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.
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.
Getting this.
url = self.server["address"]+self.rating_key
~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'address'
Hopefully someone with knowledge can look into it.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.