diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1cca608..3d00f6c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: rev: 23.10.1 hooks: - id: black - language_version: python3.11 + language_version: python3.12 - repo: https://github.com/asottile/pyupgrade rev: v3.15.0 hooks: @@ -28,10 +28,6 @@ repos: rev: v3.1.0 hooks: - id: add-trailing-comma -- repo: https://github.com/hadialqattan/pycln - rev: v2.3.0 - hooks: - - id: pycln default_language_version: - python: python3.11 + python: python3.12 diff --git a/pomice/pool.py b/pomice/pool.py index 64564af..5ad8930 100644 --- a/pomice/pool.py +++ b/pomice/pool.py @@ -704,7 +704,7 @@ class Node: ) else: - if not URLRegex.BASE_URL.match(query) and not re.match(r"(?:ytm?|sc)search:.", query): + if not URLRegex.BASE_URL.match(query) and not re.match(r"(?:[a-z]+?)search:.", query): query = f"{search_type}:{query}" # If YouTube url contains a timestamp, capture it for use later.