Due to enormous amounts of spam, the forum has been set to read-only mode.



Reply to topic  [ 3 posts ] 
Suggestions for moving cast between leading and supporting 
Author Message

Joined: Fri May 16, 2008 2:35 am
Posts: 20
Post Suggestions for moving cast between leading and supporting

Hi guys,

I was playing around with some new explorer templates and noticed some of my contents (mainly TV series) data have most of (if not all) the cast listed under 'leading role'.
I have it set up for 6 leading roles and 999 supporting so I'm not sure why this happened. It's not overly important but I'd like to try to fix it if I can.
What I'd like to know is the best way to re-organise them.

However, it is important to me to maintain the order in which they were downloaded. So, for instance, if there were 9 people listed under 'leading role' I would want those last 3 moved to the TOP of the supporting role list, as opposed to the bottom like when you use the 'move to supporting role' option.
If this can't be done simply enough then, as I said, it's not a big deal and I'll just leave them as is. But I thought I might as well throw up the question just in case.

A bit of searching showed up this sqlupdate thing and I was wondering if that's what I'd be wanting but I don't know anything about it, let alone how to use it.

As a side note, is there a way I can easily identify which records have more than 6 entries under leading roles?

Thanks in advance,
DB


Wed May 16, 2012 12:40 pm
Profile
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: Suggestions for moving cast between leading and supporti

DeaflyBlind wrote:
Hi guys,

I was playing around with some new explorer templates and noticed some of my contents (mainly TV series) data have most of (if not all) the cast listed under 'leading role'.
I have it set up for 6 leading roles and 999 supporting so I'm not sure why this happened. It's not overly important but I'd like to try to fix it if I can.
What I'd like to know is the best way to re-organise them.

However, it is important to me to maintain the order in which they were downloaded. So, for instance, if there were 9 people listed under 'leading role' I would want those last 3 moved to the TOP of the supporting role list, as opposed to the bottom like when you use the 'move to supporting role' option.
If this can't be done simply enough then, as I said, it's not a big deal and I'll just leave them as is. But I thought I might as well throw up the question just in case.

A bit of searching showed up this sqlupdate thing and I was wondering if that's what I'd be wanting but I don't know anything about it, let alone how to use it.

I'm afraid you can't use the SQLUpdate program to do this.

Quote:
As a side note, is there a way I can easily identify which records have more than 6 entries under leading roles?


You can use the SQLUpdate add-on to mark these records:

1. Open the Contents View, and choose Contents => Mark => Unmark all (or press Ctrl+F8). This will unmark all contents records.

2. Download and run http://www.fnprg.com/dl/sqlupdate.exe

3. Click the ... button and select your database file.

4. Run this SQL update query

Code:
UPDATE Contents SET Contents.Marked = TRUE WHERE Contents.ContentsID IN (SELECT CreditsLink.ContentsID FROM Contents INNER JOIN CreditsLink ON Contents.ContentsID = CreditsLink.ContentsID WHERE CreditsLink.RoleType = 1 GROUP BY CreditsLink.ContentsID HAVING(COUNT(CreditsLink.ContentsID) > 6)) 

5. Now, choose List => Marked Records to only show the marked records.

_________________
Fredrik Nordbakke
www.fnprg.com


Fri May 18, 2012 10:45 am
Profile WWW

Joined: Fri May 16, 2008 2:35 am
Posts: 20
Post Re: Suggestions for moving cast between leading and supporti

Thanks for that, Fredrik.

It marked over 1500 :shock: records so they'll be staying as is.

It was mainly just to organise them for easier display on an explorer template but I've just used some ifs and counts to get the desired effect.

Thanks again! :grin:


Sat May 19, 2012 5:42 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.