• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Error downloading YouTube video

chris_yooo

Active Member
Tier I
try yt-dlp

https://github.com/yt-dlp/yt-dlp is running smove

changes 4 config:

YoutubeDLPath = "/usr/bin/yt-dlp"

[YoutubeDL]
BufferSize = 0
MaxDownloadSize = 0
MaxDownloadRate = 0
MaxSimultaneousChunkDownloads = 0
CacheStreamed = false
TimeoutSingleDownloader = 0
TimeoutMultiDownloader = 0
ChunkSize = 0
 

chris_yooo

Active Member
Tier I
hm i tested right now

<08:59:59> "chris_yooo": !ytdl https://www.youtube.com/watch?v=vnzvbdNQYLE
<09:00:01> "GoennYamin": ✅ done!
<09:00:01> "GoennYamin": Anthony Rother - Anthony Rother - Pulsartronic - DEKATRON (Studio Session)

you can post your config?

maybe false data dir or no permission on it.

did you load the latest update ? https://www.sinusbot.com/pre/sinusbot-1.0.2-amd64.tar.bz2

docker - linux - windows ?





edit:

haha ja i tried to copy you links from logfile..

this one is ok :D
<09:10:36> "chris_yooo": !ytdl https://www.youtube.com/watch?v=Yi4MQecGdfA
<09:10:37> "GoennYamin": ✅ done!
<09:10:37> "GoennYamin": Henrique e Juliano - Henrique e Juliano - Mudando de Assunto (DVD Ao vivo em Brasília) [Vídeo Oficial]

<09:12:08> "chris_yooo": !ytdl https://www.youtube.com/watch?v=ZIiQ1jMqhVM
<09:12:09> "GoennYamin": ✅ done!
<09:12:09> "GoennYamin": Luan Santana - Luan Santana - MORENA (Clipe Oficial)

<09:13:12> "chris_yooo": !ytdl https://www.youtube.com/watch?v=mMoF5WuBrkI
<09:13:14> "GoennYamin": ✅ done!
<09:13:14> "GoennYamin": DJ Guuga - DJ GUUGA = ARROCHA DOS CORNO ((DJ GUUGA))

HAHA guy the last video yah ^^ neiß
 
Last edited:

chris_yooo

Active Member
Tier I
hm please post your yt-dlp and youtube-dl version numbers..

/usr/bin/yt-dlp --version
your version have to be minimum of --> 2023.03.04

if older --> /usr/bin/yt-dlp --update


and youtube-dl:
youtube-dl --version
/usr/bin/youtube-dl --version
my version is --> 2023.03.04 ^^


and please double check your settings in config.ini !!

Code:
....
DataDir = "/home/sinusbot/data/"
....
YoutubeDLPath = "/usr/bin/yt-dlp"  <--  (check here that you can run /usr/bin/yt-dlp and you get response!)
                                                                  (and take care that your user can run yt-dlp)
                                                                  (if you can run yt-dlp without directory is given then you can do this)
YoutubeDLPath = "yt-dlp"
....


and here my complete config, maybe you can see differnts between my and yours .cfg and can fix that



TS3Path = "TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"
ListenHost = "0.0.0.0"
DataDir = "/home/sinusbot/data/"
ListenPort = 8087
LocalPlayback = false
EnableLocalFS = false
MaxBulkOperations = 300
LogLevel = 10
EnableProfiler = false
YoutubeDLPath = "/usr/bin/yt-dlp"
EnableDebugConsole = false
EnableInternalCommands = false
AllowStreamPush = false
UploadLimit = 209715200
RunAsUser = 0
RunAsGroup = 0
ExternalFileBase = ""
InstanceActionLimit = 10
UseSSL = false
SSLKeyFile = ""
SSLCertFile = ""
Hostname = ""
HostnameMask = ""
SampleInterval = 0
StartVNC = false
EnableWebStream = false
LogFile = "sinusbot.log"
LicenseKey = ""
IsProxied = false
DenyStreamURLs = []
Pragma = 0
UserAgent = ""

[YoutubeDL]
  BufferSize = 0
  MaxDownloadSize = 0
  MaxDownloadRate = 0
  MaxSimultaneousChunkDownloads = 0
  CacheStreamed = false
  TimeoutSingleDownloader = 0
  TimeoutMultiDownloader = 0
  ChunkSize = 0

[TS3]
  AvatarMaxWidth = 0
  AvatarMaxHeight = 0
  AllowGIF = true

[StreamRewrites]

[Scripts]
  Debug = false
  AllowReload = false
  EnableTimer = false
  DisableLegacyEvents = false
  DevMode = false
  ScriptTimeout = 5
  [Scripts.Privileges]
    support-pp = ["db"]

[Themes]
  Default = "sinufy"

[SpeechRecognition]
  Enable = false

[FFmpeg]
  UserAgent = "SinusBot (1.0.2)"
  WaitTime = 0

[DAV]
  Enable = false

[XServer]
  Delay = 0
  Debug = false

[SHMem]
  Enable = false
  Size = 0
  Delay = 0
  Interval = 0

[RadioStations]
  URL = ""
  UpdateInterval = 0

[TTS]
  Enabled = false

so and one little thing:

in documentation ( https://sinusbot.github.io/docs/installation/linux/ ) ist your ubuntu the last thing sinusbot itself recommends...
and we are much newer in terms of versions. please consider possibly upgrading to 20..
IF your troubleshot above does not work!


i can't think of anything else. maybe someone else in the com is willing to help.
 
Top