Compare commits

..

3 commits

Author SHA1 Message Date
925006e496
language.playlist
All checks were successful
/ job (push) Successful in 1m14s
2024-10-24 12:21:23 +02:00
b9856a5e32
language 2024-10-24 12:11:32 +02:00
f7757d1fbf
artist.playlist 2024-10-24 11:21:05 +02:00
2 changed files with 30 additions and 0 deletions

View file

@ -1,7 +1,12 @@
"""FreeTube artists.""" """FreeTube artists."""
from typing import TYPE_CHECKING
from rwx import Object from rwx import Object
if TYPE_CHECKING:
from .playlists import Playlist
class Artist(Object): class Artist(Object):
"""FreeTube artist.""" """FreeTube artist."""
@ -16,3 +21,4 @@ class Artist(Object):
""" """
self.uid = uid self.uid = uid
self.name = name self.name = name
self.playlist: Playlist

View file

@ -0,0 +1,24 @@
"""FreeTube languages."""
from typing import TYPE_CHECKING
from rwx import Object
if TYPE_CHECKING:
from .playlists import Playlist
class Language(Object):
"""FreeTube language."""
def __init__(self, uid: str, name: str) -> None:
"""Set uid & name.
:param uid: identifier
:type uid: str
:param name: label
:type name: str
"""
self.uid = uid
self.name = name
self.playlist: Playlist