Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Cant get youtube-dl get working as an function #5607
Comments
|
Assuming this is shell script, you forgot to specify the arguments when you call youtube-dl that has been passed to your function. It should look alike this:
|
|
No i didnt forget that. Here is my script: loady () { loady --reject-title "bloodborne|creed|hex|fifa|league|storm" "https://www.youtube.com/user/PietSmittie/videos?&ab_channel=PietSmiet" |
|
Re-read my answer carefully. Arguments you pass to loady outside ( |
|
So I have to do?: 1="--reject-title "bloodborne|creed|hex|fifa|league|storm"" loady () { loady $1 $2 |
|
You are totally misusing it. I suggest you starting here. |
|
ohh I think you mean i should do that: options="--playlist-end 7 -w -r 1000K --no-mtime --write-thumbnail --output '%(uploader)s - %(title)s - %(resolution)s.%(ext)s' --date $(date +"%Y%m%d")" /usr/local/bin/youtube-dl $1 §2 |
So I dont know why I cant get youtube-dl get working as a function.
I tested also to just do loady --help but that doesnt work either.
I need help. Sry.
Here my test script:
loady () {
/usr/local/bin/youtube-dl -f 144
}
loady https://www.youtube.com/watch?v=XpTZlXn3pxY
My final code should look like that:
youtube1=""
youtube2=""
loady () {
/usr/local/bin/youtube-dl [options]
}
loady $youtube1 $youtube2