Jump to content

I'm trying to get movie and cast from library.db


Go to solution Solved by Luke,

Recommended Posts

robcampbell
Posted

How are the tables linked to view the cast?  

image.png.852104387880b5991b101dc79a3d739a.png

image.png.210ad723256ee6b558269506011a752c.png

image.png.e9ced5b64f6c79dae2f6e8f67e853297.png

Version 4.6.7.0

Is this not possible?
Posted

Hi, yes now take that and join on mediaitems with itemid

robcampbell
Posted

What am I joining?  I am able to id the role, I am trying to the cast member's name.  How am I joining UserDataKey2 to ItemPeople?

image.png.2d15dbe3013793d461ecec30618976ec.png

  • Solution
Posted

This will give you cast, actor name, and media name altogether:

select ItemPeople.*,MediaItemsPeople.Name as PersonName,MediaItemsMedia.Name as MediaName from ItemPeople
join MediaItems MediaItemsPeople on MediaItemsPeople.Id=ItemPeople.PersonId
join MediaItems MediaItemsMedia on MediaItemsMedia.Id=ItemPeople.ItemId
order by MediaName,ListOrder

I constructed this query using the 4.8 beta channel. It should work on 4.6 and 4.7 though I'm pretty sure.

  • Like 1
robcampbell
Posted

Thank you. 

I didn't think to search MediaItems for people's name.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...