Dylan,

The same problem occured for me after I upgraded to freevo-1.5.1-2mdk on 
Mandrake 10.1 Official.

I tried your second fix, but found that the program information displayed was 
incorrect (for another program on another channel), although the correct 
program was set to record when I hit the record button.

Eventually I used your first fix and adjusted two other lines of code to get 
both the program information correct and enable recording the program:

# diff proginfo.rpy_old proginfo.rpy
50,52c50,52
<         starttime = int( id[id.find(":")+1:] )
<
<         guide = tv.epg_xmltv.get_guide()
---
>       starttime = int( float( id[id.find(":")+1:] ) )
>
>       guide = tv.epg_xmltv.get_guide()
91,92c91,92
<               "function() 
{ doc.location=\"record.rpy?chan=%s&start=%s&action=add\"; }" % (chanid, 
starttime),
<               "function() 
{ doc.location=\"edit_favorite.rpy?chan=%s&start=%s&action=add\"; }" % 
(chanid, starttime),
---
>             "function() 
{ doc.location=\"record.rpy?chan=%s&start=%s.0&action=add\"; }" % (chanid, 
starttime),
>               "function() 
{ doc.location=\"edit_favorite.rpy?chan=%s&start=%s.0&action=add\"; }" % 
(chanid, starttime),

Regards,
Dave.

On Tuesday 11 Jan 2005 09:37, Dylan Hall wrote:
>  I've been experimenting with this further.
>
>  The reason that the "Record" and "Add to Favorites" weren't working was
> because they require the ".0" on the end.
>
>  e.g.
>
>  this works:
>
> 
> http://splurge:8080/record.rpy?chan=TV2.mr.geek.nz&start=1105443300.0&actio
>n=add
>
>  and this doesn't:
>
> 
> http://splurge:8080/record.rpy?chan=TV2.mr.geek.nz&start=1105443300&action=
>add
>
>
>  A simpler fix seems to be:
>
>  splurge htdocs # diff proginfo.rpy_old proginfo.rpy
>  50c50
>  <         starttime = int( id[id.find(":")+1:] )
>  ---
>
>  >         starttime = id[id.find(":")+1:]
>
>  I'm still at a lose to explain why this broke....
>
>  Dylan
>
>
>
>  Dylan Hall wrote:
>  I'm having a number of problems with the web server. I'm using Freevo
> 1.5.2 on a Gentoo box.
>
>  The guide data page loads fine but when I select an entry I don't get any
> useful information, just "Fetching program information ...".
>
>  The webserver log contains the following:
>
>  2005/01/11 20:55 NZDT [HTTPChannel,224,192.168.1.66] Traceback (most
> recent call last): File
> "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py", line 223, in
> dataReceived why = self.lineReceived(line)
>            File
> "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 952, in
> lineReceived self.allContentReceived()
>            File
> "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 993, in
> allContentReceived req.requestReceived(command, path, version)
>            File
> "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 554, in
> requestReceived self.process()
>          --- <exception caught here> ---
>            File "/usr/lib/python2.3/site-packages/twisted/web/server.py",
> line 159, in process self.render(resrc)
>            File "/usr/lib/python2.3/site-packages/twisted/web/server.py",
> line 166, in render body = resrc.render(self)
>            File "/usr/lib/python2.3/site-packages/freevo/www/web_types.py",
> line 88, in render return self._render(request)
>            File "/usr/share/freevo/htdocs/proginfo.rpy", line 50, in
> _render starttime = int( id[id.find(":")+1:] )
>          exceptions.ValueError: invalid literal for int(): 1105432200.0
>
>  Someone else reported the same problem back in late October but no one
> suggested a fix.
>
>  I figured that it might be getting upset by the ".0" on the end of the
> number so I created a static version of the guide page which I edited so
> that the "id=" bit for an entry didn't contain the ".0". This seemed to fix
> the problem so I attempted to make that change to the proginfo.rpy page.
>
>  I made the following change:
>
>  splurge htdocs # diff proginfo.rpy proginfo.rpy_fix
>  50c50
>  <         starttime = int( id[id.find(":")+1:] )
>  ---
>
>  >         starttime = int( float( id[id.find(":")+1:] ) )
>
>  I've never worked with Python before so I'm sure this is the wrong way to
> approach the problem, but it seems to do the trick.
>
>  Now I have another problem. When I select either the "Record" or "Add to
> Favorites" options I get the following error:
>
>
> ERROR: No program found on BBCWorld.mr.geek.nz at 01/11/05 22:00:00.
> (RecordServer::findProg: prog not found)
>
> There is nothing in the webserver log to explain why it can't find the
> program. The channel name and date/time are correct. The "Record" and "Add
> to Favorites" options are working fine via the TV interface.
>
>  All of these options used to work fine. I've had to change my source of
> guide data recently so it may have broke when I changed sources. I also
> have a suspicion that I upgraded the version of python that is installed on
> the box. Current version is 2.3.4.
>
>  Any help/suggestions greatly appreciated :)
>
>  Also, is this the right forum or should I be posting this to the dev
> mailing list?
>
>  On a similar note, there is a small bug with the manual record web server
> page. It only displays 30 days for each month.
>
>  Fix follows:
>
>  splurge htdocs # diff manualrecord.rpy_old manualrecord.rpy
>  158c158
>  <             while iter < 31:
>  ---
>
>  >             while iter <= 31:
>
>  Thanks,
>
>  Dylan
>
>  ------------------------------------------------------- The SF.Net email
> is sponsored by: Beat the post-holiday blues Get a FREE limited edition
> SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well,
> almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________ Freevo-users mailing list
> Freevo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-users
> ------------------------------------------------------- The SF.Net email is
> sponsored by: Beat the post-holiday blues Get a FREE limited edition
> SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well,
> almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________ Freevo-users mailing list
> Freevo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-users


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to