This class (rewritten from the old M3U Playlist Parser) now features optimized code and is more user friendly (function-wise) than that of the older M3U Playlist parser. You're now able to search through M3U entry titles and locations using multi-(or single) search and case[in]sensitive searching as well. You're able to pull records out that have a play time (in seconds) that are less than, less than or equal to, greater than, greater than or equal to or in between a $START and $END seconds time.
I've also included a (quite long) function that outputs a "pretty" and human-readable format which includes the song titles, locations and track time. You're able to customize the table output (if you use a table) or you can use plain-text output (which isn't pretty at all, mind you). The output of this also includes some "statistics" about the M3U, such as total tracks and combined playlist playing time (HH:MM:SS).
Hope you enjoy this new release, and as always, please contact me if you have any questions, comments or suggestions - as they might show up in future releases!
Notice: This script is not for any commercial usage without my consent. Thanks!
Warning: I have used this script to parse a playlist file of over 6,000 items without any problems. This script processes M3U files FAST! However, I'm not sure how bad it would be if you were to have anything over 10,000 playlist items - but it depends on the system and its configuration, so use with care.
**Notice** This version is incompatible with any of the lesser versions of 2.1.3. Please be sure to update your functions when calling from an object!
**Updated** 02-14-2010 -- Removed BC Math functions for users without access to the functions themselves.
-- Benchmark results:
- 100,000 Entries parsed in 3.186 seconds (with pretty formatting)
- 100,000 Entries parsed in 1.509 seconds (without any output)
-- Benchmarked system: AMD Athlon X2 4200+ @ 2.45GHz, 2GB RAM
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|