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

EN [Linux] Sinusbot File Importer

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
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:

Predalon

Member
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
is awesome!
V.I.P.
Contributor
Insider
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.
 

Predalon

Member
Bot is version 0.9.8.

I try your new Version now.

New error is this.

Could not get token:
Error on Authentication!
 

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
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 :)
 

Predalon

Member
Okay now comes this error:

Could not get token:
//Removed
Error on Authentication!
 
Last edited by a moderator:

Xuxe

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

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
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
 
Top