Opened 3 years ago

#12887 new Bug Report - General

Billing order is lost in the credits table

Reported by: mythtv@… Owned by:
Priority: minor Milestone: unknown
Component: MythTV - General Version: 0.28.0
Severity: medium Keywords:
Cc: Ticket locked: no

Description

There is no way to order the list of actors in a program to reflect the billing order. I use tv_grab_sd_json and the XML it produces has the actors in billing order but the process of adding them to the credits table removes the order. You can see this clearly in mythweb, just pick any movie.

As a work-around for my purposes I have added a column to credits thus:

alter table credits add column localrank int auto_increment primary key;

I'm not proposing this as the solution but it works for me as the XML from the grabber has the actors in billing order and mythfilldatabase adds them to the credits table in that order. I can get the starts with this query:

select name from credits, people where credits.person = people.person and chanid = CCCC and starttime = SSSS and role = 'actor' order by localrank limit 5;

I don't know what the best solution would be, possibly a rank column (tinyint) and have mythfilldatabase use a counter that increments for every addition to the credits table but the EIT processor would have to be changed too and I don't have a clue what that does. Finally the frontend and mythweb would have to be changed to use the rank.

Change History (0)

Note: See TracTickets for help on using tickets.