• 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.

Solved If sinusbot is not used for a while !yt and !play needs to be used TWICE until it starts playing

olokos

Insider
Insider
Hello,

So I have noticed that on sinusbot beta 5(latest as of now)

if !yt or !play (youtube search script) is not being used for quite a while then first try of playing something will always result in "Done playing." in logs,
but second try of !yt will make it work again for a while, until some time passes (few hours usually) and the command needs to be entered twice again

not really a massive bug, but it can confuse new users

Here's a log:
Code:
2019-09-24T14:28:11+02:00 Storing configuration.
2019-09-24T14:28:00+02:00 Awaiting Callback (1): PR:{eb52594c-1930-451e-a1d0-66ff084343bd}:2068/DESC
2019-09-24T14:28:00+02:00 Awaiting Callback (1): PR:{eb52594c-1930-451e-a1d0-66ff084343bd}:2067/DESC
2019-09-24T14:28:00+02:00 new track info: DRAAH - Hard Music Mixes - HARDSTYLE / RAWPHORIC IS MY STYLE (2018 SUMMER EUPHORIC MIX) by DRAAH #7 (4452414148202d2048617264204d75736963204d69786573202d20484152445354594c45202f2052415750484f524943204953204d59205354594c452028323031382053554d4d455220455550484f524943204d495829206279204452414148202337)
2019-09-24T14:28:00+02:00 New channel () ID 33710292-5907-43af-95f6-2f3735019a6b (cc 0)
2019-09-24T14:27:53+02:00 CHAT 2 [meer212 @ Meer *] < yt [URL]https://www.youtube.com/watch?v=_7W8SdwEW-0[/URL] > / OK
2019-09-24T14:25:26+02:00 Done playing
2019-09-24T14:25:09+02:00 CHAT 2 [meer212 @ Meer *] < yt [URL]https://www.youtube.com/watch?v=_7W8SdwEW-0[/URL] > / OK
2019-09-24T14:25:04+02:00 Awaiting Callback (2): PR:{eb52594c-1930-451e-a1d0-66ff084343bd}:2051/CUPD
2019-09-24T14:25:04+02:00 Awaiting Callback (2): PR:{eb52594c-1930-451e-a1d0-66ff084343bd}:2050/CUPD
2019-09-24T10:13:42+02:00 Serent joined the channel
2019-09-24T05:02:41+02:00 Storing configuration.
2019-09-24T05:02:39+02:00 TS/ERR 2564 e'access to default group is forbidden' x'' r'PR:{eb52594c-1930-451e-a1d0-66ff084343bd}:67/GCLL'
2019-09-24T05:02:38+02:00 New connection status 4; Error 0
 

olokos

Insider
Insider
I have noticed that !play might have also stopped working entirely, but !yt still does although at 2nd try. This is really weird and new as everything was smooth for past months.
Okay so apparently !yt does work after 2nd try, but for some reason youtube-search script is not working anymore. 2nd time I enter it it does find the song, like usual, sinusbot says it adds it to queue, bot log says its downloading, but then it says Done playing and the song is not being played or queued anymore.
I did confirm my api keys are setup correctly, so I guess youtube changed something again and the script doesnt work anymore.
 
Last edited:

olokos

