Parcourir la source

Add aggressive video ID v parameter extraction

master
JustAnotherArchivist il y a 2 ans
Parent
révision
56f21d1fc0
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. +2
    -0
      youtube-extract

+ 2
- 0
youtube-extract Voir le fichier

@@ -81,6 +81,8 @@ videoPattern = '|'.join([
r'/www\.youtube\.com/(all_comments|attribution|cthru|get_endscreen|livestreaming/dashboard)\?(.*&)?v=[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 # 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}',
# Generic v parameter on anything
r'[?&]v=[0-9A-Za-z_-]{11}(?=&|$)',
]) ])






Chargement…
Annuler
Enregistrer