[mythtv-users] Downloading recordings to other computers via mythweb2

Andy check_1_2 at hotmail.com
Sun Aug 31 11:49:16 EDT 2003


I'm sure this is all very basic to you programmers out there, but I'm pretty
proud of myself, knowing nothing about Apache, PHP, or Linux, I updated my
copy of mythweb2 so that I can click on the preview picture and download the
.NUV file to the computer I'm browsing on. (Feeling quite proud...)
(Actually, I have to right-click it and use "save target as", I don't know
why a direct click doesn't work...)

Love to figure out a way to stream the file, if anyone has any ideas! I
tried vlc, but wasn't able to get that working. Anyway, the download is
better than nothing!

I put back the password protection for accessing the files by uncommenting
the first lines in .htaccess, adding a password file and changing http.conf
to AllowOverride=All. Had to comment out all the remaining php stuff in
.htaccess or the pages got stuck in a loop. Don't know what that's all
about, but it works without those lines so what the hey??


Here's the details for anyone else who'd like to update mythweb2 (only done
for the "Default" theme, and only tested on IE6):


Add a line to /etc/apache/httpd.conf in with the other Aliases:

	Alias /Alias-name-to-use-in-php/
/actual-path-name-to-stored-recordings/
	<Directory /actual-path-name-to-stored-recordings>
		... add all your settings here to make the path secure
	</Directory>	

Add a line to the end of /my-html-path/mythweb2/config/conf.php with the
other Aliases:

	define('rec_progs_path','/my-httpd-alias') # no trailing slash!

In /my-html-path/mythweb2/themes/Default/recorded_programs.php Change line
89 From:

	echo '<img id="'.$show->filename."\"
src=\"".image_cache.'/'.basename($show->filename).'.png"
width="'.pixmap_width.'" height="'.pixmap_height.'">';

TO:
	echo '<a
href="'.rec_progs_path.'/'.basename($show->filename).'"><img
id="'.$show->filename."\"
src=\"".image_cache.'/'.basename($show->filename).'.png"
width="'.pixmap_width.'" height="'.pixmap_height.'"></a>';


Enjoy!

-Andy.



More information about the mythtv-users mailing list