View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Feb 21, 2007 10:57 pm 
Offline
Joined: Thu Feb 01, 2007 12:44 am
Posts: 66
Location: Dallas, TX
Hi Everyone,

When I am on my local intranet, I can download an episode by clicking on the title or subtitle field of the MythWeb-Recorded Programs page. This doesn't work when I am on the internet.

The link that works on the intranet is
http://192.168.0.100/mythweb/pl/stream/2030/1172113200
The link that doesn't on the internet is
myth://127.0.0.1:6543/2030_20070221210000.mpg

I was going to try to edit the source to make the internet link the same as the intranet link (with the caveat of building it with the external IP address).

But, I can't find the file that builds the MythWeb-Recorded Programs page. Can anyone tell me what it is called and where to find it in the file system?

Thanks.

_________________
Trying to install KnoppMyth R5F27, ECS 671T-M, Celeron 430, 1gig RAM, 320gig SATA Seagate, Samsung SATA SH-S203N DVD drive, Onboard video and audio, DVICO Fusion HDTV 5 Lite, Seasonic S12II-330watt PS


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 22, 2007 12:00 am 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi,

/var/www/mythweb/modules/tv/tmpl/default/recorded.php

This is assuming you are using the default theme in mythweb.

BigB.


Top
 Profile  
 
 Post subject: Success!
PostPosted: Fri Feb 23, 2007 1:12 am 
Offline
Joined: Thu Feb 01, 2007 12:44 am
Posts: 66
Location: Dallas, TX
I am using the default theme. This is the first time I wrote any PHP on my own. It took me 3 hours to figure this out, and I still don't really understand what is going on.

But the following code appears to work regardless of whether you are trying to download inside your intranet or over the internet, and whether you are using the standard or alternate port for MythWeb.

Lemme know if anyone else tries this and it doesn't work.

Change lines 283-287 in /var/www/mythweb/modules/tv/tmpl/default/recorded.php to:
Code:
<td><?php echo '<a href="http://'.getenv('HTTP_HOST').'/mythweb/pl/stream/'.$show->chanid.'/'.$show->recstartts.'"'
                    .($_SESSION['recorded_pixmaps'] ? '' : " name=\"$row\"")
                    .'>'.$show->title.'</a>' ?></td>
<td><?php echo '<a href="http://'.getenv('HTTP_HOST').'/mythweb/pl/stream/'.$show->chanid.'/'.$show->recstartts.'"'
                    .'>'.$show->subtitle.'</a>' ?></td>


Thanks bigB for telling me where to start looking.

_________________
Trying to install KnoppMyth R5F27, ECS 671T-M, Celeron 430, 1gig RAM, 320gig SATA Seagate, Samsung SATA SH-S203N DVD drive, Onboard video and audio, DVICO Fusion HDTV 5 Lite, Seasonic S12II-330watt PS


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu