Package: yt-dlp Version: 2022.07.18-1~bpo11+1 Followup-For: Bug #1016003 X-Debbugs-Cc: okgomdjgbm...@gmail.com
Dear Maintainer, I fleshed out the proposal a bit more. The simplest possibillity is to make symlinks, of both the executable and module, to pretend they are youtube-dl and the module youyube_dl. This way, also python programs that load the module could work. A little bit better is this little wraper. you link the exec and module to it. ------------------ #!/usr/bin/python3 import sys from yt_dlp import * if __name__ == "__main__": args=sys.argv.copy() args.pop(0) args=['--compat-options','youtube-dl']+args main(args) -------------------- The compat options should improve the compatibility. Also, by using the cli options, it would risk less of breaking over time and keeping a fix stupid proof. Maybe a final improvement, would be to initialise the appropriate variable for the compatibility options, so that they are active in the module also. This would have a higher risk of breaking. I tested this with pafy(has an unrelated bug) and mpv on stable. This should stay relevent, for a whille.