K-Relay Plugin Suggestion

Posts 1–10 of 10 · Page 1 of 1
K-Relay Plugin Suggestion
I am making a K-Relay Plugin that downloads the automatic closed captions off of a youtube video and types the song in chat. I think i have figured out how to download the captions but i need a good way to trigger the playback. Any ideas or suggestions would be helpful.
I have tried hooking a key to the proxy but the proxy.HookKey did not work. Also unable to test it due to K-Relay not working at this moment.
Kind of sidelined as well due to the fact that a lot of music videos don't have closed captioning(rip). Figured i may as well finish coding it.
Thanks.
I like the idea!
Quote Originally Posted by epicpawn View Post
I am making a K-Relay Plugin that downloads the automatic closed captions off of a youtube video and types the song in chat. I think i have figured out how to download the captions but i need a good way to trigger the playback. Any ideas or suggestions would be helpful.
I have tried hooking a key to the proxy but the proxy.HookKey did not work. Also unable to test it due to K-Relay not working at this moment.
Kind of sidelined as well due to the fact that a lot of music videos don't have closed captioning(rip). Figured i may as well finish coding it.
Thanks.
Tryna be as cool as Steve?
If steve is that white star that i remember chatting taylor swift lyrics, then yes. I am.
Set up a the service that goes and gets the song cc as its own class to be instantiated by your on command krelay method. Simply execute the service using the url you can get from the command args in the KRelay on command. Pass the service the URL, await the response, serialize it to text or whatever, then send to client a text packet containing the cc data from your service. bam.
@ruusey sounds a little complicated. Frankly, I'm not too knowledgeable on the whole K-Relay thing and haven't coded anything in a while (having just scratched the surface in school and such). What I've done is used a python script, youtube-dl, to download the automatically generated closed captioning and then sort through the vtt file to get rid of all the unnecessary text (time stamps and such), then I'll output that line by line in some yet to be devised organized fashion.
I'm thinking of just numbering the file downloads and just giving the user the option to choose which file to "playback" in a menu or something.
All i have done yet is download the file which I have yet to find out if it works through K-Relay.
One drawback is that python will need to be installed for the thing to function.

Currently wondering if i should delve into Regex, which looks complicated, in order to remove the excess text.
Quote Originally Posted by epicpawn View Post
@ruusey sounds a little complicated. Frankly, I'm not too knowledgeable on the whole K-Relay thing and haven't coded anything in a while (having just scratched the surface in school and such). What I've done is used a python script, youtube-dl, to download the automatically generated closed captioning and then sort through the vtt file to get rid of all the unnecessary text (time stamps and such), then I'll output that line by line in some yet to be devised organized fashion.
I'm thinking of just numbering the file downloads and just giving the user the option to choose which file to "playback" in a menu or something.
All i have done yet is download the file which I have yet to find out if it works through K-Relay.
One drawback is that python will need to be installed for the thing to function.
Oh yikes i would try and write a quick c# class that accomplishes the same thing you can probably find code for it online pretty easily to do it. Would make that a lot easier.
@ruusey A class to download the subtitles or to sort through the caption file?
Quote Originally Posted by epicpawn View Post
@ruusey A class to download the subtitles or to sort through the caption file?
A class for downloading the subtiles. There are tons of c# libs for web scraping or hitting APIs along with a bunch of snippets on how to use them.
Found one that works much better, and something to parse the file too. Its like everything has already been done for me! There is still the problem of most youtube music videos not having closed captioning but i guess you could always play TED talks or something like that.
Thanks for the help! @ruusey
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us