fix(youtubedl): format livestreams properly

This commit is contained in:
Ryan 2024-12-30 21:55:52 -05:00
parent 7f96979acc
commit 025e5fc653
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -66,7 +66,7 @@ class QueuedSong:
def format(self, with_queuer=False, hide_preview=False) -> str: def format(self, with_queuer=False, hide_preview=False) -> str:
return ( return (
f"[`{self.player.title}`]({'<' if hide_preview else ''}{self.player.original_url}{'>' if hide_preview else ''}) [{self.format_duration(self.player.duration)}]" f"[`{self.player.title}`]({'<' if hide_preview else ''}{self.player.original_url}{'>' if hide_preview else ''}) [{self.format_duration(self.player.duration) if self.player.duration else 'live'}]"
+ (f" (<@{self.queuer}>)" if with_queuer else "") + (f" (<@{self.queuer}>)" if with_queuer else "")
) )