浏览代码

Add aggressive video ID v parameter extraction

master
JustAnotherArchivist 2 年前
父节点
当前提交
56f21d1fc0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      youtube-extract

+ 2
- 0
youtube-extract 查看文件

@@ -81,6 +81,8 @@ videoPattern = '|'.join([
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}',
# Generic v parameter on anything
r'[?&]v=[0-9A-Za-z_-]{11}(?=&|$)',
])




正在加载...
取消
保存