Compare commits
3 commits
018f99c1d6
...
925006e496
Author | SHA1 | Date | |
---|---|---|---|
925006e496 | |||
b9856a5e32 | |||
f7757d1fbf |
2 changed files with 30 additions and 0 deletions
|
@ -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
|
||||||
|
|
24
rwx/sw/freetube/languages.py
Normal file
24
rwx/sw/freetube/languages.py
Normal 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
|
Loading…
Reference in a new issue