This website works better with JavaScript.
Почетна
Преглед
Помоћ
Пријавите Се
JustAnotherArchivist
/
little-things
Прати
2
Волим
0
Креирај огранак
0
Код
Дискусије
0
Захтеви за спајање
0
Издања
0
Вики
Activity
Преглед изворни кода
Fix removenonyt performance by using simpler fixed-string patterns instead of a PCRE
master
JustAnotherArchivist
пре 2 година
родитељ
b27a428787
комит
6d019e63fc
1 измењених фајлова
са
1 додато
и
1 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
youtube-extract
+ 1
- 1
youtube-extract
Прегледај датотеку
@@ -23,7 +23,7 @@ domainPattern = re.compile(r'/(www\.|m\.)?(youtube\.(com|de|fr|co\.uk|it|es|at|p
if mode == 'removenonyt':
# Anything in here could never be as fast as grep, so just delegate to that...
os.execlp('grep', 'grep', '-
P', domainPattern.pattern + '|' + domainPattern.pattern.replace('/', '%2F') + '|/youtu\.be/|%2Fyoutu\.be%2F
')
os.execlp('grep', 'grep', '-
Fai', '-e', 'youtube', '-e', 'youtu.be', '-e', 'ytimg.com', '-e', '?v=', '-e', '%3Fv%3D', '-e', '&v=', '-e', '%26v%3D
')
sys.exit(0)
assert mode == 'massage'
Write
Preview
Loading…
Откажи
Сачувај