Browse Source

Handle more domains and case variations

master
JustAnotherArchivist 2 months ago
parent
commit
788b25707d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube-extract

+ 1
- 1
youtube-extract View File

@@ -18,7 +18,7 @@ if any(x in sys.argv for x in ['--help', '-h', '-?', 'help']):
mode = sys.argv[1] if len(sys.argv) >= 2 else 'massage'

# Only one slash before so it still matches inside URLs when slashes were collapsed.
domainPattern = re.compile(r'/(www\.)?(youtube\.(com|de|fr|co\.uk|it|es|at|pt|gr|hu|ro|pl|dk|no|se|fi|ee|lt|lv|ru|by|cz|sk|si|rs|hr|ca)|youtube-nocookie\.com)/')
domainPattern = re.compile(r'/(www\.|m\.)?(youtube\.(com|de|fr|co\.uk|it|es|at|pt|gr|hu|ro|pl|dk|no|se|fi|ee|lt|lv|ru|by|cz|sk|si|rs|hr|ca)|music\.youtube\.com|(es|uk|pl|ru|it|jp|br)\.youtube\.com|youtube-nocookie\.com)/', re.IGNORECASE)


if mode == 'removenonyt':


Loading…
Cancel
Save