yt-dlp seems to take the termux internal files path as HOME (Linux principal directory). Adding the appContext.filesDir provided by the app that is using youtubedl-android as HOME, we force the python enviroment to take that variable as main directory and not Termux one.
yt-dlp seems to take the termux internal files path as HOME (Linux principal directory). Adding the appContext.filesDir provided by the app that is using youtubedl-android as HOME, we force the python enviroment to take that variable as main directory and not Termux one.