Aubin Paul wrote:
> On Fri, Jun 06, 2003 at 10:55:42AM +0200, Dirk Meyer wrote:
>> Or we could support both types of output. I haven't compiled the
>> latest mplayer cvs, but maybe that's the better solution.
>
> I'm not sure how easy it would be; because well, it looks like this:
>
> A:       1001.2

OK, this is the old

self.RE_TIME = re.compile("^A: *([0-9]+)").match

> or
>
> A:       16:41.1

and this is

self.RE_TIME_NEW = re.compile("^A: *([0-9]+):([0-9]+)").match

> The problem is that if there are less than one minute elapsed, there
> is no visible difference:
>
> i.e.
>
> A:         55.1
>
> or
>
> A:         55.1
>
> Or do we check every single pass? 

Maybe I forgot something, but what about:

| m = self.RE_TIME_NEW(line)
| if m:
|    new format after one minute, store info in self.item.elapsed
|    by converting it into seconds
| 
| else:
|    m = self.RE_TIME(line)
|    if m:
|       insert old code here



Dischi

-- 
Please do not complain about the coffee. You'll be old and weak
someday, too!


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to