Compare commits

...

4 Commits

3 changed files with 13 additions and 12 deletions

View File

@@ -54,16 +54,17 @@ class Song:
timestamp=self.trigger_message.edited_at or self.trigger_message.created_at,
)
uploader_value = None
if self.player.uploader_url:
embed.add_field(
name="Uploader",
value=f"[{self.player.uploader}]({self.player.uploader_url})",
)
if self.player.uploader:
uploader_value = f"[{self.player.uploader}]({self.player.uploader_url})"
else:
uploader_value = self.player.uploader_url
elif self.player.uploader:
embed.add_field(
name="Uploader",
value=self.player.uploader,
)
uploader_value = self.player.uploader
if uploader_value:
embed.add_field(name="Uploader", value=uploader_value)
if self.player.like_count:
embed.add_field(name="Likes", value=f"{self.player.like_count:,}")
if self.player.view_count:
@@ -77,7 +78,7 @@ class Song:
embed.set_image(self.player.thumbnail_url)
embed.set_footer(
text=f"queued by {self.trigger_message.author.name}",
text=f"Queued by {self.trigger_message.author.name}",
icon_url=(
self.trigger_message.author.avatar.url
if self.trigger_message.author.avatar

View File

@@ -90,13 +90,13 @@ async def pause(message):
async def fast_forward(message):
tokens = commands.tokenize(message.content)
parser = arguments.ArgumentParser(tokens[0], "skip current sponsorblock segment")
parser = arguments.ArgumentParser(tokens[0], "skip the current sponsorblock segment")
parser.add_argument(
"-s",
"--seconds",
nargs="?",
type=lambda v: arguments.range_type(v, lower=0, upper=300),
help="the amount of seconds to fast forward instead",
help="the number of seconds to fast forward instead",
)
if not (args := await parser.parse_args(message, tokens)):
return

View File

@@ -5,4 +5,4 @@ disnake_paginator
psutil
PyNaCl
youtube_transcript_api
yt-dlp
yt-dlp[default] @ https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz