shithub: nvi

Download patch

ref: 67f145ccd1617605c4984f5566fbeadfce390101
parent: aa9281fc25f282f341727e0a62e6bc6ad1288a2c
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Jul 7 05:26:23 EDT 2021

fix youtube http(s) links parsing

--- a/nvi.c
+++ b/nvi.c
@@ -78,7 +78,7 @@
 		usage();
 	vid = argv[0];
 	if(strncmp(argv[0], "http", 4) == 0){
-		if(strstr(argv[0], "youtu") != nil && (vid = strrchr(argv[0], '/')) != nil)
+		if(strstr(argv[0], "youtu") != nil && (vid = strrchr(argv[0], '=')) != nil)
 			vid++;
 		else
 			fun = peertube;