Comments (6)
this mean that every songs downloaded will have the same filename...
your script can use the scdl stdout output to check the filename.
exemple:
fly@Minotoor ~ $ scdl -l https://soundcloud.com/phanton/phanton-derpinas-short-video
Soundcloud Downloader
Downloading to /home/fly...
Found a track
Downloading Phanton - Derpinas (Short Video Edit)
100% [......................................................] 3719835 / 3719835
Settings tags...
Phanton - Derpinas (Short Video Edit).mp3 Downloaded.
Phanton - Derpinas (Short Video Edit).mp3
is the filename
from scdl.
Good point.
This is what I currently do:
scdl -l <track> | grep "Downloaded" | rev | cut -c 13- | rev;
Which is painful. Could use awk
or something I guess.
Maybe if the trackname was alone on the final line it would be ok, but then if there are multiple files it would still be a problem...
Anyway
from scdl.
I will try something later ;)
from scdl.
just something : why don't you just check for track in your folder and then use them in your script ?
from scdl.
You mean wait for a file to be created then act on it? I do not know how to do that in bash, but I will look into it.
from scdl.
for f in *.mp3
do
#do something with the filename $f.
done
from scdl.
Related Issues (20)
- Output invisible with white terminal background
- Not detecting m3u8/hls with non standard extension HOT 2
- Failing while downloading HOT 2
- TypeError: can only concatenate str (not "NoneType") to str HOT 1
- Changes downloaded song album to playlist name HOT 1
- Failed to download
- Disable color
- An error occurred downloading [Track] HOT 1
- --onlymp3 function not working HOT 2
- Any plans to publish scdl on brew?
- --flac not working and mp3s only download up to 128kpbs
- add multithreading HOT 2
- cannot download as of 18/03 > yesterday was working fine :( HOT 5
- zsh: command not found: scdl
- SCDL Has completely stopped working. HOT 5
- QoL Request: Add all options to config file
- TCP Error
- StopIteration Exception in is_client_id_valid() HOT 8
- I believe that soundcloud changed some endpoints HOT 1
- High quality download doesn't seem to work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scdl.