NadekoBot Patronage system, Search commands improvements + fixes

This commit is contained in:
Kwoth
2022-06-14 07:24:33 +00:00
parent 18b10b8c6f
commit 7b5145f116
165 changed files with 14920 additions and 1457 deletions

View File

@@ -119,7 +119,7 @@ public sealed partial class YtLoader
var responseSpan = response.AsSpan()[140_000..];
var startIndex = responseSpan.IndexOf(_ytResultInitialData);
if (startIndex == -1)
return null; // todo future try selecting html
return null; // FUTURE try selecting html
startIndex += _ytResultInitialData.Length;
var endIndex =

View File

@@ -219,7 +219,7 @@ public sealed class MusicPlayer : IMusicPlayer
errorCount = 0;
}
// todo future windows multimedia api
// FUTURE windows multimedia api
// wait for slightly less than the latency
Thread.Sleep(delay);

View File

@@ -42,8 +42,6 @@ public class RadioResolver : IRadioResolver
}
if (query.Contains(".pls"))
//File1=http://armitunes.com:8000/
//Regex.Match(query)
{
try
{
@@ -59,11 +57,6 @@ public class RadioResolver : IRadioResolver
}
if (query.Contains(".m3u"))
/*
# This is a comment
C:\xxx4xx\xxxxxx3x\xx2xxxx\xx.mp3
C:\xxx5xx\x6xxxxxx\x7xxxxx\xx.mp3
*/
{
try
{
@@ -79,7 +72,6 @@ public class RadioResolver : IRadioResolver
}
if (query.Contains(".asx"))
//<ref href="http://armitunes.com:8000"/>
{
try
{
@@ -95,12 +87,6 @@ public class RadioResolver : IRadioResolver
}
if (query.Contains(".xspf"))
/*
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track><location>file:///mp3s/song_1.mp3</location></track>
*/
{
try
{