LibTerm icon indicating copy to clipboard operation
LibTerm copied to clipboard

Python module youtube-dL does not work

Open VincentCCandela opened this issue 5 years ago • 3 comments

Youtube-dL does not work because if it is run with arguments, then you always get sigabrt signal. Perhaps this problem occurs because of the presence of c code. If so, could you implement this module into the app?

VincentCCandela avatar Nov 17 '19 02:11 VincentCCandela

It's not possible to run C extensions in LibTerm

dullbananas avatar Nov 17 '19 02:11 dullbananas

youtube-dl does run, and doesn't need any C (more than was in the Python build).

The portable installation isn't as portable as necessary because it has this

#!/usr/bin/env python

and that fails to work because, presumably, of how LibTerm runs python (ie, there isn't actually a python or python3 binary on the PATH).

Instead, use python youtube-dl args...

Other issues suggest that python -m pip youtube-dl should work but I don't know if that provides a runnable youtube-dl command.

dirkf avatar Dec 04 '22 02:12 dirkf

Obvs I meant python -m pip install youtube-dl and that does work. You don't get a youtube-dl command, but python -m pip list shows the youtube_dl module, and python -m youtube_dl runs youtube-dl.

This would also apply s/youtube(-|_)dl/yt\1dlp/g.

dirkf avatar Dec 04 '22 11:12 dirkf