itsToggle / plex_debrid

Plex torrent streaming through Debrid Services
1.51k stars 128 forks source link

Empty library error #628

Open joelstitch opened 9 months ago

joelstitch commented 9 months ago

I got it running on my Synology NAS and set it up with Plex and Trakt but whenever I run plex_debrid and use the RUN option I get this:

[23/01/24 00:37:32] [plex error]: couldnt reach local plex library section '4' at server address: http://192.168.69.111:32400 - or this library really is empty.
[23/01/24 00:37:32] [plex error]: Your library seems empty. To prevent unwanted behaviour, no further downloads will be started. If your library really is empty, please add at least one media item manually.
skearney414 commented 9 months ago

Add something manually, I added a sample mp4 and renamed it in a format plex would see as a movie. You can remove it after. You can also run the scraper option 4 when you launch the python script to manually add an item.

"plex_debrid cannot destinguish between a truly empty library and a library that couldnt be reached because its offline (or not reachable for any other reason). In order to avoid unwanted behaviour, the script simply stops running whenever an empty library is encountered. You will need to manually add at least one media item to the libraries visible by plex_debrid, before the download automation can run savely."

joelstitch commented 9 months ago

I got it working. Thanks.

kent-chan-dev commented 9 months ago

How did you fix the issue? I am geting this error. I've tried localhosst and also the machine IP address.

[24/01/24 07:40:41] [plex error]: couldnt reach local plex library section '1' at server address: http://192.168.1.218:32400 - or this library really is empty. [24/01/24 07:40:41] [plex error]: Your library seems empty. To prevent unwanted behaviour, no further downloads will be started.

kent-chan-dev commented 9 months ago

I also tried to create a dummy file by doing: touch test.mov This did not change anything

skearney414 commented 9 months ago

@kgc35 you need to name it in a format plex will scan and add to library I.e Batman Begins (2005).mp4

skearney414 commented 9 months ago

And don’t touch into the mounted drive, add it to another folder and temporarily add that as a path in your plex library settings

jresende7 commented 9 months ago

[29/01/24 21:46:21] [plex] getting plex library section/s "Filmes RD","Séries RD" ... done [29/01/24 21:46:21] [plex error]: couldnt reach local plex library section '3' at server address: http://192.168.77.147:32400 - or this library really is empty. [29/01/24 21:46:21] [plex error]: Your library seems empty. To prevent unwanted behaviour, no further downloads will be started. If your library really is empty, please add at least one media item manually. [29/01/24 21:46:21] [plex] getting all watchlists ... done

Can someone please help me ?

I´ve manually add files to the folders but i get yhe same error.

jresende7 commented 9 months ago

