Compare commits
No commits in common. "27329865ee44b6f3d75e19de078bef0706ef396d" and "5dc81a45087ca697b2809c4722dfda95feb0f233" have entirely different histories.
27329865ee
...
5dc81a4508
2 changed files with 7 additions and 5 deletions
|
@ -139,9 +139,11 @@ def wipe(path: Path) -> None:
|
||||||
:type path: Path
|
:type path: Path
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
path.unlink(missing_ok=True)
|
|
||||||
except IsADirectoryError:
|
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
|
except NotADirectoryError:
|
||||||
|
path.unlink(missing_ok=True)
|
||||||
|
except FileNotFoundError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def write(file_path: Path, text: str, charset: str = CHARSET) -> None:
|
def write(file_path: Path, text: str, charset: str = CHARSET) -> None:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
"""FreeTube authors."""
|
"""FreeTube artists."""
|
||||||
|
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@ if TYPE_CHECKING:
|
||||||
from .playlists import Playlist
|
from .playlists import Playlist
|
||||||
|
|
||||||
|
|
||||||
class Author(Object):
|
class Artist(Object):
|
||||||
"""FreeTube author."""
|
"""FreeTube artist."""
|
||||||
|
|
||||||
def __init__(self, uid: str, name: str) -> None:
|
def __init__(self, uid: str, name: str) -> None:
|
||||||
"""Set uid & name.
|
"""Set uid & name.
|
Loading…
Reference in a new issue