Movie list by IMDB

Hi,

I’m working with the PMS API to have a list with all my movies, so I request:

http://192.168.1.39:32400/library/sections/1/all

I get all my movies but I don’t have the IMDB. If I want the imdb, I have to request the movie metadata:

http://192.168.1.39:32400/library/metadata/23

So, if my library has 1000 movies, I have to make 1000 new requests. Obviously it’s slow and inefficient.

Can anybody help me please? Thanks

What you found, is the only way.

And also what I do for my Plex2CSV

Argh!! :((

Thanks @dane22 . I noted Plex use a SQLLite db. Could I access to the file directly via API? Obviously I’m thinking in download a copy or open readonly mode.

just export them. Plex2CSV it’s easy to use :slight_smile:

@lexus232 I’m building a Plex client for iOS and AppleTV. I have to request the library to PMS on the fly and then merge with others media libraries. Plex2CSV it’s awesome, but I need a dynamic solution via API or read the original db.

If it’s a client, then you can’t access the database directly, only via the http api, so you’re kinda out of options, IMHO

then , call the api ,parse it and you should be good to go. @torcelly

@lexus232 said:
then , call the api ,parse it and you should be good to go. @torcelly

And that’s what Plex2CSV does

alright, then :slight_smile:

Heh…Not letting go of you yet…

Why did you want the imdb links in the first place?

And also remember to grab the section in small chunks, to avoid draining the PMS

Thanks dane22. I did a progressive library parse being careful to don’t collapse the server. It’s a very complex solution but I don’t find other. I need the imdb in the first place because the plex media server library will be merged with others libraries and I don’t want duplicate movies.

Carefull here…

Since you in different libraries can have different primary agents, you could end up with some matched towards imdb, and others against other sources, and as such, will be without an IMDB guid

Dealt with this issue in below:

github.com/ukdtom/plex2csv.bundle/issues/107

/T

And still doesn’t grasp, why you simply doesn’t use Plex2CSV :wink:
That could generate a list of both the source and the target library, so all you needed was to compare those lists.