[mythtv-users] MythWeb from URL to modified filenames via utils.php, handler.pl, tv.pl and others

Stefan Wolpert mythtv at wolps.com
Sat Jan 22 06:00:22 UTC 2011


Hello All,

Short:
In the MythWeb interface, I've added additional icons for different
stream options for the web-user, but I cannot figure out exactly how
the MythWeb URLs are translated to filenames on the hard disk.  My
reason is to accommodate additional stream options, I'd like to add
additional URL to filename translators that point to modified
filenames.


What I'd found:
$filename on line 53 of /usr/share/mythtv/mythweb/modules/stream/tv.pl
gets propagated to e.g. line 328 of
/usr/share/mythtv/mythweb/modules/tv/tmpl/default/recorded.php through
I think through a couple layers, but I always get lost.

I've studied the video_url function (for the ASX stream in this case)
in /usr/share/mythtv/mythweb/includes/utils.php on line 234, but once
again I can't figure out how the $filename from tv.pl points to a file
in video_url for ASX or for the direct download in the recordings.php
interface.

I am able to point MythWeb links to modified basenames by modifying
the $filename output of tv.pl (mentioned above).

What different stream options (file names) might you ask? e.g.
1005_20101207200000.mpg
1005_20101207200000_nocomm.mpg
1005_20101207200000.mp4

In case it helps, I'm running:
Ubuntu 10.04 LTS 64-bit
0.23.0+fixes24158

Let me know if any other info would help.

Thank you in advance!
Stefan


More information about the mythtv-users mailing list