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)
- "path not found" error HOT 4
- Original File downloads broken HOT 3
- Invalid client_id HOT 2
- Having trouble with title tags on playlist download HOT 1
- Invalid client ID. Using a dynamically generated client_id.
- Downloading doesn't work anymore HOT 1
- Read Timeout error HOT 1
- Delete *.scdl.lock after all processes are complete HOT 3
- Log to stderr, download to stdout HOT 2
- sanitize_str function makes new character appear on Debian Linux HOT 1
- Android/Termux doesn't have flock, see yt-dlp solution HOT 4
- Document how scdl chooses which transcoding to download
- Issue on directory when working on lib HOT 2
- Debug session returns `false` on everything, then errors out. HOT 5
- --flac Broken Length/Bitrate HOT 1
- Download playlist failed HOT 6
- if original files are in album/playlist it doesn't tag the files with album/playlist info HOT 1
- --flac CLI option results in lossy audio file HOT 1
- Update install docs? HOT 3
- Make public test playlist use smaller songs
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.