WD TV interface doesn't use title from generated xml


I have "Use Original Filenames" set to "True", and I use the following "TV Title Template":
[%SeasonNumberNoZero%]-[%EpisodeNumber%] [%EpisodeName%]

WDTVHubGen works great in retrieving info, and the thumbnails are fine. But my Hub won't recognize the title from the xml, even after rescanning. I can "View Info" successfully, and it shows it. But it won't display it in the list. The only way I know to fix it is to do a full "Clear Media Library" which completely rebuilds it. Then everything is titled correctly using those same xml files. Any ideas?

Thanks for a great tool! I can finally batch and customize the metadata!


drume wrote Feb 18, 2016 at 7:21 PM

I found the solution. Currently, <prevtitle> in the xml is populated with the file name. When I modify this promptly to match <title>, the WDTV Live Hub shows the title. Apparently, if the WD didn't previously have it in its media library, it uses <prevtitle> instead of <title>.

Would it be easy to modify the code to always set <prevtitle> to be the same value as <title>?

drume wrote Mar 11, 2016 at 3:55 PM

My current workaround is to use regular expressions in "Find all files" in Notepad++ as follows. As long as I do it before the Hub re-scans, the title shows correctly on the Hub.

Find what:
<title>(.*)</title>\r\n <mpaa
Replace with:
<title>$1</title>\r\n <prevtitle>$1</prevtitle>\r\n <mpaa

Find what:
<prevtitle>.*</prevtitle>\r\n <prevgenre
Replace with: