ソースを参照

Handle a few more odd and rare URLs

master
JustAnotherArchivist 2年前
コミット
9f88f76e59
1個のファイルの変更1行の追加0行の削除
  1. +1
    -0
      youtube-extract

+ 1
- 0
youtube-extract ファイルの表示

@@ -78,6 +78,7 @@ videoPattern = '|'.join([
r'/www\.youtube\.com/(ptracking|set_awesome)\?(.*&)?video_id=[0-9A-Za-z_-]{11}',
r'/www\.youtube\.com/api/timedtext\?(.*&)?v=[0-9A-Za-z_-]{11}',
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}',
])


読み込み中…
キャンセル
保存