thanks i will try to test and commit this on the weekend.

--
Michael Ruelle
[EMAIL PROTECTED]


> The FM radioplayer printed the elapsed time in seconds only, even if 60 sec 
> were exceeded. It now uses the common "m:ss" notation. Patch is against 1.5.3 
> tarball release.
> 
> Georg
> 
> <snip>
> 128,130c128,143
> <     self.item.elapsed = int(time.time() - self.starttime)
> <         self.playerGUI.refresh()
> <         
> ---
> >         self.item.elapsed = self.formattime(int(time.time() - 
> self.starttime))
> >           self.playerGUI.refresh()
> > 
> >     def formattime(self,seconds):
> >         """
> >         returns string formatted as mins:seconds
> >         """
> >         mins = 0
> >         mins = seconds / 60
> >         secs = seconds % 60
> > 
> >         if secs<10:
> >             secs = '0%s' % secs
> >         else:
> >             secs = '%s' % secs
> >         return '%i:%s' % (mins,secs)
> </snip>
> 
> -- 
> Mein oeffentlicher Schluessel fuer PGP/GPG - Verschluesselung:
> 
> pub  1024D/63EB55CA 2002-11-27 Georg Kuenzel <[EMAIL PROTECTED]>
> Key fingerprint = 8DA9 55C6 91FA D92D 89C3  7C22 0A1D 790C 63EB 55CA
> 
> 128,130c128,143
> <     self.item.elapsed = int(time.time() - self.starttime)
> <         self.playerGUI.refresh()
> <         
> ---
> >         self.item.elapsed = self.formattime(int(time.time() - 
> > self.starttime))
> >           self.playerGUI.refresh()
> > 
> >     def formattime(self,seconds):
> >         """
> >         returns string formatted as mins:seconds
> >         """
> >         mins = 0
> >         mins = seconds / 60
> >         secs = seconds % 60
> > 
> >         if secs<10:
> >             secs = '0%s' % secs
> >         else:
> >             secs = '%s' % secs
> >         return '%i:%s' % (mins,secs)


-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to