fiso64 / slsk-batchdl

A batch downloader for Soulseek
GNU General Public License v3.0
216 stars 16 forks source link

Building executable on Linux #41

Closed MCMXD closed 4 months ago

MCMXD commented 4 months ago

I understand this is a general question beyond the scope of the app.

I have been using this on Win11 and THANK YOU. I can't even find half of the tracks this baby finds when I manually search slsk. It's slowly fleshing out my new Logitech Media Server home streaming set-up with modern bangers ;)

I really want to move it over to my HoemLab so I can cron it and have it sweep periodically not just when my PC is on and I think to fire it up.

I dont have the Linux experience, and just need a point in the right direction. I'm downloading the slsk-batchdl_linux-x64. How do you go about compiling the executable on ubuntu? Even a guide on 'a hello world project' in the same language would be swell.

If i could use VS it would be easier but im happy mashing away at the CLI until i get it.

many thanks

fiso64 commented 4 months ago

Just run publish.bat. If on arm64 then replace all occurrences of linux-x64 with linux-arm64 first. You can build it on linux with the publish.sh script too if you replace osx-arm64 with linux-x64 or linux-arm64

MCMXD commented 4 months ago

Worked brilliantly thanks very much!

Another quick question. I can download spot playlists However spot-likes throws this error

Error: no DISPLAY environment variable specified

__ CLI: sldl spotify-likes -s --display double --debug -c sldl.conf

conf display="double" username="" password="" pref-format="mp3" name-format="{artist( - )title|filename}"
path="/mnt/data/music/half-way/slsk-batchdl/" spotify-id="****" spotify-secret="*****" m3u="all" listen-port="50001"

fiso64 commented 4 months ago

That's because it tries to open the default browser and let you login into the spotify account, but you're probably running a headless setup.

I'm currently not sure how to make this work. You'd have to use a spotify to csv exporter and then download your liked music from the csv file for now, sorry.

MCMXD commented 4 months ago

Worked it out thank you very much! A cron of this is going to be wild. Not running headless, well I can ProxMox over and sorted it out.

For future's, I needed.

export DISPLAY=:0