Git Product home page Git Product logo

plex_downloader's People

Contributors

dependabot[bot] avatar monschichi avatar pre-commit-ci[bot] avatar pyup-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

plex_downloader's Issues

Video Files Not Downloading Correctly

I have the script running as intended, and it is successfully scanning the files it needs to download. However, the resulting video files are each only 85 bytes in size. Does the script need to be updated to access the video files correctly for download?

Playlist-remove is not working due to Plex API change

--playlist-remove cleanup playlist after downloading

/usr/local/bin/downloader:261: DeprecationWarning: Call to deprecated function or method "removeItem", use "removeItems" instead.
pd.process_playlist(playlist=pl, remove=args.playlist_remove) | 0/1
WARNING:plexapi:Call to deprecated function or method "removeItem", use "removeItems" instead.
video count: 0%| | 0/1
Traceback (most recent call last):
File "/usr/local/bin/downloader", line 261, in
pd.process_playlist(playlist=pl, remove=args.playlist_remove)
File "/usr/local/bin/downloader", line 56, in process_playlist
playlist.removeItem(video)
File "/home/ubuntu/.local/lib/python3.8/site-packages/plexapi/utils.py", line 506, in wrapper
return func(*args, kwargs)
File "/home/ubuntu/.local/lib/python3.8/site-packages/plexapi/playlist.py", line 215, in removeItem
self.removeItems(item)
File "/home/ubuntu/.local/lib/python3.8/site-packages/plexapi/playlist.py", line 237, in removeItems
self._server.query(key, method=self._server._session.delete)
File "/home/ubuntu/.local/lib/python3.8/site-packages/plexapi/server.py", line 667, in query
raise NotFound(message)
plexapi.exceptions.NotFound: (404) not_found; https://
***.plex.direct:42518/playlists/699952/items/None <title>Not Found</title>

404 Not Found

error on asset download

    pd.process_playlist(playlist=playlist, remove=args.playlist_remove)
  File "/.../plex_downloader/downloader.py", line 48, in process_playlist
    self.video_episodes(video=video)
  File "/.../plex_downloader/downloader.py", line 69, in video_episodes
    self.video_parts(video=video)
  File "/.../plex_downloader/downloader.py", line 90, in video_parts
    self.download_pics(video=video, path=path, filename=filename)
  File "/.../plex_downloader/downloader.py", line 106, in download_pics
    self.download(url=video.artUrl, path=path, filename=artfilename, title='thumbnail')
  File "/.../plex_downloader/downloader.py", line 136, in download
    self.curl.perform()
pycurl.error: (33, "HTTP server doesn't seem to support byte ranges. Cannot resume.")
Downloading thumbnail:   1%|โ–Œ                                                                | 1.00/129 [00:00<00:21, 6.08B/s]```

Can't start app

sorry total noob, I'm getting this message:

Traceback (most recent call last):
  File "./downloader.py", line 198, in <module>
    authentication = netrc.netrc().authenticators('plex')
  File "/usr/lib/python3.8/netrc.py", line 30, in __init__
    self._parse(file, fp, default_netrc)
  File "/usr/lib/python3.8/netrc.py", line 104, in _parse
    raise NetrcParseError(
netrc.NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/root/.netrc, line 3)

I'm sure it has to do with how and where I'm setting up the .netrc file?

any help or direction would be appreciated

Download speed

I have 500MB download and 500MB upload speeds.
I'm downloading from a Friend's plex media server, who has 1GB up and down.

However, the download speed is always under 20MB.

My speed test:

   Speedtest by Ookla

     Server: Nitel - Los Angeles, CA (id = 12191)
        ISP: Frontier Communications
    Latency:     4.82 ms   (1.22 ms jitter)
   Download:   473.31 Mbps (data used: 243.1 MB )
     Upload:   494.73 Mbps (data used: 899.3 MB )
Packet Loss:     0.0%

It must be something with the app? Any downloads outside are fine and fast. Running plex_downloader on Ubuntu

Transcoding Download Not Working

EDIT: Issue closed, it appears the cause was a current authentication issue on the Plex end that keeps knocking out server connectivity.

new file download

move download to something new which enables new features:

  • resume downloads
  • limit download rate
  • show download rate

Feature Requests

Thank you for this lovely piece of work.

I have tried to download some stuff from a server I have access to and I have noticed some issues. I would like to make some feature requests if it is possible at all. I have no experience in programming so some of these might be weird. Apologies in advance for that.

  1. A file name filter (with includes and excludes). Example: Do not include if "REMUX" in the file name and log it to a file to review it later.
  2. A size filter ( greater than x or the opposite). Example: Do not download files if over 30 GB and log it to a file to review it later. And if it is possible use it as a file list to download later if I change my mind?
  3. A temporary location (configurable) for downloading files and moving them only after the download is finished. I have noticed you are adding "." in front of the file names but my uploader script swipes all files to my server even if they are 10 MB or so. Those "." files are there because of the failed downloads.
  4. Further logging to examine which files failed and why? I log all output to a file but my playlist consists of 30.000 items and it is a bit difficult to track. I can always rerun the script of course but I would like to know how much bw is wasted?
  5. A decision mechanism for episodes which have multiple files. Example: Tv Show S01E01 has 720p, 1080p and Remux versions. Do not download 720p & Remux ones (based on my choices). I appreciate that not all servers do have those in the filename but some flexibility would be good? This one might be difficult to implicate I get that. This is also linked with the first request as if there are only REMUX files for that episode log it somewhere and give me a chance to download them even if they are all REMUX.

Section parameter

Hi,

I'm trying to download from my friends shared library.

What is the --section parameter? How can I find it for my friends library?

Not sure what to set here, it's required.

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.