Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Fix for song name showing None in Playlist #26

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/vc/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def send_playlist(self):
else:
pl = f"{emoji.PLAY_BUTTON} **Playlist**:\n"
pl += "\n".join([
f"**{i}**. **[{x.audio.title}]({x.link})**"
f"**{i}**. **[{x.audio.title if x.audio.title else x.audio.file_name.replace('_', ' ') if x.audio.file_name else None}]({x.link})**"
for i, x in enumerate(playlist)
])
if mp.msg.get('playlist') is not None:
Expand Down