From 125e2ac9ca9570d741f7bede5799f371195e8233 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 26 Oct 2024 11:29:40 +0200 Subject: [PATCH] author.to_db --- rwx/sw/freetube/authors.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rwx/sw/freetube/authors.py b/rwx/sw/freetube/authors.py index 7f108e7..f577701 100644 --- a/rwx/sw/freetube/authors.py +++ b/rwx/sw/freetube/authors.py @@ -20,5 +20,12 @@ class Author(Object): :type name: str """ self.uid = uid - self.name = name.replace(" ", " ") + self.name = name self.playlist: Playlist + + def to_db(self) -> str: + """Return non-breakable name. + + :rtype: str + """ + return self.name.replace(" ", " ")