Insider
Insider
More logs, this time bot logs
Code:
2019-09-28T16:46:29+02:00 DOWNLOAD [admin] b8m9zhNAgKs NOK
2019-09-28T16:46:29+02:00 Error loading file (/opt/sinusbot/data/store/dfc7bbde-9e6e-415b-8376-5ae09fd04222/6320f6d994c9ec739013448a1cae82216ba19f45d8812e1e70dfafac78de5ba6): Could not open file!
2019-09-28T16:46:29+02:00 Downloading (multi) 5M with codec opus from youtube
2019-09-28T16:46:29+02:00 Probing https://r2---sn-i5h7lned.googlevideo.com/videoplayback?expire=1569703588&ei=RHKPXZvhAoiOgAeRpJe4CQ&ip=2a06%3A1c40%3A%3A398&id=o-AOhkVkq3MgKEnBy6qBIAdTSFLB2jFzebaXV09Mnoro09&itag=251&source=youtube&requiressl=yes&mm=31%2C26&mn=sn-i5h7lned%2Csn-5hne6nsy&ms=au%2Conr&mv=u&mvi=1&pl=47&mime=audio%2Fwebm&gir=yes&clen=5245989&dur=293.001&lmt=1544129852569491&mt=1569681887&fvip=2&keepalive=yes&fexp=23842630&c=WEB&txp=5511222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl&lsig=AHylml4wRgIhAMG2UjZ5KEjYLYSNLGmffIDkXoA8yVXM_JTOae8INsPoAiEAxAiJ1Dg3oBEalLkIJOEO_8jHwEGRzd7SLy6pZG2JCn4%3D&sig=ALgxI2wwRQIhALxP7eqUv6licQpM62-pxuGHvRFJ3BwBY6-7_R4EgIgTAiBlQ6052HdB3CU3KmKfaES0G0lGjVXEVgIr693fILdshQ==&ratebypass=yes for HTTP range support
2019-09-28T16:46:29+02:00 Downloading thumbnail
2019-09-28T16:46:25+02:00 JOBS-ADD [admin] b8m9zhNAgKs OK
2019-09-28T16:46:23+02:00 DOWNLOAD [admin] https://www.youtube.com/watch?v=b8m9zhNAgKs NOK
2019-09-28T16:46:23+02:00 Error loading file (/opt/sinusbot/data/store/dfc7bbde-9e6e-415b-8376-5ae09fd04222/6320f6d994c9ec739013448a1cae82216ba19f45d8812e1e70dfafac78de5ba6): Could not open file!
2019-09-28T16:46:23+02:00 Downloading (multi) 5M with codec opus from youtube
2019-09-28T16:46:23+02:00 Probing https://r2---sn-i5h7lned.googlevideo.com/videoplayback?expire=1569703582&ei=PnKPXcGSH9KNgAe2ronwAw&ip=2a06%3A1c40%3A%3A398&id=o-AA7OsY8gVmVts4cShJLSEeWXtf3FcUpmk1SC8Szjlfo0&itag=251&source=youtube&requiressl=yes&mm=31%2C26&mn=sn-i5h7lned%2Csn-5hnekn7s&ms=au%2Conr&mv=u&mvi=1&pl=47&mime=audio%2Fwebm&gir=yes&clen=5245989&dur=293.001&lmt=1544129852569491&mt=1569681274&fvip=2&keepalive=yes&fexp=23842630&beids=9466585&c=WEB&txp=5511222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl&lsig=AHylml4wRgIhAOk-5B-nGabR5Cp31yJ4347LyrLstThfyCvBQiFxjw4HAiEAogjIV-BBs3cqu2n0go1vXKLhBH0aMxuUuVsYKJEBbJI%3D&sig=ALgxI2wwRgIhANMY1qHNPK1DVbRpaSxBcjoFMmNbi426I6LPq1VW9XisAiEA-oueeysUHpRoFto_gECDnPSb1E2MjB1nqLMrHADHVew=&ratebypass=yes for HTTP range support
2019-09-28T16:46:23+02:00 Downloading thumbnail
2019-09-28T16:46:19+02:00 JOBS-ADD [admin] https://www.youtube.com/watch?v=b8m9zhNAgKs OK
2019-09-28T16:46:06+02:00 Loading instance://ff9121dd-5912-4a81-ab5d-4b6500534607
2019-09-28T16:46:06+02:00 Loading instance://da0a3644-daf3-4130-9766-201005288690
2019-09-28T16:46:06+02:00 Loading instances
 

olokos

Insider
Insider
It is due to the fact that youtube-dl ignores YTDLPath within sinusbot, but it's using systemwide youtube-dl instead, when it exists, that was the root cause of my problem and it does work great after I fixed that small mishap.
 
Top