Generates .M3U playlist of all YouTube videos in current subreddit listing for use in foobar2000 with the foo_youtube component.
This isn't maintained, look into R2YS - a foo_jscript_panel script for foobar2000.
Its use of the Reddit API requires an account though.
First off, foo_youtube is awesome! It enables you to listen to YouTube songs in Foobar, which opens up possibilities like making playlists, enqueuing tracks, remembering playback state, quickly mixing in a song you don't have in your library, using DSPs like Channel Mixer (surround sound up-mixing from stereo works wonders!). You're also free to restart the browser, and you don't have to wonder which of the hundred tabs the sound is coming from, LOL.
-
Copy the contents of the second file
Subreddit-to-YouTubeSource.min.js
-
Add a new bookmark
-
Name it something like Subreddits to YouTube Source, or however you want
-
In the URL field paste what you copied and Save
-
Go to Reddit, pick your favorite music subreddit and look for the listing you want.
-
Hot, new, top, try sorting. You can even add
&limit=10
to the address to load 10 songs per page instead of the usual 25. Optionally if you don't wanna mess about you can edit the bookmarklet's default which issubredditLimit = 100
#L29 -
When you're happy with the list click on the bookmarklet.
-
A file will be generated and you'll be prompted to save it (or it will start downloading automatically).
The filename will look like <coolsubreddit>-<hot>-<50>.m3u8.
Optionally you may also use the consolereddit.toM3U('myplaylist.m3u')
-
Open this file with Foobar and enjoy the tunes!
Dead videos will be replaced with a search, which will oftentimes work in the playlist like magic. However, after the search result finishes playing, another search result for the same song starts. You have to remove those manually.YouTube API v2 was deprecated, you need an API key for every call now. Dead videos will now be graciously skipped (thanks 3dyd!). If you want you can right click them individually and YouTube Source > Search replacement (manual).
Enjoy, and thank 3dyd for the component!