preview
[SOLVED] Solution: lemmy.ml/comment/4317564
I am doing all of this using ChatGPT, I know enough bash to understand the script partially, but not enough to write the script myself.
I recently posted bash script(click) to download songs on spotify using Spotdl
Updated Post
This is all good, but I am not trying to download whole playlists and I want to make sure to
- Not download any songs multiple times by comparing the files you are trying to download with the songs you have downloaded already.
- Add the songs’
URL to the Archieve_file so it doesn’t download it again. i.e., compare and if present, exit loop, if not present in file, download and add link to the file.
This was easier when I was dealing with only song links and not playlist links. But now, playlists complicates the equation, but if I can achieve this, I can basically add this script to crontab and make sure I always have a local copy of the songs in my playlist and these playlists would be checked regularly for new downloads and new songs would be downloaded. This is really cool!
Now, the complications I am facing,
I don’t know how to get the URLs of the spotify songs out of spotify playlists using spotdl or any cli package. If I can do this then, I can make the script go through each link clean the link of unncessary attributes and then download it or if it’s downloaded already, move on to the next song.
Now, I don’t know how to do it. It would be very helpful if you guys could share any scripts that you have which will achieve this effect or help me get the song URL’s from a playlist using a cli package.
PS: I might need some time to reply, I might sleep rn
Thank you for your help! ___
[SOLVED] Solution: lemmy.ml/comment/4317564
I am doing all of this using ChatGPT, I know enough bash to understand the script partially, but not enough to write the script myself.
I recently posted bash script(click) to download songs on spotify using Spotdl
Updated Post
This is all good, but I am not trying to download whole playlists and I want to make sure to
- Not download any songs multiple times by comparing the files you are trying to download with the songs you have downloaded already.
- Add the songs’
URL to the Archieve_file so it doesn’t download it again. i.e., compare and if present, exit loop, if not present in file, download and add link to the file.
This was easier when I was dealing with only song links and not playlist links. But now, playlists complicates the equation, but if I can achieve this, I can basically add this script to crontab and make sure I always have a local copy of the songs in my playlist and these playlists would be checked regularly for new downloads and new songs would be downloaded. This is really cool!
Now, the complications I am facing,
I don’t know how to get the URLs of the spotify songs out of spotify playlists using spotdl or any cli package. If I can do this then, I can make the script go through each link clean the link of unncessary attributes and then download it or if it’s downloaded already, move on to the next song.
Now, I don’t know how to do it. It would be very helpful if you guys could share any scripts that you have which will achieve this effect or help me get the song URL’s from a playlist using a cli package.
PS: I might need some time to reply, I might sleep rn
Thank you for your help! ___
preview
I would rather prefer that you would buy spotify premium if you can. But, till you can, there’s always spotdl which can allow you to download your songs
Installation of spotdl (github page click here): i.imgur.com/5g6uUgD.png
paste.debian.net/plain/1293528 a very simple script, you don’t actually need the script, but it makes it easier to download songs.
btw, I am using file manager nemo here, if you want something else, change it to your default file manager, if you don’t want to open folder, well remove last but one line.
execute this command first and when nano text edit appears, paste the debian pastebin in there.
spoiler
___
I would rather prefer that you would buy spotify premium if you can. But, till you can, there’s always spotdl which can allow you to download your songs
Installation of spotdl (github page click here): i.imgur.com/5g6uUgD.png
paste.debian.net/plain/1293528 a very simple script, you don’t actually need the script, but it makes it easier to download songs.
btw, I am using file manager nemo here, if you want something else, change it to your default file manager, if you don’t want to open folder, well remove last but one line.
execute this command first and when nano text edit appears, paste the debian pastebin in there.
spoiler
___
preview
This will remove all sponsors, download subtitles and view it when you are watching a video. Modify and Share this all over if you like!
Edit: Give credits to this community or Lemmy in general if you are posting this or a modified form (please do share) of this elsewhere. Some popularity would do Lemmy good.
Few requirements:
- You should be using Linux to run it.
- Create a folder named
yt-dlp in Videos folder or else change the location in the script below.
- You should have
yt-dlp not youtube-dl on your system.
You can do this by sudo apt install yt-dlp or use your distro’s package installer.
- Save this file with any
name in your home folder (or whichever folder you are you most comfortable with and give it execution permissions by chmod +x name
Debian Pastebin Thanks to folds at debian for making a tor network friendly pastebin. I have noticed that sometimes scripts get corrupted here, so best copy this from pastebin: paste.debian.net/1293211/
edit: deleted the codeblock as it was not rendering properly i.imgur.com/1lrTcdT.png
You can get the updated code here paste.debian.net/1293211/
Just paste it on to your notepad and give it execution permissions.
#edit 1: The program can be improved, if you guys feel like an improvement is needed, copy the entire program modify the parts you think can be made better and paste it in the comments or paste the pastebin link in the comments. I realize there are applications which are gui for yt-dlp but I felt they lacked many options. You can go on the man page, and learn and add attributes to make this script better so that it better suits your needs.
#man page aka github page: yt-dlp
This will remove all sponsors, download subtitles and view it when you are watching a video. Modify and Share this all over if you like!
Edit: Give credits to this community or Lemmy in general if you are posting this or a modified form (please do share) of this elsewhere. Some popularity would do Lemmy good.
Few requirements:
- You should be using Linux to run it.
- Create a folder named
yt-dlp in Videos folder or else change the location in the script below.
- You should have
yt-dlp not youtube-dl on your system.
You can do this by sudo apt install yt-dlp or use your distro’s package installer.
- Save this file with any
name in your home folder (or whichever folder you are you most comfortable with and give it execution permissions by chmod +x name
Debian Pastebin Thanks to folds at debian for making a tor network friendly pastebin. I have noticed that sometimes scripts get corrupted here, so best copy this from pastebin: paste.debian.net/1293211/
edit: deleted the codeblock as it was not rendering properly i.imgur.com/1lrTcdT.png
You can get the updated code here paste.debian.net/1293211/
Just paste it on to your notepad and give it execution permissions.
#edit 1: The program can be improved, if you guys feel like an improvement is needed, copy the entire program modify the parts you think can be made better and paste it in the comments or paste the pastebin link in the comments. I realize there are applications which are gui for yt-dlp but I felt they lacked many options. You can go on the man page, and learn and add attributes to make this script better so that it better suits your needs.
#man page aka github page: yt-dlp