plex_debrid icon indicating copy to clipboard operation
plex_debrid copied to clipboard

Empty library error

Open joelstitch opened this issue 1 year ago • 38 comments

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.

joelstitch avatar Jan 23 '24 00:01 joelstitch

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."

skearney414 avatar Jan 23 '24 21:01 skearney414

I got it working. Thanks.

joelstitch avatar Jan 24 '24 06:01 joelstitch

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 avatar Jan 24 '24 07:01 kent-chan-dev

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

kent-chan-dev avatar Jan 24 '24 07:01 kent-chan-dev

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

skearney414 avatar Jan 24 '24 19:01 skearney414

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

skearney414 avatar Jan 24 '24 19:01 skearney414

[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 avatar Jan 29 '24 21:01 jresende7

[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 avatar Jan 29 '24 21:01 jresende7

Anyone ?

jresende7 avatar Jan 30 '24 20:01 jresende7

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

skearney414 avatar Jan 30 '24 21:01 skearney414

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.

kent-chan-dev avatar Jan 30 '24 23:01 kent-chan-dev

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.

PirateSchmirate avatar Feb 07 '24 20:02 PirateSchmirate

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

joelstitch avatar Feb 07 '24 21:02 joelstitch

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

PirateSchmirate avatar Feb 09 '24 14:02 PirateSchmirate

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

joelstitch avatar Feb 09 '24 15:02 joelstitch

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.

PirateSchmirate avatar Feb 09 '24 20:02 PirateSchmirate

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.

joelstitch avatar Feb 09 '24 20:02 joelstitch

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 avatar Feb 09 '24 21:02 PirateSchmirate

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

PirateSchmirate avatar Feb 09 '24 21:02 PirateSchmirate

You have to add the movie to the normal watchlist specifically

joelstitch avatar Feb 09 '24 21:02 joelstitch

You have to add the movie to the normal watchlist specifically

Attempted but still no luck :/

image

PirateSchmirate avatar Feb 10 '24 14:02 PirateSchmirate

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?

joelstitch avatar Feb 10 '24 14:02 joelstitch

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

PirateSchmirate avatar Feb 10 '24 15:02 PirateSchmirate

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 avatar Feb 10 '24 15:02 joelstitch

I think you might have mounted the folder.

joelstitch avatar Feb 10 '24 15:02 joelstitch

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 ;)

PirateSchmirate avatar Feb 10 '24 15:02 PirateSchmirate

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

joelstitch avatar Feb 10 '24 15:02 joelstitch

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

joelstitch avatar Feb 10 '24 15:02 joelstitch

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

image

PirateSchmirate avatar Feb 10 '24 15:02 PirateSchmirate

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

PirateSchmirate avatar Feb 10 '24 15:02 PirateSchmirate