diff options
Diffstat (limited to 'applemusic.py')
-rwxr-xr-x | applemusic.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/applemusic.py b/applemusic.py index 9e10ab9..8334e5b 100755 --- a/applemusic.py +++ b/applemusic.py @@ -78,7 +78,9 @@ class AppleMusic: url = url.rstrip("\x01") title = "" artist = "" - irc_string = "[\x0304AppleMusic\x03] \x0307ERROR:\x0308 got no data from server! \x0315(check your URL for typos!)\x03" + irc_string = ( + "[\x0304AppleMusic\x03] \x0307ERROR:\x0308 got no data from server! \x0315(check your URL for typos!)\x03" + ) ansi_string = "[\x1b[31mAppleMusic\x1b[0m] \x1b[33;2mERROR:\x1b[33;1m got no data from server! \x1b[37;2m(check your URL for typos!)\x1b[0m" if self.is_album(url): title, artist = self.applemusic_oembed(url) @@ -93,9 +95,7 @@ class AppleMusic: if title == "": print(ansi_string) return irc_string, True - irc_string = ( - f"[\x0303AppleMusic\x03] \x02{title}\x02 uploaded by \x1d{artist}\x1d" - ) + irc_string = f"[\x0303AppleMusic\x03] \x02{title}\x02 uploaded by \x1d{artist}\x1d" ansi_string = f"[\x1b[32mAppleMusic\x1b[0m] \x1b[1m{title}\x1b[0m uploaded by \x1b[03m{artist}\x1b[0m" # """ # irc_string="dummy";ansi_string="dummy" |