PLS::Playlist
Inherits Reference < Object
https://en.wikipedia.org/wiki/PLS_(file_format)
Constants
FILE_KEY = /\AFile\d+\z/
LENGTH_KEY = /\ALength\d+\z/
TITLE_KEY = /\ATitle\d+\z/
Constructors
Class methods
parse(string : String)
Parses the given string (with the contents of a PLS playlist) and returns a Playlist object.
Instance methods
lengths
Returns all length values. A length is defined in seconds. A value of -1 indicates indefinite length (streaming). (optional)
version_field
Retturns the Playlist version. Currently only a value of 2 is valid. It will return "1" if the field is missing.