Youtube-DL binary can't be updated using the builtin updater because it lacks the Sailfish OS patch which is required to get it running.
The patch is very simple in the MakeFile:
/usr/bin/env python -> /usr/bin/env python3
But isn't included in the official releases of Youtube-DL.
Solutions:
Update Youtube-DL (before the build process) while compiling the RPM in release. This can be achieved in the .pro file using the following build macro: QMAKE_PRE_LINK
Update Youtube-DL at runtime. When using the internal updater we need to apply the patch somewhere. Or if we use QNetworkAccessManager to download the source code (after pulling the version information) then we can apply the patch before running: make youtube-dl . Clean up is necessary afterwards.
Youtube-DL binary can't be updated using the builtin updater because it lacks the Sailfish OS patch which is required to get it running.
The patch is very simple in the MakeFile:
/usr/bin/env python
->/usr/bin/env python3
But isn't included in the official releases of Youtube-DL.Solutions:
Update Youtube-DL (before the build process) while compiling the RPM in release. This can be achieved in the .pro file using the following build macro:
QMAKE_PRE_LINK
Update Youtube-DL at runtime. When using the internal updater we need to apply the patch somewhere. Or if we use QNetworkAccessManager to download the source code (after pulling the version information) then we can apply the patch before running:
make youtube-dl
. Clean up is necessary afterwards.Any other suggestions?