Skip to content
Snippets Groups Projects
Commit 96e9bed1 authored by David Trattnig's avatar David Trattnig
Browse files

feat: init and playlist getter for item

parent ec613a74
No related branches found
No related tags found
1 merge request!35ORM-less scheduling
......@@ -256,7 +256,7 @@ class Timeslot:
self.end = end
self.show = show
self.episode = episode
self.playlist = Playlists(None, None, None)
self.playlist = None
def get_id(self) -> int:
"""
......@@ -478,6 +478,15 @@ class PlaylistItem:
self.volume = volume
self.metadata = metadata
def get_playlist(self) -> Playlist:
"""
Get the playlist of this item.
Returns:
Playlist: The associated playlist.
"""
return self.playlist
def get_position(self) -> int:
"""
Calculate the position in the playlist.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment