Make youtube video links work
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
QUrl QUrl::fromEncoded(const QByteArray & input)
EleGiggle
https://doc.qt.io/qt-5/qtwebengine-index.html
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"
Find a way to fix socket not connecting -> 3605630
- Specialize LIDL::SoundFile for youtube links?
- Writer a builder that will build the correct object depending on if the link is youtube or not?