GithubHelp home page GithubHelp logo

Name output file manually about scdl HOT 6 CLOSED

flyingrub avatar flyingrub commented on May 12, 2024
Name output file manually

from scdl.

Comments (6)

flyingrub avatar flyingrub commented on May 12, 2024

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.

travs avatar travs commented on May 12, 2024

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.

flyingrub avatar flyingrub commented on May 12, 2024

I will try something later ;)

from scdl.

flyingrub avatar flyingrub commented on May 12, 2024

just something : why don't you just check for track in your folder and then use them in your script ?

from scdl.

travs avatar travs commented on May 12, 2024

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.

flyingrub avatar flyingrub commented on May 12, 2024
for f in *.mp3
do
    #do something with the filename $f.
done

from scdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.