Giter VIP home page Giter VIP logo

plex_debrid's People

Contributors

codevski avatar itstoggle avatar kacecottam avatar kamalf avatar kana2001 avatar maspuce avatar mcorcoran avatar murmiration avatar piratsch avatar themegaphoenix 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  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  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  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  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

plex_debrid's Issues

Wont recognize requests

I installed requests but the script keeps asking for it
image
image

I reinstalled python and restarted my computer multiple times, but that's about the extent of my troubleshooting knowledge.

Plex library not refreshed

The script successfully detects when an item has been added to the watchlist. It also correctly matches the media and requests it on the debrid service. However, I don't think the request to refresh the library is working correctly. I've reproduced this bug quite a few times -- I have to rescan the library from Plex UI.

I wonder if this is due to a race condition? Perhaps the refresh instruction is sent before the media is ready to be indexed.

RealDebrid issues

Hey, since the last time I got the script to work I've had quite a few issues;

  1. Any time I would add something to the watchlist, it scrape, download, and I'd be able to watch it but it kept erroring out saying either the plex transcoder crashed or that I don't have good enough internet connection (100d/60u) and most of the time it did play, the video would just be a smeary mess. I tried different indexers, and I doubt that was it but it did improve the scraping time. I also tried both on my desktop and phone and it's about the same, smeary mess and dies after maybe 10 seconds.

  2. Since then I left it for a few days as I didn't have time to mess around with it, but now that I've come back to it I got a real-debrid error 8, essentially saying I have a bad token. (removed id just to be safe idk)
    image
    image

Did the token expire or did I get banned? This genuinely makes no sense to me anymore.
Also just to mention, I got a refund and used your referral code, hope you got some free days :)

Issues scraping indexers from jackett

Hi there, here is the snip of the errors i a m getting when only jackett scraper is enabled. I have no issues using the default scrapers. Let me know if you need anything else. I am using a windows 10 machine.
image

Jackett as an indexer/scraper

https://github.com/Murmiration/plex_rd-jackett

Have you seen this fork of your project? You seem to have interacted with the dev at some point. I am experimenting with Jackett right now too in some way, managed to get an instance of it running remotely on a Heroku dyno and I'm trying to integrate its API to control my debrid services, instead of having to use the arr apps (Sonarr, Radarr etc) which require downloading content/hoarding and running everything 24/7 on a home server.

Missing permissions

Sorry for spamming the issues but eh, what can you do...

The script doesn't have permissions to access settings.json
image

This one I genuinely don't know how to fix, because if I open an admin cmd it will say it's missing modules but if I right click and open with python it doesn't have permissions, unless this is something completely different.

suggestion: rate limiting

Some sort of rate limit seems to be needed, got an error on realdebrid: too many connections.
If the watchlist is large (500+) it should maybe be split up in smaller iterations and / or rate limited to x queries per minute or something in order not to get IP blacklisted.

Issues in script

Hi, and first of all, thank you so much for creating this fantastic project. The script I am trying to add to my plex server failed while I was trying to run it. I am a complete beginner with this project. I am done with mounting a real debris through rclone but still unable to get this script run. I am using Python3 latest, and the script gives me an error on line 91. Could you please help me here, also rClone is not cloning properly on my server with the clone mount parameters you mentioned. I am. Having4 core, 8G RAM server with 200G SSD with a network port of 200 Mbps.

Jellyfin or Jellyseerr Support?

hey itsToggle!

I just wanted to ask about Jellyfin compatibility since Jellyfin is FOSS and runs quite similarly to Plex.
At the moment, I can use plex_debrid to get the files and then use Jellyfin to play them, but I'd rather get rid of the middle man and simply use Jellyfin, Jellyseerr [https://hub.docker.com/r/fallenbagel/jellyseerr], and plex_debrid. I don't care as much for the Plex reccommended section but I would love to have Jellyfin support!

Thanks so much for your great work on this cohesive software!

Quality Filters to be used while scraping

If we can set the quality filter like the minimum the scraper can fetch is 720p and maximum 1080p or 1440p in the filter would be great instead of filters based on sizes. Size filter is not useful in the cases where episodes with variable duration will vary in sizes too, effectively meaning missing out on those one.

Cannot connect to plex

Hi

I've tried to install the rclone.exe on windows and nothing loaded, and i got plex_rd working, which is saying cannot reach plex even tho i have it on the same server, Any ideas to get rclone installed and for it to access my plex? Im using windows server 2012 :-)

Scraping Doesn't Work with Overseerr Sync and Prowlarr

Hello again! I decided to take my day out and get plex_debrid working on my Mac. However, after setting up everything I wanted, every type of scraping fails. It simply gives these errors before anything takes place. I've tried my best to figure out what's wrong but I have no clue at the moment.

