[mythtvnz] DNLA/UPnP server

Stephen Worthington stephen_agent at jsw.gen.nz
Fri Dec 4 14:15:25 GMT 2009


On Fri, 04 Dec 2009 21:44:02 +1300, you wrote:

>
> > And of course, the raw filenames that minidlna serves up
> > are pretty useless for working out which program is which
>
>To fix the filenames, set this up as an hourly cron job
>
>#!/bin/sh
># Pretty up the TV program names into human readable format
># This is just a wrapper script around the mythrename script
># and is used to get the arguments right
># Ensure the environment is set properly
>#HOME=/var/lib/mythtv/
>#export HOME
>#. /etc/profile
>su mythuser -c "/usr/bin/mythrename.pl"
>
>I'm not running Ubuntu, so you'll probably have to tweak it.
>
>And in the script you can change the format
>This is the one I use:
>     $dformat = '%T %- %y%m%d-%H%i %- %cN';
>
>Here's an example of what I get:
>
>Drawn Together - 091119-2238 - Prime.mpg
>Eleventh Hour - 091029-2028 - TV ONE.mpg
>Fringe - 091027-2313 - TV2.mpg
>Grey's Anatomy - 091130-1328 - TV2.mpg
>Miss Congeniality 2- Armed And Fabulous - 091128-2028 - TV2.mpg
>Mythbusters - 091204-1158 - Prime.mpg
>NCIS - 091025-2028 - TV3.mpg
>New Tricks - 091104-2259 - TV ONE.mpg
>Out Of Time - 091128-2249 - TV2.mpg
>Pushing Daisies - 091026-2229 - TV2.mpg
>Pushing Daisies - 091123-2228 - TV2.mpg
>Shark - 091031-0013 - TV3.mpg
>Sunday Theatre- Hunter - 091026-2029 - TV ONE.mpg
>The Last Templar - 091118-2029 - TV2.mpg
>The Mentalist - 091026-2029 - TV2.mpg

That is a great idea, thank you.



More information about the mythtvnz mailing list