• If you need help or want to discuss things, you now can also join us on our Discord Server!

EN [Linux] Sinusbot File Importer

Xuxe

Containerholic
Staff member
V.I.P.
is awesome!
Contributor
Insider
#1
Hey,

it was requested many times, i have now a Script for it:

https://github.com/Xuxe/Sinusbot-File-Importer

If you have music files on your server you could it import now.
I will maintain it until the WebDAV support is out and works on all Operating Systems :)

Keep in mind it not works full recursive it just uploads all files from the given Folder.
With commit 87f7b46e9a853983916375532e4635a545491692, i have added the Importing for _ all _ subdirectorys :)
 
Last edited:
#2
Hello Xuxe,

i have a problem with your script and hope you can help me resolve the misstake i make.

When i running your script there is the following output on my console


Traceback (most recent call last):
File "./sinusbot_uploader.py", line 138, in <module>
if bot.Auth():
File "./sinusbot_uploader.py", line 69, in Auth
if j['success']:
KeyError: 'success'
 

Xuxe

Containerholic
Staff member
V.I.P.
is awesome!
Contributor
Insider
#3
Hello Xuxe,

i have a problem with your script and hope you can help me resolve the misstake i make.

When i running your script there is the following output on my console


Traceback (most recent call last):
File "./sinusbot_uploader.py", line 138, in <module>
if bot.Auth():
File "./sinusbot_uploader.py", line 69, in Auth
if j['success']:
KeyError: 'success'
Which bot Version you use? I Also pushed a little Update, this should give a clear error message whats wrong.
 

Xuxe

Containerholic
Staff member
V.I.P.
is awesome!
Contributor
Insider
#5
Bot is version 0.9.8.

I try your new Version now.

New error is this.

Could not get token:
Error on Authentication!
Mhm looks like that the Response structure has changed with the 0.9.9. I look deeper in to it later. I changed again something, could you try it once again? My target is to read the plain response from the Bot :)
 

Xuxe

Containerholic
Staff member
V.I.P.
is awesome!
Contributor
Insider
#7
Ah good, the 0.9.8 not sends the success field, it is fixed now. Thx for report.
 

irgendwr

wholsesome AI
Staff member
V.I.P.
is awesome!
is uber awesome!
Contributor
Insider
#9
Hw can i use this?
First answer a few questions:
1. Are you able to read?
2. Do you have basic linux skills?

If you answered one of the questions above with "no" then you are not able to use xuxes script. xD

There is literally a section called "Usage" on the readme of his github repo
 

Similar threads