From 5f5652e4eac96d22da095e6913c5e063676b9383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=B3nos?= Date: Tue, 19 Jan 2021 11:59:42 +0100 Subject: [PATCH] 1.2.1 fix yutube --- animeworld/__init__.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/animeworld/__init__.py b/animeworld/__init__.py index bf9e676..c765182 100644 --- a/animeworld/__init__.py +++ b/animeworld/__init__.py @@ -266,8 +266,8 @@ def _getFileLink(self): soupeddata = BeautifulSoup(sb_get.content, "html.parser") sb_get.raise_for_status() - yutubelink_raw = re.search(r'"(https:\/\/www\.youtube\.com\/watch\?v=.+)"\);', soupeddata.prettify()).group(1) - return yutubelink_raw + yutubelink_raw = re.search(r'"(https:\/\/www\.youtube\.com\/embed\/.+)"\);', soupeddata.prettify()).group(1) + return yutubelink_raw.replace('embed/', 'watch?v=') def download(self, title=None): if title is None: title = self._defTitle diff --git a/setup.py b/setup.py index 14cbbfd..1990c25 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="animeworld", # Replace with your own username - version="1.2.0", + version="1.2.1", author="MainKronos", author_email="lorenzo.chesi@live.it", description="AnimeWorld UNOFFICIAL API",