Ts3audiobot: Error: Could not load. (youtube: youtube-dl failed to load the resource.)

Created on 30 May 2018  路  6Comments  路  Source: Splamy/TS3AudioBot

ts3audiobot.log
```
2018-05-30 23:42:16.1387| INFO|Core.InitializeCore [============ TS3AudioBot started =============]
2018-05-30 23:42:16.1698| INFO|Core.InitializeCore [=== Date/Time: Wednesday, May 30, 2018 11:42:16 PM
2018-05-30 23:42:16.2557| INFO|Core.InitializeCore [=== Version: 0.9.0-unstable.35/develop/b529f8eb
2018-05-30 23:42:16.2567| INFO|Core.InitializeCore [=== Platform: Linux (64bit)
2018-05-30 23:42:16.2567| INFO|Core.InitializeCore [=== Runtime: Mono (5.12.0.226 (tarball Thu May 3 10:03:41 UTC 2018))
2018-05-30 23:42:16.2627| INFO|Core.InitializeCore [=== Opus: libopus 1.2~alpha2 (x64)
2018-05-30 23:42:16.2627| INFO|Core.InitializeCore [==============================================]
2018-05-30 23:42:16.2627| INFO|Core.InitializeCore [============ Initializing Modules ============]
2018-05-30 23:42:16.4206| INFO|RightsManager.ReadFile No rights file found. Creating default.
2018-05-30 23:42:16.6610| INFO|Core.InitializeCore [==================== Done ====================]
2018-05-30 23:42:16.6661| INFO|Bot.InitializeBot Bot connecting...
2018-05-30 23:42:16.7689| INFO|HistoryManager.Initialize Database table "audioLogEntries" upgraded to 1
2018-05-30 23:42:17.4751| INFO|Bot.OnBotConnected Bot connected.
2018-05-30 23:42:31.4665| INFO|Core.Dispose TS3AudioBot shutting down.
2018-05-30 23:42:31.4665| INFO|Bot.Dispose Bot disconnecting.
2018-05-30 23:42:31.5482|DEBUG|Ts3Full.TsFullClient_OnDisconnected Bot disconnected. Reason: LeftServer
2018-05-30 23:44:38.3846| INFO|Core.InitializeCore [============ TS3AudioBot started =============]
2018-05-30 23:44:38.4151| INFO|Core.InitializeCore [=== Date/Time: Wednesday, May 30, 2018 11:44:38 PM
2018-05-30 23:44:38.4847| INFO|Core.InitializeCore [=== Version: 0.9.0-unstable.35/develop/b529f8eb
2018-05-30 23:44:38.4847| INFO|Core.InitializeCore [=== Platform: Linux (64bit)
2018-05-30 23:44:38.4847| INFO|Core.InitializeCore [=== Runtime: Mono (5.12.0.226 (tarball Thu May 3 10:03:41 UTC 2018))
2018-05-30 23:44:38.4886| INFO|Core.InitializeCore [=== Opus: libopus 1.2~alpha2 (x64)
2018-05-30 23:44:38.4886| INFO|Core.InitializeCore [==============================================]
2018-05-30 23:44:38.4886| INFO|Core.InitializeCore [============ Initializing Modules ============]
2018-05-30 23:44:38.8134| INFO|Core.InitializeCore [==================== Done ====================]
2018-05-30 23:44:38.8179| INFO|Bot.InitializeBot Bot connecting...
2018-05-30 23:44:39.5904| INFO|Bot.OnBotConnected Bot connected.
2018-05-30 23:44:51.5041|DEBUG|Bot.TextCallback Got message from Mathias: !play [URL]https://www.youtube.com/watch?v=D7FQbVUnUXEa[/URL]
2018-05-30 23:44:51.5190|DEBUG|SessionManager.CreateSession User Mathias created session with the bot
2018-05-30 23:44:51.9065|DEBUG|YoutubeFactory.YoutubeDlWrapped Falling back to youtube-dl!
2018-05-30 23:44:53.8212|ERROR|YoutubeDlHelper.RunYoutubeDl youtube-dl failed to load the resource:
ERROR: u'D7FQbVUnUXEa' is not a valid URL. Set --default-search "ytsearch" (or run youtube-dl "ytsearch:D7FQbVUnUXEa" ) to search YouTube

2018-05-30 23:44:53.8281|DEBUG|Bot.CallScript Command Error (Could not load. (youtube: youtube-dl failed to load the resource.))
TS3AudioBot.CommandSystem.CommandException: Could not load. (youtube: youtube-dl failed to load the resource.)
at TS3AudioBot.Helper.Util.UnwrapThrow (E1[TError] r) [0x0001f] in <c43f3ea63c9c44ce81ff7b464b1a56fe>:0 at TS3AudioBot.MainCommands.CommandPlay (TS3AudioBot.IPlayerConnection playerConnection, TS3AudioBot.PlayManager playManager, TS3AudioBot.InvokerData invoker, System.String parameter) [0x0001a] in <c43f3ea63c9c44ce81ff7b464b1a56fe>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <71d8ad678db34313b7f718a414dfcb25>:0 --- End of stack trace from previous location where exception was thrown --- at TS3AudioBot.CommandSystem.Commands.FunctionCommand.ExecuteFunction (System.Object[] parameters) [0x00020] in <c43f3ea63c9c44ce81ff7b464b1a56fe>:0 at TS3AudioBot.CommandSystem.Commands.FunctionCommand.Execute (TS3AudioBot.CommandSystem.ExecutionInformation info, System.Collections.Generic.IReadOnlyList1[T] arguments, System.Collections.Generic.IReadOnlyList1[T] returnTypes) [0x00164] in <c43f3ea63c9c44ce81ff7b464b1a56fe>:0 at TS3AudioBot.CommandSystem.BotCommand.Execute (TS3AudioBot.CommandSystem.ExecutionInformation info, System.Collections.Generic.IReadOnlyList1[T] arguments, System.Collections.Generic.IReadOnlyList1[T] returnTypes) [0x0002c] in <c43f3ea63c9c44ce81ff7b464b1a56fe>:0 at TS3AudioBot.CommandSystem.Commands.CommandGroup.Execute (TS3AudioBot.CommandSystem.ExecutionInformation info, System.Collections.Generic.IReadOnlyList1[T] arguments, System.Collections.Generic.IReadOnlyList1[T] returnTypes) [0x00133] in <c43f3ea63c9c44ce81ff7b464b1a56fe>:0 at TS3AudioBot.CommandSystem.Commands.RootCommand.Execute (TS3AudioBot.CommandSystem.ExecutionInformation info, System.Collections.Generic.IReadOnlyList1[T] arguments, System.Collections.Generic.IReadOnlyList1[T] returnTypes) [0x0005b] in <c43f3ea63c9c44ce81ff7b464b1a56fe>:0 at TS3AudioBot.CommandSystem.Commands.AppliedCommand.Execute (TS3AudioBot.CommandSystem.ExecutionInformation info, System.Collections.Generic.IReadOnlyList1[T] arguments, System.Collections.Generic.IReadOnlyList1[T] returnTypes) [0x00039] in <c43f3ea63c9c44ce81ff7b464b1a56fe>:0 at TS3AudioBot.CommandSystem.XCommandSystem.Execute (TS3AudioBot.CommandSystem.ExecutionInformation info, System.String command, System.Collections.Generic.IReadOnlyList1[T] returnTypes) [0x00018] in :0
at TS3AudioBot.CommandSystem.XCommandSystem.Execute (TS3AudioBot.CommandSystem.ExecutionInformation info, System.String command) [0x00000] in :0
at TS3AudioBot.Bot.CallScript (TS3AudioBot.CommandSystem.ExecutionInformation info, System.String command, System.Boolean answer, System.Boolean skipRights) [0x00020] in :0
2018-05-30 23:44:59.4183| INFO|Core.Dispose TS3AudioBot shutting down.
2018-05-30 23:44:59.4183| INFO|Bot.Dispose Bot disconnecting.
2018-05-30 23:44:59.4641|DEBUG|Ts3Full.TsFullClient_OnDisconnected Bot disconnected. Reason: LeftServer

question

Most helpful comment

Nope his youtube-dl is up to date.
https://www.youtube.com/watch?v=D7FQbVUnUXEa the a at the back is wrong and confuses youtube-dl

If someone can assure that all youtube id's are 11 chars long I can add an assertion in the youtube factory; but I can't tell for sure

All 6 comments

Try updating youtube-dl with their official tutorial: https://github.com/rg3/youtube-dl/blob/master/README.md#installation

Nope his youtube-dl is up to date.
https://www.youtube.com/watch?v=D7FQbVUnUXEa the a at the back is wrong and confuses youtube-dl

If someone can assure that all youtube id's are 11 chars long I can add an assertion in the youtube factory; but I can't tell for sure

Great video about this https://www.youtube.com/watch?v=gocwRvLhDf8

It's almost certainly going to stay at 11 characters. The individual characters come from a set of 64 possibilities (A-Za-z0-9_-).
64^11 is somewhat more than 2^64. (10 characters would not be enough.) So basically each youtube ID is actually a 64bit number. And I quite doubt they will ever run out of those.
If you want to save space in your database you could theoretically convert the IDs to 64bit numbers then convert them back later. But you would need to know how youtube does the conversion so it's not practical. (Since 64^11 is more than 2^64 you can't store all possibilities, so you need to know which ones are impossible and google doesn't say.)
It takes 66 bits to store all possibilities. So you could actually store a 64bit number plus a 2 bit number and save some space that way. Or more practically store 9 8bit values - you would save only 2 bytes per record though over storing it as text, so it's probably not worth it.

https://stackoverflow.com/a/6250619/5494061

I don't see anywhere in the documentation where we officially commit
to a standard length of 11 characters for YouTube video ids. It's one
of those things where we have a current implementation, and it may
stay that way indefinitely. But we're not offering any official
commitment to that, so proceed at your own risk.

From someone on the google api team (https://groups.google.com/forum/?fromgroups=#!topic/youtube-api-gdata/oAztQ3f1tcM)

Yeah, i saw that but the IDs are 11 chars since forever and when they really change it just push another commit

Thank you guys!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CookieCr2nk picture CookieCr2nk  路  4Comments

Najsr picture Najsr  路  3Comments

lgund picture lgund  路  6Comments

Edith445544986 picture Edith445544986  路  4Comments

Adminio1 picture Adminio1  路  4Comments