upsies.utils.disc.playlist
Normalized representation of a sequence of bluray or dvd video files
Functions
- upsies.utils.disc.playlist.mark_main_playlists(playlists)[source]
Find the main playlist(s) and set their
is_mainproperty toTrue
Classes
- class upsies.utils.disc.playlist.Playlist(items, filepath, *, discpath=None, duration=None, is_main=False)[source]
Bases:
objectRepresentation of multiple videos in a sequence
- property type
Underlying disc format
“bluray” if
filenamehas the file extension “mpls”. “dvd” iffilenamehas the file extension “ifo”. Empty string otherwise.Matching is done case-insensitively.
- property label
Human-readable string that serves as a unique playlist ID
- property items
Sequence of file paths in the playlist
- property filepath
Path of the playlist file (e.g. MPLS or IFO file)
- property discpath
Path of the directory that contains
filepathUsually, this ia directory path that contains a “BDMV” or “VIDEO_TS” directory.
- property is_main
Simple boolean mark to track main playlists
This property is mutable.