Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
JustAnotherArchivist
/
little-things
Vigiar
2
Marcar como favorito
0
Derivar
0
Código
Questões
0
Pedidos de integração
0
Lançamentos
0
Wiki
Trabalho
Ver a proveniência
Fix removenonyt performance by using simpler fixed-string patterns instead of a PCRE
master
JustAnotherArchivist
há 2 anos
ascendente
b27a428787
cometimento
6d019e63fc
1 ficheiros alterados
com
1 adições
e
1 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+1
-1
youtube-extract
+ 1
- 1
youtube-extract
Ver ficheiro
@@ -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'
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar