function help() {
echo "Script returns first 7 signs of immudex commit ID.";
echo;
- echo "Usage: immudex-version [-h] [-v]";
+ echo "Usage: immudex-commit [-h] [-v]";
echo;
echo "Options:";
echo " -h Print this message.";
}
function version(){
- echo "immudex-version 1.1";
+ echo "immudex-commit 1.0";
echo;
echo "Copyright (C) 2026 morketsmerke.org";
echo "This is free software; see the source for copying conditions. There is NO";
def getFormat(videoID):
subprocess.run(['yt-dlp', '--list-formats', 'https://youtube.com/watch?v=' + videoID])
f = input("Please choose youtube video format, you need put video+audio ID of quality in this format or type anything else to quit:")
- if not re.search("[0-9]{3}\+[0-9]{3}|[0-9]{2}", f):
+ if not re.search(r"[0-9]{3}\\+[0-9]{3}|[0-9]{2}", f):
sys.exit(0)
else:
return f
if option == '-s':
if len(sys.argv) > 2:
- if sys.argv[2] == '-v':
+ if sys.argv[3] == '-v':
mode = "video"
elif sys.argv[2] == '-a':
mode = "audio"
else:
usage()
sys.exit(2)
- keywords = sys.argv[1]
+ keywords = sys.argv[2]
video = ytSearch(keywords)
subprocess.run('clear')