소스 검색

Handle optional slash in generic watch matcher

master
JustAnotherArchivist 2 년 전
부모
커밋
99c83eb331
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      youtube-extract

+ 1
- 1
youtube-extract 파일 보기

@@ -80,7 +80,7 @@ videoPattern = '|'.join([
r'/www\.youtube\.com/(my_videos_)?edit\?(.*&)?video_id=[0-9A-Za-z_-]{11}',
r'/www\.youtube\.com/(all_comments|attribution|cthru|get_endscreen|livestreaming/dashboard)\?(.*&)?v=[0-9A-Za-z_-]{11}',
# Generic v parameter on watch URLs including with percent encoding; this covers e.g. google.com/url?... or the oEmbed
r'/watch\?(.*&)?v=[0-9A-Za-z_-]{11}',
r'/watch/?\?(.*&)?v=[0-9A-Za-z_-]{11}',
])




불러오는 중...
취소
저장