[mythtv-users] Problems with mythmetadatalookup

Larry K lunchtimelarry at gmail.com
Mon May 26 03:11:41 UTC 2014


I am currently running myth 0.26.1 and I need some help/advice with
mythmetadatalookup.  I have this capability enabled on my backend and all
my recording schedules are set to look up metadata. I followed the
instructions at:

http://www.mythtv.org/wiki/Enhancing_Recordings_with_Metadata_Lookup

and part of the time, it works and I get correct season and episode
numbers, along with the artwork.  Recently, I started using Plex to make my
recordings more readily available and more usable from my Android device.
 Using mythlink along with a published enhancement found here:

http://www.mythtv.org/pipermail/mythtv-users/2012-November/343301.html

I am able to create softlinks that include the season and episode
information I need for Plex to work properly.  But this is only as good as
the metadata that is populated in the database for each recording. It seems
that mythmetadatalookup is failing to find season and episode numbers for
many of my recordings, and without this information, the mythlink script
enhancement is largely ineffective.  For example, a recent recording of
"Nurse Jackie" failed to provide proper season/episode information.  Here
is the pertinent information from the mythmetadatalookup log:

2014-05-25 22:47:41.413788 I [4853/4853] CoreContext
mythcorecontext.cpp:375 (ConnectCommandSocket) - MythCoreContext:
Connecting to backend server: 192.168.1.200:6543 (try 1 of 1)
2014-05-25 22:47:41.415751 I [4853/4853] CoreContext
mythcorecontext.cpp:1191 (CheckProtoVersion) - Using protocol version 75
2014-05-25 22:47:41.418223 I [4853/4879] MetadataDownload
metadatadownload.cpp:222 (runGrabber) - Running Grabber:
/usr/share/mythtv/metadata/Television/ttvdb.py -l en -N 95731 Rat on a
Cheeto
2014-05-25 22:47:41.808166 I [4853/4879] MetadataDownload
metadatadownload.cpp:222 (runGrabber) - Running Grabber:
/usr/share/mythtv/metadata/Television/ttvdb.py -l en -M Nurse Jackie
2014-05-25 22:47:42.110206 I [4853/4879] MetadataDownload
metadatadownload.cpp:222 (runGrabber) - Running Grabber:
/usr/share/mythtv/metadata/Television/ttvdb.py -l en -D 95731 1 1
2014-05-25 22:47:42.414294 I [4853/4879] MetadataDownload
metadatadownload.cpp:144 (run) - Returning Metadata Results: Nurse Jackie 0
0
2014-05-25 22:47:43.420111 N [4853/4853] CoreContext main.cpp:171 (main) -
MythMetadataLookup run complete.


As seen here, the mythmetadatalookup script is making three calls to the
ttvdb.py script.  If I manually run the call with the -M switch as seen
above, I get an error:

/usr/share/mythtv/metadata/Television/ttvdb.py -l en -M Nurse Jackie
/usr/lib/python2.6/site-packages/MythTV/dataheap.py:61: DeprecationWarning:
object.__new__() takes no parameters
  return super(Artwork, cls).__new__(cls, attr, parent, imagetype)
Usage: ttvdb.py usage: ttvdb -hdruviomMPFBDS [parameters]
 <series name or 'series and season number' or 'series and season number
and episode number'>

For details on using ttvdb with Mythvideo see the ttvdb wiki page at:
http://www.mythtv.org/wiki/Ttvdb.py

ttvdb.py: error: ! Season is not numeric

That made me go, "hmmmm".  Then, I put "Nurse Jackie" in quotes and got
better results:

/usr/share/mythtv/metadata/Television/ttvdb.py -l en -M "Nurse Jackie"
/usr/lib/python2.6/site-packages/MythTV/dataheap.py:61: DeprecationWarning:
object.__new__() takes no parameters
  return super(Artwork, cls).__new__(cls, attr, parent, imagetype)
<?xml version='1.0' encoding='UTF-8'?>
<metadata>
  <item>
    <language>en</language>
    <title>Nurse Jackie</title>
    <inetref>95731</inetref>
    <collectionref>95731</collectionref>
    <imdb>1190689</imdb>
    <tmsref>SH01110183</tmsref>
    <description>"Nurse Jackie" is a half-hour comedy that is at turns
wicked, heartbreaking and funny. Edie Falco stars as the title character
Jackie O'Hurley, a strong-willed and brilliant -- but very flawed --
emergency room nurse in a complicated New York City hospital. A lapsed
Catholic with an occasional weakness for Vicodin and Adderall to get her
through the days, Jackie keeps the hospital balanced with her own kind of
justice. Every day is a high wire act of juggling patients, doctors, fellow
nurses and her own indiscretions.</description>
    <releasedate>2009-06-08</releasedate>
    <images>
      <image type="banner" url="
http://www.thetvdb.com/banners/graphical/95731-g6.jpg" thumb="
http://www.thetvdb.com/banners/_cache/graphical/95731-g6.jpg"/>
    </images>
  </item>
</metadata>

I thought I might be onto something.  Up next, the call shown above with
the -N switch returns S07E01 in the XML, which is incorrect:

/usr/share/mythtv/metadata/Television/ttvdb.py -l en -N 95731 Rat on a
Cheeto
/usr/lib/python2.6/site-packages/MythTV/dataheap.py:61: DeprecationWarning:
object.__new__() takes no parameters
  return super(Artwork, cls).__new__(cls, attr, parent, imagetype)
<?xml version='1.0' encoding='UTF-8'?>
<metadata>
  <item>
    <title>Nurse Jackie</title>
    <subtitle>TBA</subtitle>
    <language>en</language>
    <season>7</season>
    <episode>1</episode>

If I manually run the call and put the episode name in quotes, it returns
S06E07 which is correct:

/usr/share/mythtv/metadata/Television/ttvdb.py -l en -N 95731 "Rat on a
Cheeto"
/usr/lib/python2.6/site-packages/MythTV/dataheap.py:61: DeprecationWarning:
object.__new__() takes no parameters
  return super(Artwork, cls).__new__(cls, attr, parent, imagetype)
<?xml version='1.0' encoding='UTF-8'?>
<metadata>
  <item>
    <title>Nurse Jackie</title>
    <subtitle>Rat on a Cheeto</subtitle>
    <language>en</language>
    <description>Jackie is ambushed by Antoinette. Coop's dream finally
comes true.</description>
    <season>6</season>
    <episode>7</episode>

There seems to be something going on with multi=part searies and episode
names, or so it appears.  Yet, some shows that match this pattern are
successful in the meta lookup.  So I am not so sure.

Any thoughts on what might be wrong here?  I would really like to achieve
more reliable season/episode data so that Plex can manage the library
properly.

Thanks in advance!
Larry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140525/0a178e45/attachment.html>


More information about the mythtv-users mailing list