xspf_lib.Playlist.parse

classmethod Playlist.parse(filename: Union[str, bytes, int]) Playlist

Parse XSPF file into xspf_lib.Playlist entity.

Returns:

ready and packed playlist

Return type:

Playlist

>>> import xspf_lib
>>> playlist = xspf_lib.parse("./playlist_file.xspf")