From aaab15c874e66a552c5753d953484bb67bc027e6 Mon Sep 17 00:00:00 2001 From: DemonKingSwarn Date: Thu, 1 Feb 2024 01:55:28 +0530 Subject: chore: fixed unregognized video id error --- yt_music/__version__.py | 2 +- yt_music/__yt_music__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'yt_music') 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) -- cgit v1.1