[mythtv-users] how to change URL's in mythweb?

John jharitos at yahoo.com
Wed Dec 13 22:27:20 UTC 2006


I want to use mythweb to download a few video files to
my laptop to
take on the road. So I'd like mythweb to have URL's
like
http://myhost/file.mpg so they can be easily
downloaded.

Mythweb used to use the file
/var/www/html/mythweb/config/conf.php.
There were some commented out lines in there that let
you set the URL
however you want. It looks like this isn't used
anymore.

The README says all config is done in .htaccess, but I
don't see how
to change the URL in there.

I've also found some info on the mailing list about an
entry in the
database under setttings/mythweb, but I don't see that
in my database.

Right now I'm seeing URL's like
myth://127.0.0.1:6543/1014_20061213045900.mpg on my
PC--not the myth
box, so the IP address is wrong, too.

I can SSH the files for now, but it's a pain to figure
out the filename.

Thanks,
Chris 
>>>>>>>>>>>>>>>>>>>>>

Under your mythweb vars/html directory open up the
includes/utils.php

search for

return "myth://$Master_Host:$Master_Port/"
                  .str_replace('%2F', '/',
rawurlencode(basename($show->filename)));

replace with:

return root."pl/stream/$show->chanid/$show->recstartts";


 
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index


More information about the mythtv-users mailing list