A Youtube video can be watched standalone or it could be a part of a playlist.
Example:
https://www.youtube.com/watch?v=vbsNiOkm0BU and
https://www.youtube.com/watch?v=vbsNiOkm0BU&index=141&list=UUmM7KPLEthAXiPVAgBF6rhA
Notice the part vbsNiOkm0BU
.
The question is to get this part for all the videos of the channel/playlist.
The motive is to download all the videos of this channel (approximately 3600). But I haven't got success with youtube-dl
downloading all at once.
So I wish to download it in bunch of 100s, as an example.
If I could take this question further, can I write a bash script to download only particular indexes of a playlist?
If you see the above link:
https://www.youtube.com/watch?v=vbsNiOkm0BU&index=141&list=UUmM7KPLEthAXiPVAgBF6rhA
Notice the part &index=141
.
Now if do something like this:
for i in {100..200}
do
youtube-dl https://www.youtube.com/watch?v=vbsNiOkm0BU&index=${i}&list=UUmM7KPLEthAXiPVAgBF6rhA
done
Notice the part &index=${i}
.
This is downloading the same video again and again, due to vbsNiOkm0BU
.
Any help on this would be greatly appreciated. Thank you.
--output "%(title)s"
. Can I also convert it to lower case? – Rishiraj Surti Dec 07 '16 at 10:46