이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
로그인
JustAnotherArchivist
/
little-things
보기
2
좋아요
0
포크
0
코드
이슈
0
풀 리퀘스트
0
릴리즈
0
위키
활동
소스 검색
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'
쓰기
미리보기
불러오는 중...
취소
저장