Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need to listen to all videos of a certain youtube user. I say listen because I'm only interested in the audio. I want software that can accept the link to the user profile and play all of its files, newest first. I want it to save state and everytime I start it - play last video if it was interrupted in the middle, so it keeps going back and back. I need functionality similar to youtube-dl --download-archive playlist, but I don't need to store anything locally, just want to listen to the audio. CLI programs are fine too, just need to be free software.
I need to listen to all videos of a certain youtube user. I say listen because I'm only interested in the audio. I want software that can accept the link to the user profile and play all of its files, newest first. I want it to save state and everytime I start it - play last video if it was interrupted in the middle, so it keeps going back and back. I need functionality similar to youtube-dl --download-archive playlist, but I don't need to store anything locally, just want to listen to the audio. CLI programs are fine too, just need to be free software.
Thank you but I just hope that someone will tell me "this software does exactly what you need". Because I asked in forum after reading the whole youtube-dl manpage twice and not finding what I need. Either youtube-dl indeed can do it and I've managed to overlook it twice, or it can't, but some other software can, and I hope to learn about it here.
1. i'm not sure it works at all with whole playlists this way. with a single file, like in the example from the manpage, it works fine
2. it keeps downloading forward a lot, player can still be playing first file, while youtube-dl might be downloading many files ahead. i would like it to pause and wait till player finishes to play current file, then start to download next. but i suppose this would require two-way communication between youtube-dl and the player, which is not the case?
3. when i interrupt youtube-dl with Ctrl-C, for some reason it won't write the playlist file. when i download files without -o -, but with archive persistence, the playlist file is written fine
i'm close to giving up and just download everything locally first
You can make a little script to search UT for url's with bash and friends,
save results to .txt,
Code:
#! /usr/bin/env bash
#User agent
agent="Mozilla/5.0"
#url segments for search by date posted
url="https://www.youtube.com/results?search_query="
by_date="&search_sort=video_date_uploaded"
#Get user search word input
read -p "Enter ut search word/s | cars or big+red+cars: " s_word
#Get page, save as $var
ut_page=$(curl -A "$agent" "$url""$s_word""$by_date")
#Read the page, grep for string, make url, redirect to .txt
while read line; do
if [ "$line" != "" ]; then
echo "http://www.youtube.com"$line""
fi
done < <(echo "$ut_page" |
grep -oP 'class="yt-lockup-title "><a href="\K[^"]+'
) | grep "http://www.youtube.com/watch?v=" > UTSearch.txt
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.