[mythtv-commits] Ticket #12277: Metadata collection always fails for Manual Record rules
MythTV
noreply at mythtv.org
Sun Oct 8 06:48:12 UTC 2017
#12277: Metadata collection always fails for Manual Record rules
------------------------------------------------+--------------------------
Reporter: Steve Erlenborn <simon.sinister@…> | Owner: pbennett
Type: Patch - Bug Fix | Status:
| infoneeded
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version:
| 0.27-fixes
Severity: medium | Resolution:
Keywords: metadata manual record | Ticket locked: 0
------------------------------------------------+--------------------------
Comment (by simon.sinister@…):
The problem with your test is that "Hannibal" is not unique enough. You
can see this by running the python script which retrieves metadata by
hand.
{{{
/usr/share/mythtv/metadata/Television/ttvdb.py -l en -a US -M "Hannibal"
<?xml version='1.0' encoding='UTF-8'?>
<metadata>
<item>
<language>en</language>
<title>Hannibal</title>
<inetref>259063</inetref>
<collectionref>259063</collectionref>
<description>Both a gift and a curse, Will Graham has the
extraordinary ability to think like his prey—he sees what they see, feels
what they feel. But while Graham is pursuing an especially troubling,
cannibalistic murderer, Special Agent Jack Crawford teams him with a
highly respected psychiatrist – a man with a taste for the criminal minded
– Dr. Hannibal Lecter.</description>
<releasedate>2013-04-04</releasedate>
<images>
<image type="banner"
url="http://www.thetvdb.com/banners/graphical/259063-g.jpg"
thumb="http://www.thetvdb.com/banners/_cache/graphical/259063-g.jpg"/>
</images>
</item>
<item>
<language>en</language>
<title>Hannibal: Rome's Worst Nightmare</title>
<inetref>328938</inetref>
<collectionref>328938</collectionref>
<description>It is 200 years before the birth of Christ and Rome is
the new superpower of the ancient world. She believes she is invincible -
but one man is destined to change that. He is a man bound by oath to
avenge the wrongs inflicted on his home and, in pursuit of revenge, he
will stop at nothing. Hannibal explores the man behind the myth, revealing
what drove the 26-year-old to mastermind one of the most audacious
military moves in history. With 40,000 soldiers and 37 elephants, he
marched 1,500 miles to challenge his enemies on their own soil. It was an
act so daring that few people believed it possible.</description>
<releasedate>2007-05-26</releasedate>
</item>
<item>
<language>en</language>
<title>Why? With Hannibal Buress</title>
<inetref>295988</inetref>
<collectionref>295988</collectionref>
<description>“Why? With Hannibal Buress” celebrates Buress’
hilariously brilliant off-beat voice and point-of-view. If it’s in the
zeitgeist, Buress will address it, providing his unique perspective on
each week’s topic, answering the burning questions on his mind through
stand-up, filmed segments, man-on-the-street interviews and special, in-
studio guests. “Why? With Hannibal Buress” will be a weekly, half-hour
series shot in front of a studio audience and each episode will tape the
same week it airs. The series is executive produced by Buress, Jeff
Stilson (“The Chris Rock Show,” “Da Ali G Show”) and Dave Becky of 3 Arts
Entertainment.</description>
<releasedate>2015-07-08</releasedate>
<images>
<image type="banner"
url="http://www.thetvdb.com/banners/graphical/295988-g.jpg"
thumb="http://www.thetvdb.com/banners/_cache/graphical/295988-g.jpg"/>
</images>
</item>
</metadata>
}}}
As you can see above, the phrase "Hannibal" matches three different TV
series: "Hannibal", "Hannibal: Rome's Worst Nightmare", and "Why? With
Hannibal Buress".
Without my patch, the MythTv backend would execute :
{{{
/usr/share/mythtv/metadata/Television/ttvdb.py -l en -a US -M "Hannibal
(Manual Record)"
}}}
which returns no matches at all.
The automatic lookup of metadata only works well when the title of the
recording matches a single series. I do wish that an exact match on the
title would take precedence over partial matches. If a title string
matches 3 possible solutions, but one of them is an exact match, then the
metadata for the exact match should be selected. However, that would best
be addressed in a separate ticket.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12277#comment:10>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list