GetEpisodesByActor Issues
#1
Question 
Hey Everyone,

I've been at this for the past 2 days and maybe its mixture of my rusty coding skills, or perhaps something else is the culprit. I'm trying to allow my search feature to search for an actor, and return the episodes (not just the tv show). I see there's a function GetEpisodesByActor(..) so I tried using that with no luck. So placed the code into the following area:

GUIWindowVideoNav.cpp
Code:
void CGUIWindowVideoNav::DoSearch(const CStdString& strSearch, CFileItemList& items)
{
...
m_database.GetEpisodesByActor(strSearch, tempItems);
AppendAndClearSearchItems(tempItems, "[" + strActor + " - " + g_localizeStrings.Get(20359) + "] ", items);

When I run this function, it invokes the GetEpisodesByWhere function and exits when it reaches:

Code:
if (iRowsFound <= 0)

I used SQL Lite Spy to ensure that I'm searching for the right thing. I've searched for pretty much every actor (case sensitive and case insensitive) and have not received any results. It keeps exiting. Any ideas what I might be doing wrong? Any help would be great. Thank you
Reply

Logout Mark Read Team Forum Stats Members Help
GetEpisodesByActor Issues0