• Stefan Roellin's avatar
    db/upnp/Directory: fix parsing of durations with fractions of seconds · 187cc573
    Stefan Roellin authored
    The duration of a song can have fractions of seconds
    (quote from http://www.upnp.org/schemas/av/didl-lite-v2.xsd):
    
        The format of the duration string is:
        H+:MM:SS[.F+], or H+:MM:SS[.F0/F1]
        Where:
        +H              one or more digits to indicate elapsed hours,
        MM              exactly 2 digits to indicate minutes (00 to 59),
        SS              exactly 2 digits to indicate seconds (00 to 59),
        F+              any number of digits (including no digits) to indicate fractions of seconds,
        F0/F1   a fraction, with F0 and F1 at least one digit long,
                        and F0 < F1.
        The string may be preceded by an optional + or - sign, and the
        decimal point itself may be omitted if there are no fractional  seconds digits.
    
    Until now, a duration with fractions of seconds could not be parsed and
    resulted in an unknown duration. Only durations in the format "H+:MM:SS"
    were feasible. This commit enables to read durations in the first format,
    i.e. "H+:MM:SS[.F+]"
    187cc573
Name
Last commit
Last update
..
ContentDirectoryService.cxx Loading commit data...
Directory.cxx Loading commit data...
Directory.hxx Loading commit data...
Object.cxx Loading commit data...
Object.hxx Loading commit data...
Tags.cxx Loading commit data...
Tags.hxx Loading commit data...
UpnpDatabasePlugin.cxx Loading commit data...
UpnpDatabasePlugin.hxx Loading commit data...