diff options
author | DemonKingSwarn <rockingswarn@gmail.com> | 2024-02-01 01:55:28 +0530 |
---|---|---|
committer | DemonKingSwarn <rockingswarn@gmail.com> | 2024-02-01 01:55:28 +0530 |
commit | aaab15c874e66a552c5753d953484bb67bc027e6 (patch) | |
tree | 42037d1bfdda94f88e2544648fc44e4ff2b849d2 | |
parent | 20b2211ba5ab7e78f3c89d94d6f781951c7e19d5 (diff) | |
download | yt-music-aaab15c874e66a552c5753d953484bb67bc027e6.zip yt-music-aaab15c874e66a552c5753d953484bb67bc027e6.tar.gz |
chore: fixed unregognized video id error
-rw-r--r-- | pyproject.toml | 2 | ||||
-rw-r--r-- | yt_music/__version__.py | 2 | ||||
-rw-r--r-- | yt_music/__yt_music__.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/pyproject.toml b/pyproject.toml index 5efa70d..0a9b23c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "yt-music" -version = "0.0.1b" +version = "0.0.2" description = "A command line YouTube Music client." authors = ["DemonKingSwarn <rockingswarn@gmail.com>"] license = "GPLv3" diff --git a/yt_music/__version__.py b/yt_music/__version__.py index 1d92fa6..18bf362 100644 --- a/yt_music/__version__.py +++ b/yt_music/__version__.py @@ -1 +1 @@ -__core__ = "0.0.1b" +__core__ = "0.0.2" diff --git a/yt_music/__yt_music__.py b/yt_music/__yt_music__.py index c87a6fd..3f0d6ef 100644 --- a/yt_music/__yt_music__.py +++ b/yt_music/__yt_music__.py @@ -32,9 +32,9 @@ opts = [] def extract_video_id(video_title): - pattern = r' - (\w+)$' + match = re.search(r' - ([\w-]+)$', video_title) - match = re.search(pattern, video_title) + #match = re.search(pattern, video_title) if match: video_id = match.group(1) |