[Bug 452566] Re: album plays in wrong order

sam tygier samtygier at yahoo.co.uk
Sat Oct 24 10:05:08 UTC 2009


if found the clever nautural sort algorithm in utils/sorting.py

NUMS = re.compile('([0-9]+)')
...
return [ part.isdigit() and int(part) or part.lower() for part in NUMS.split(s) ]

which seems to do the right thing on those file names. but i can see where this is used in the rest of moovida.
elisa/extern/path.py seems to use elisa/extern/natural_sort.py instead, which does not look as clever.

also can't see where metadata tags are used.

-- 
album plays in wrong order
https://bugs.launchpad.net/bugs/452566
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list