[29/01/24 21:49:06] [plex] item: "Ferrari" found in Joao_Resende`s watchlist [29/01/24 21:49:06] [plex] getting plex library section/s "Filmes RD","Séries RD" ... done [29/01/24 21:49:06] [plex error]: couldnt reach local plex library section '3' at server address: http://192.168.77.147:32400 - or this library really is empty. [29/01/24 21:49:06] [plex error]: Your library seems empty. To prevent unwanted behaviour, no further downloads will be started. If your library really is empty, please add at least one media item manually.

jresende7 commented 9 months ago

Anyone ?

skearney414 commented 9 months ago

You only have one empty library, the 3rd one you added. Is this folder actually there ? If so add a movie manually in the plex format so plex will see the video

kent-chan-dev commented 9 months ago

Anyone ?

Use option 4 in plex-debrid to download something small. A regular movie is fine 720p. Once that is in your movies library, it will no longer be empty. At that point if setup correctly plex-debrid will begin to find links for other movies in your watchlist.

Keep in mind that this means that your library will need to maintain at least 1 movie in the folder, otherwise you will run into this same issue again.

PirateSchmirate commented 8 months ago

Is there a time frame for how long it should take to pull in content? I'm doing everything on my WIndows 11 comp, not connecting to a NAS, added a single file to each folder that's already recognized from the local storage, and I'm scraping 1337 and torrentio, but I get zilch in either library.

joelstitch commented 8 months ago

Is there a time frame for how long it should take to pull in content? I'm doing everything on my WIndows 11 comp, not connecting to a NAS, added a single file to each folder that's already recognized from the local storage, and I'm scraping 1337 and torrentio, but I get zilch in either library.

It should just take like 30-60 seconds from adding the video file to Plex finding it in the debrid folder

PirateSchmirate commented 8 months ago

Is there a time frame for how long it should take to pull in content? I'm doing everything on my WIndows 11 comp, not connecting to a NAS, added a single file to each folder that's already recognized from the local storage, and I'm scraping 1337 and torrentio, but I get zilch in either library.

It should just take like 30-60 seconds from adding the video file to Plex finding it in the debrid folder

When running, I get the following output with 0 updates:

[09/02/24 09:21:55] [plex] getting all watchlists ... done

joelstitch commented 8 months ago

And you follow the directions for adding your plex account and you added movies to your plex watch list?

PirateSchmirate commented 8 months ago

And you follow the directions for adding your plex account and you added movies to your plex watch list?

I'm going to start from scratch just in case. I'm concerned that my plex token might be wrong.

joelstitch commented 8 months ago

And you follow the directions for adding your plex account and you added movies to your plex watch list?

I'm going to start from scratch just in case. I'm concerned that my plex token might be wrong.

Maybe create a Trakt account, add it to plex debris and add something to your Trakt watch list and see if that works. If it works then it must be something with your plex user or token.

PirateSchmirate commented 8 months ago

And you follow the directions for adding your plex account and you added movies to your plex watch list?

I'm going to start from scratch just in case. I'm concerned that my plex token might be wrong.

Maybe create a Trakt account, add it to plex debris and add something to your Trakt watch list and see if that works. If it works then it must be something with your plex user or token.

Set up Trakt, made a list, added a show and movie, pulled up Plex searched, added to watch list, and Plex_debrid does this, but nothing else: image

Also thank you for responding!

PirateSchmirate commented 8 months ago

And you follow the directions for adding your plex account and you added movies to your plex watch list?

I'm going to start from scratch just in case. I'm concerned that my plex token might be wrong.

Maybe create a Trakt account, add it to plex debris and add something to your Trakt watch list and see if that works. If it works then it must be something with your plex user or token.

Set up Trakt, made a list, added a show and movie, pulled up Plex searched, added to watch list, and Plex_debrid does this, but nothing else: image

Also thank you for responding!

Just in case:

image

joelstitch commented 8 months ago

You have to add the movie to the normal watchlist specifically

PirateSchmirate commented 8 months ago

You have to add the movie to the normal watchlist specifically

Attempted but still no luck :/

image

joelstitch commented 8 months ago

You have to add the movie to the normal watchlist specifically

Attempted but still no luck :/

image

It is getting the watchlist from plex. So what's the issue? Is plex not reading the files in the debrid folder? Did you mount the debrid folder on the plex docker?

PirateSchmirate commented 8 months ago

Plex isn't pulling the content at all after adding anything to the my watchlist. I mounted X:\movies and X:\shows from the rclone to my existing Movies and TV Shows folders, but nothing's actually updating in Plex after trying to add anything:

image

joelstitch commented 8 months ago

Plex debrid is working, from your log it shows it's grabbing the movies. I know some people have this issue and they have to manually add a movie to the debrid service and scan the folder on plex and see if it reads it

joelstitch commented 8 months ago

I think you might have mounted the folder.

PirateSchmirate commented 8 months ago

Should I instead select just X:\ and see if it sorts on its own?

ALso, thank you for your hella fast response and for humouring me ;)

joelstitch commented 8 months ago

I meant I think you might have mounted the folder wrong.

joelstitch commented 8 months ago

Do these steps again:

Mounting realdebrid

1. Install SynoCli-Disktools from the Package Center
2. SSH into your NAS.
3. run these commands:

sudo mkdir -p \~/rclone/config

sudo mkdir -p \~/rclone/cache

4. Run this command but change the location of the config and cache folders with the full location of the folders, so dont use \~. At first not adding the full address of the folders was giving me issues.

docker plugin install itstoggle/docker-volume-rclone\_rd:amd64 args="-v" --alias rclone --grant-all-permissions config=\~/rclone/config cache=\~/rclone/cache

5. run this command and change "your-api-key-here" for your debrid API that can be found here [https://real-debrid.com/apitoken](https://real-debrid.com/apitoken)

docker volume create realdebrid -d rclone -o type=realdebrid -o realdebrid-api\_key=your-api-key-here -o allow-other=true -o dir-cache-time=10s

6. To see if its working run this command but change "/debrid" with the location of the folder you mounted on Plex. Thats at least what I did and it shows the files that have been added through debrid.

docker run --rm -i -v=realdebrid:/debrid busybox find /debrid

Setting up Plex

1. On this step you have to mount the realdebrid folder on the Plex docker container. The way I did it was by stopping the container and using Portainer to add the folder realdebrid as a volume on the Plex docker.
2. open the Plex webUI
3. create a new Plex library for movies, add the folders "/torrents/default" and "/torrents/movies"
4. create a new Plex library for shows, add the folders "/torrents/default" and "/torrents/shows"
5. Recommendation: disable 'video preview thumbnails', disable the scheduled task 'perfom extensive media analysis' to reduce the download traffic
6. Disable the libary setting "Empty trash after every scan", to make sure that no content is removed accidentaly
PirateSchmirate commented 8 months ago

I'm going to try to delete and reset the the rclone config, but this is what I currently have:

image

PirateSchmirate commented 8 months ago

Do these steps again:

Mounting realdebrid

1. Install SynoCli-Disktools from the Package Center
2. SSH into your NAS.
3. run these commands:

sudo mkdir -p \~/rclone/config

sudo mkdir -p \~/rclone/cache

4. Run this command but change the location of the config and cache folders with the full location of the folders, so dont use \~. At first not adding the full address of the folders was giving me issues.

docker plugin install itstoggle/docker-volume-rclone\_rd:amd64 args="-v" --alias rclone --grant-all-permissions config=\~/rclone/config cache=\~/rclone/cache

5. run this command and change "your-api-key-here" for your debrid API that can be found here [https://real-debrid.com/apitoken](https://real-debrid.com/apitoken)

docker volume create realdebrid -d rclone -o type=realdebrid -o realdebrid-api\_key=your-api-key-here -o allow-other=true -o dir-cache-time=10s

6. To see if its working run this command but change "/debrid" with the location of the folder you mounted on Plex. Thats at least what I did and it shows the files that have been added through debrid.

docker run --rm -i -v=realdebrid:/debrid busybox find /debrid

Setting up Plex

1. On this step you have to mount the realdebrid folder on the Plex docker container. The way I did it was by stopping the container and using Portainer to add the folder realdebrid as a volume on the Plex docker.
2. open the Plex webUI
3. create a new Plex library for movies, add the folders "/torrents/default" and "/torrents/movies"
4. create a new Plex library for shows, add the folders "/torrents/default" and "/torrents/shows"
5. Recommendation: disable 'video preview thumbnails', disable the scheduled task 'perfom extensive media analysis' to reduce the download traffic
6. Disable the libary setting "Empty trash after every scan", to make sure that no content is removed accidentaly

I'm not using Docker. This is a plain'ole Windows install

joelstitch commented 8 months ago

Do these steps again:

Mounting realdebrid

1. Install SynoCli-Disktools from the Package Center
2. SSH into your NAS.
3. run these commands:

sudo mkdir -p \~/rclone/config

sudo mkdir -p \~/rclone/cache

4. Run this command but change the location of the config and cache folders with the full location of the folders, so dont use \~. At first not adding the full address of the folders was giving me issues.

docker plugin install itstoggle/docker-volume-rclone\_rd:amd64 args="-v" --alias rclone --grant-all-permissions config=\~/rclone/config cache=\~/rclone/cache

5. run this command and change "your-api-key-here" for your debrid API that can be found here [https://real-debrid.com/apitoken](https://real-debrid.com/apitoken)

docker volume create realdebrid -d rclone -o type=realdebrid -o realdebrid-api\_key=your-api-key-here -o allow-other=true -o dir-cache-time=10s

6. To see if its working run this command but change "/debrid" with the location of the folder you mounted on Plex. Thats at least what I did and it shows the files that have been added through debrid.

docker run --rm -i -v=realdebrid:/debrid busybox find /debrid

Setting up Plex

1. On this step you have to mount the realdebrid folder on the Plex docker container. The way I did it was by stopping the container and using Portainer to add the folder realdebrid as a volume on the Plex docker.
2. open the Plex webUI
3. create a new Plex library for movies, add the folders "/torrents/default" and "/torrents/movies"
4. create a new Plex library for shows, add the folders "/torrents/default" and "/torrents/shows"
5. Recommendation: disable 'video preview thumbnails', disable the scheduled task 'perfom extensive media analysis' to reduce the download traffic
6. Disable the libary setting "Empty trash after every scan", to make sure that no content is removed accidentaly

I'm not using Docker. This is a plain'ole Windows install

Than that's your issue. This whole plex debrid runs on docker. Plex needs to run on docker. I was assuming you were running this on a synology. The guide I wrote is specifically for synology and docker.

PirateSchmirate commented 8 months ago

The Windows guide just above the docker guidance doesn't specify that super clearly. So I need to follow the Windows guidance, then install Docker and follow the Docker guidance?

joelstitch commented 8 months ago

I haven't done it on windows so not sure.

PirateSchmirate commented 8 months ago

I'll see if I can break somethin ;)

joelstitch commented 8 months ago

The Windows guide just above the docker guidance doesn't specify that super clearly. So I need to follow the Windows guidance, then install Docker and follow the Docker guidance?

Just follow the Windows guide. I think the windows guide does not use Docker. The guide I wrote is specifically for Synology NAS and Docker so I can't really help you with windows.

ColtonColton commented 7 months ago

I get the same error message, anyone actually know what to fix?

PirateSchmirate commented 7 months ago

I get the same error message, anyone actually know what to fix?

I started from scratch. Took like 10 minutes to get set back up, but the nuclear option worked for me ;p

My libraries don't refresh as fast as I'd like, but that's probably just some settings with Plex that I need to adjust.

ColtonColton commented 7 months ago

I get the same error message, anyone actually know what to fix?

I started from scratch. Took like 10 minutes to get set back up, but the nuclear option worked for me ;p

My libraries don't refresh as fast as I'd like, but that's probably just some settings with Plex that I need to adjust.

I tried a whole new install of ubuntu, went through the steps all over again with fresh install of everything. Same problems, the one video file i have in my library shows up but wont play and gives me a s1001 network error. Im burnt.