mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
Added fixes from 1.9 branch:
- Custom reaction permission error fix - Local tracks .lq fix after they're loaded from playlist - Fixed some response strings
This commit is contained in:
@@ -26,7 +26,7 @@ namespace NadekoBot.Modules.Music
|
||||
=> $"🔉 {(int) (mp.Volume * 100)}%";
|
||||
|
||||
public static string PrettyName(this ITrackInfo trackInfo)
|
||||
=> $"**[{trackInfo.Title.TrimTo(60).Replace("[", "\\[").Replace("]", "\\]")}]({trackInfo.Url})**";
|
||||
=> $"**[{trackInfo.Title.TrimTo(60).Replace("[", "\\[").Replace("]", "\\]")}]({trackInfo.Url.TrimTo(50, true)})**";
|
||||
|
||||
public static string PrettyInfo(this IQueuedTrackInfo trackInfo)
|
||||
=> $"{trackInfo.PrettyTotalTime()} | {trackInfo.Platform} | {trackInfo.Queuer}";
|
||||
|
@@ -147,7 +147,7 @@ namespace NadekoBot.Modules.Music
|
||||
Provider = s.Platform.ToString(),
|
||||
ProviderType = (MusicType)s.Platform,
|
||||
Title = s.Title,
|
||||
Query = s.Url,
|
||||
Query = s.Platform == MusicPlatform.Local ? s.GetStreamUrl().Result!.Trim('"') : s.Url,
|
||||
}).ToList();
|
||||
|
||||
MusicPlaylist playlist;
|
||||
|
Reference in New Issue
Block a user