2022-08-03 15:56:21.960399] scraping sources for query "pirates.of.the.caribbean.dead.men.tell.no.tales.2017" ... Exception in thread Thread-2:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "plex_rd.py", line 2516, in scrape
result[index] = cls(query)
File "plex_rd.py", line 2458, in new
response = scraper.prowlarr.session.get(url,headers=headers)
File "/Users/hassaanali/Library/Python/3.8/lib/python/site-packages/requests/sessions.py", line 542, in get
return self.request('GET', url, **kwargs)
File "/Users/hassaanali/Library/Python/3.8/lib/python/site-packages/requests/sessions.py", line 515, in request
prep = self.prepare_request(req)
File "/Users/hassaanali/Library/Python/3.8/lib/python/site-packages/requests/sessions.py", line 443, in prepare_request
p.prepare(
File "/Users/hassaanali/Library/Python/3.8/lib/python/site-packages/requests/models.py", line 318, in prepare
self.prepare_url(url, params)
File "/Users/hassaanali/Library/Python/3.8/lib/python/site-packages/requests/models.py", line 392, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '/api/v1/search?query=pirates.of.the.caribbean.dead.men.tell.no.tales.2017&type=search&limit=1000&offset=0': No scheme supplied. Perhaps you meant http:///api/v1/search?query=pirates.of.the.caribbean.dead.men.tell.no.tales.2017&type=search&limit=1000&offset=0?
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "plex_rd.py", line 2545, in run
element.download(library=library)
File "plex_rd.py", line 343, in download
self.Releases += scraper(self.query())
File "plex_rd.py", line 2240, in new
scraped_releases += result
TypeError: 'NoneType' object is not iterable

Multi-Season packs are not prefered

When downloading very old shows, releases are popular that contain more than one season. This is currently not prefered inside the scraper and leads to missing episodes or missing seasons.

Trakt Problem?

Just downloaded the new one and i added my Trakt username and did the auth code but its coming up with errors
error

The scripts great, I've used it a lot, Think i've tired it out lol

Error when items with special characters are in Trakt Watchlist

I get the following error when I have the show "Rap Sh!t" in my Trakt watchlist. I believe the exclamation point is causing the error.

Exception in thread Thread-1312:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 980, in _bootstrap_inner
self.run()
File "/opt/homebrew/Cellar/[email protected]/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "/Volumes/external/plex_rd.py", line 2495, in run
if plex_watchlist.update() or overseerr_requests.update() or trakt_watchlist.update():
File "/Volumes/external/plex_rd.py", line 815, in update
for element in watchlist_shows:
TypeError: 'NoneType' object is not iterable

Editing show menu on startup setting crashes the script

Hello.
I was attempting to edit the setting not to show menu on startup (inputs are 2411 the last '1' causes the crash) but when you attempt to edit it the script crashes with this traceback:

Traceback (most recent call last):
File "/home/rom/plex_rd.py", line 2304, in
ui.run()
File "/home/rom/plex_rd.py", line 2272, in run
ui.options()
File "/home/rom/plex_rd.py", line 2221, in options
option.input()
File "/home/rom/plex_rd.py", line 1750, in input
func()
File "/home/rom/plex_rd.py", line 2200, in settings
setting.input()
File "/home/rom/plex_rd.py", line 1787, in input
clipboard.copy(getattr(self.cls,self.key))
File "/home/rom/.local/lib/python3.10/site-packages/pyperclip/init.py", line 659, in lazy_load_stub_copy
return copy(text)
File "/home/rom/.local/lib/python3.10/site-packages/pyperclip/init.py", line 336, in call
raise PyperclipException(EXCEPT_MSG)
pyperclip.PyperclipException:
Pyperclip could not find a copy/paste mechanism for your system.
For more information, please visit https://pyperclip.readthedocs.io/en/latest/index.html#not-implemented-error

OS is arch-linux but the same error also happens on freebsd

Would be happy to give more info if required.

duplicate downloads for newly watchlisted content

sometimes the script doesnt recognize media content as already downloaded and tries to download it again (multiple times).

This seems to occur when a plex library refresh does not find the media content, but im not entirely sure when and how this happens.

Will try to fix this asap

docker unable to connect to localhost

hi just trying out the dockerized version of plex debrid unable to get it to work
after the initial setup when i choose run it says unable to connect to localhost:32400 or the plex library is really empty

Crashing after running for a while, macOS Monterey

Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "plex_rd.py", line 1712, in run
element.download(library=library)
File "plex_rd.py", line 328, in download
self.Seasons = self.uncollected(library)
File "plex_rd.py", line 303, in uncollected
Seasons.remove(season)
ValueError: list.remove(x): x not in list
^CTraceback (most recent call last):
File "plex_rd.py", line 2347, in
ui.run()
File "plex_rd.py", line 2315, in run
ui.options()
File "plex_rd.py", line 2248, in options
option.input()
File "plex_rd.py", line 1774, in input
func()
File "plex_rd.py", line 1751, in run
text = input("")

Reset to default

Hi mate, thanks for creating this wonderful tool. Is there a way to reset all the settings of the script to default? I was playing with scrapers/sort releases etc and would like to know how to reset it back to default. Thanks again.

(solved) No Releases are addes since newest update

Hi :)

