Open almatross opened 1 year ago
YouTube shorts were indeed not working because the bot failed to extract the video id. I pushed a fix to the develop
branch, it should work now.
Thanks. I cannot test it unfortunately as the howto for build for Linux keeps failing for dotnet5
/usr/share/dotnet/sdk/5.0.408/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(141,5): error NETSDK1045: The current .NET SDK does not support targeting .NET 6.0. Either target .NET 5.0 or lower, or use a version of the .NET SDK that supports .NET 6.0. [/home/alma/ts3audiobotbuild/TS3AudioBot/TSLib/TSLib.csproj]
dotnet 6 also didn't work as there were serveral errors like
/home/alma/ts3audiobotbuild/TS3AudioBot/TSLib/TSLibAutogen/TSLibAutogen.Autogen/Messages.g.cs(5873,10): error CS0246: The type or namespace name 'IconHash' could not be found (are you missing a using directive or an assembly reference?) [/home/alma/ts3audiobotbuild/TS3AudioBot/TSLib/TSLib.csproj]
Can you check if your submodules are up-to-date? git status
should say that ‘Your branch is up to date’. You can always run git submodule update --init --recursive
if you are unsure.
Also, can you try dotnet 6 and running dotnet run -c Release --project TS3AudioBot
?
That is working for me.
Sounds like the build instructions are out-of-date as they still refer to .net 5.
Working for me too now. Thanks.
or change url like this;
youtube.com/shorts/id
to
youtube.com/watch?v=id
I'm using yt-dlp
. Idk if its work with youtube-dl
.
I was trying to play a youtube short with
!pl https://www.youtube.com/shorts/OOXZx0QkY04
That returned a
Error: Could not load. (youtube: The id could not get parsed.)
This is the stack trace
I'm guessing this is just not supported or am I doing something wrong? yt-dlp downloads the youtube short normally