Lidl-Soundboard icon indicating copy to clipboard operation
Lidl-Soundboard copied to clipboard

Make youtube video links work

Open devolution2409 opened this issue 6 years ago • 5 comments

Using stuff described in those two threads: 1 - Leddit and 2 - Leddit Again

One could write a small piece of code doing the following:

1 checking for the URL against youtube.whatever or youtu.be

2 performing the aforementionned transformation to get the audio only links

  • will be "easily" doable for not-licenced content
  • for licence content, one must write a piece of code that's able to decypher youtube stuff (see 3 - pastebin)

3 Swapping the URL the user added for the audio only one :)

It could be done right when the user adds the url, in wrapperproperties.cpp, in the AddSoundFromUrl() method

devolution2409 avatar Feb 14 '19 19:02 devolution2409

QUrl QUrl::fromEncoded(const QByteArray & input)

EleGiggle

devolution2409 avatar Apr 12 '19 23:04 devolution2409

https://doc.qt.io/qt-5/qtwebengine-index.html

devolution2409 avatar Apr 12 '19 23:04 devolution2409

Careful, the url has a ?expire=1555130547 token inside which seems to be a unix epoch timestamp

So basically whenever soundboard is reloaded, youtube links needs to be "regenerated"

devolution2409 avatar Apr 14 '19 10:04 devolution2409

Find a way to fix socket not connecting -> 3605630

devolution2409 avatar Apr 14 '19 10:04 devolution2409

  • Specialize LIDL::SoundFile for youtube links?
    • Writer a builder that will build the correct object depending on if the link is youtube or not?

devolution2409 avatar Apr 14 '19 17:04 devolution2409