Ever since I updated to the newest version, no releases are added (even when many are found).
Release sorting settings:

"Release sorting":[
            [
                "(1080|720|480)(?=p|i)",
                "title",
                "number",
                "1"
            ],
            [
                "(.*)",
                "wanted",
                "number",
                "1"
            ],
            [
                "(.*)",
                "unwanted",
                "number",
                "0"
            ],
            [
                "(1337x)",
                "source",
                "text",
                "0"
            ],
            [
                "(EXTENDED|REMASTERED)",
                "title",
                "text",
                "1"
            ],
            [
                "(h.?265|x.?265)",
                "title",
                "text",
                "1"
            ],
            [
                "(.*)",
                "title_deviation",
                "number",
                "0"
            ],
            [
                "(.*)",
                "size",
                "number",
                "0"
            ]
        ]

Any Ideas on what's going on here?

Don't add "SAMPLE" files

Not sure if your script handles the part of selecting which files of the torrents to download.

It would be nice if files containing "SAMPLE" in the title could be excluded (as they show up as movies...)

Thank you!

plex rediscovering already downloaded content

When mounting realdebrid with the rclone fork aswell as the official rclone software, it seems as though Plex re-discovers some content when the download link is re-generated by rclone - putting it at the top of the "recently added" list. This is not an issue persay, but it's not pretty either.

Download fails 'object has no attribute 'id''

Hi!

I often get the following error when the script tries to download tv series:

Exception in thread Thread-127:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/script/plex_rd.py", line 1313, in download
    result[index] = cls.download(library=library,parentReleases=parentReleases)
  File "/script/plex_rd.py", line 347, in download
    if not self.debrid_download():
  File "/script/plex_rd.py", line 381, in debrid_download
    if not debrid.download(self,stream=False):
  File "/script/plex_rd.py", line 714, in download
    if service.download(element,stream=stream,query=query,force=force):
  File "/script/plex_rd.py", line 868, in download
    debrid.realdebrid.post('https://api.real-debrid.com/rest/1.0/torrents/selectFiles/' + str(response.id), {'files':'all'})
AttributeError: 'types.SimpleNamespace' object has no attribute 'id'

Items added to ignore list after release

Is there a way to delay adding items to the ignore list if nothing is found? Sometimes new episodes are scraped right after release, but before a torrent is found and are added to the ignore list. When the torrents are available a few hours later, it doesn't re-scrape. Maybe an option to add a 24 hr delay before adding to the ignore list?

Library refresh for emby and jellyfin

plex_debrid will work with other personal media servers in the future. To make new content available to watch, a library refresh needs to be able to be performed for these services.

Automation Idea

Firstly, I would like to say I am so thankful you are developing this tool! It really is all I needed and it helps me a lot!

Secondly, I would like to request a quality of life feature.

When an user wishes to watch a title, the following process occurs:

  1. Choosing the desired title;
  2. Adding the title to the Wishlist;
  3. Going Back to the home page waiting for the title to appear;
  4. Clicking on the title once again

I believe the user experience would be positively impacted if steps 3 and 4 were somehow automated. That way when clicking on the "Add to Wishlist" button, the selected title would automatically open and play in the video player after a few seconds.

Request: Add support for other debrid providers

Hi, would love to see your projects evolve and support other Debrid providers which offer API access.

Can help test, and maybe implement and might be able to provide temporary API access from my accounts for the following services: Debrid-Link.fr, AllDebrid.com.

I bet many people would also want to see this for Premiumize.me

Links to API:
DL: https://debrid-link.fr/api_doc/v2/introduction

AD:
https://docs.alldebrid.com/#general-informations

Both these services offer Webdav by the way, in contrast to RD and Debrid-Link.fr also seeds content which makes it my current favorite and compatible with private trackers.

Virtual disk disappeared

Hi.

It worked for me for a short time, then the disc disappeared.. I don't know what the problem is. I applied the steps correctly.. My system is Windows 11.. What do you think the problem is?

Sort releases by the number of seeders

First off I want to say this is a great scripts and is quite use-full but I have ran into the issue of the script picking torrents with 1 or 2 seeders hence it taking a while to download my movies. I have Jackett setup and when I manually search for a movie it brings up multiple torrents with tons of seeders so I'm left to assume its something to do with the script

Multiple Versions

Add functionality to add multiple versions of a movie/show. E.g. HDR and an SDR versions or 2160p and 1080p versions

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.