Skip to content

Commit

Permalink
Metadata: Pass the inetref to Title/Subtitle searches when we have it.
Browse files Browse the repository at this point in the history
This allows for recording rules which the user has verieifed to be a particular inetref to propagate the value to recordings, and thus for lookups against them to have correctly matched titles every time.
  • Loading branch information
Robert McNamara committed Jul 3, 2011
1 parent ae459c4 commit 9af5a24
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 10 additions & 2 deletions mythtv/libs/libmythmetadata/metadatadownload.cpp
Expand Up @@ -531,8 +531,16 @@ MetadataLookupList MetadataDownload::handleRecordingUndetermined(
args.append(QString("-M"));
}

QString title = lookup->GetTitle();
args.append(ShellEscape(title));
if (!lookup->GetInetref().isEmpty())
{
QString inetref = lookup->GetInetref();
args.append(ShellEscape(inetref));
}
else
{
QString title = lookup->GetTitle();
args.append(ShellEscape(title));
}

if (!lookup->GetSubtitle().isEmpty())
{
Expand Down
3 changes: 3 additions & 0 deletions mythtv/libs/libmythmetadata/metadatafactory.cpp
Expand Up @@ -86,6 +86,9 @@ void MetadataFactory::Lookup(ProgramInfo *pginfo, bool automatic,
lookup->SetHost(gCoreContext->GetMasterHostName());
lookup->SetTitle(pginfo->GetTitle());
lookup->SetSubtitle(pginfo->GetSubtitle());
lookup->SetSeason(pginfo->GetSeason());
lookup->SetEpisode(pginfo->GetEpisode());
lookup->SetInetref(pginfo->GetInetRef());

if (m_lookupthread->isRunning())
m_lookupthread->prependLookup(lookup);
Expand Down

0 comments on commit 9af5a24

Please sign in to comment.