<div dir="ltr">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: <div>
<br></div><div><a href="http://www.mythtv.org/wiki/Enhancing_Recordings_with_Metadata_Lookup">http://www.mythtv.org/wiki/Enhancing_Recordings_with_Metadata_Lookup</a></div><div><br></div><div>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:</div>
<div><br><a href="http://www.mythtv.org/pipermail/mythtv-users/2012-November/343301.html">http://www.mythtv.org/pipermail/mythtv-users/2012-November/343301.html</a><br></div><div><br></div><div>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: </div>
<div><br></div><div><div>2014-05-25 22:47:41.413788 I [4853/4853] CoreContext mythcorecontext.cpp:375 (ConnectCommandSocket) - MythCoreContext: Connecting to backend server: <a href="http://192.168.1.200:6543">192.168.1.200:6543</a> (try 1 of 1)</div>
<div>2014-05-25 22:47:41.415751 I [4853/4853] CoreContext mythcorecontext.cpp:1191 (CheckProtoVersion) - Using protocol version 75</div><div>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</div>
<div>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</div><div>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</div>
<div>2014-05-25 22:47:42.414294 I [4853/4879] MetadataDownload metadatadownload.cpp:144 (run) - Returning Metadata Results: Nurse Jackie 0 0</div><div>2014-05-25 22:47:43.420111 N [4853/4853] CoreContext main.cpp:171 (main) - MythMetadataLookup run complete.</div>
</div><div><br></div><div><br></div><div>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: </div><div><br>
</div><div><div>/usr/share/mythtv/metadata/Television/ttvdb.py -l en -M Nurse Jackie</div><div>/usr/lib/python2.6/site-packages/MythTV/dataheap.py:61: DeprecationWarning: object.__new__() takes no parameters</div><div> return super(Artwork, cls).__new__(cls, attr, parent, imagetype)</div>
<div>Usage: ttvdb.py usage: ttvdb -hdruviomMPFBDS [parameters]</div><div> <series name or 'series and season number' or 'series and season number and episode number'></div><div><br></div><div>For details on using ttvdb with Mythvideo see the ttvdb wiki page at:</div>
<div><a href="http://www.mythtv.org/wiki/Ttvdb.py">http://www.mythtv.org/wiki/Ttvdb.py</a></div><div><br></div><div>ttvdb.py: error: ! Season is not numeric</div></div><div><br></div><div>That made me go, "hmmmm". Then, I put "Nurse Jackie" in quotes and got better results: </div>
<div><br></div><div><div>/usr/share/mythtv/metadata/Television/ttvdb.py -l en -M "Nurse Jackie"<br></div><div>/usr/lib/python2.6/site-packages/MythTV/dataheap.py:61: DeprecationWarning: object.__new__() takes no parameters</div>
<div> return super(Artwork, cls).__new__(cls, attr, parent, imagetype)</div><div><?xml version='1.0' encoding='UTF-8'?></div><div><metadata></div><div> <item></div><div> <language>en</language></div>
<div> <title>Nurse Jackie</title></div><div> <inetref>95731</inetref></div><div> <collectionref>95731</collectionref></div><div> <imdb>1190689</imdb></div><div> <tmsref>SH01110183</tmsref></div>
<div> <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></div>
<div> <releasedate>2009-06-08</releasedate></div><div> <images></div><div> <image type="banner" url="<a href="http://www.thetvdb.com/banners/graphical/95731-g6.jpg">http://www.thetvdb.com/banners/graphical/95731-g6.jpg</a>" thumb="<a href="http://www.thetvdb.com/banners/_cache/graphical/95731-g6.jpg">http://www.thetvdb.com/banners/_cache/graphical/95731-g6.jpg</a>"/></div>
<div> </images></div><div> </item></div><div></metadata></div></div><div><br></div><div>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:</div>
<div><br></div><div>/usr/share/mythtv/metadata/Television/ttvdb.py -l en -N 95731 Rat on a Cheeto</div><div>/usr/lib/python2.6/site-packages/MythTV/dataheap.py:61: DeprecationWarning: object.__new__() takes no parameters</div>
<div> return super(Artwork, cls).__new__(cls, attr, parent, imagetype)</div><div><?xml version='1.0' encoding='UTF-8'?></div><div><metadata></div><div> <item></div><div> <title>Nurse Jackie</title></div>
<div> <subtitle>TBA</subtitle></div><div> <language>en</language></div><div> <season>7</season></div><div> <episode>1</episode></div><div><br></div><div>If I manually run the call and put the episode name in quotes, it returns S06E07 which is correct:</div>
<div><br></div><div><div>/usr/share/mythtv/metadata/Television/ttvdb.py -l en -N 95731 "Rat on a Cheeto"</div><div>/usr/lib/python2.6/site-packages/MythTV/dataheap.py:61: DeprecationWarning: object.__new__() takes no parameters</div>
<div> return super(Artwork, cls).__new__(cls, attr, parent, imagetype)</div><div><?xml version='1.0' encoding='UTF-8'?></div><div><metadata></div><div> <item></div><div> <title>Nurse Jackie</title></div>
<div> <subtitle>Rat on a Cheeto</subtitle></div><div> <language>en</language></div><div> <description>Jackie is ambushed by Antoinette. Coop's dream finally comes true.</description></div>
<div> <season>6</season></div><div> <episode>7</episode></div></div><div><br></div><div>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. </div>
<div><br></div><div>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.</div><div><br></div><div>Thanks in advance!</div>
<div>Larry</div></div>