From b0cce734e298492af6bc5143ae3a7a81c8cfe1b2 Mon Sep 17 00:00:00 2001 From: Commandcracker <49335821+Commandcracker@users.noreply.github.com> Date: Wed, 12 Jun 2024 20:02:00 +0200 Subject: [PATCH] Fixed SyntaxError in f-string --- src/gucken/__init__.py | 2 +- src/gucken/hoster/doodstream.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gucken/__init__.py b/src/gucken/__init__.py index 7fbad47..8ded7a6 100644 --- a/src/gucken/__init__.py +++ b/src/gucken/__init__.py @@ -1,4 +1,4 @@ import warnings warnings.filterwarnings('ignore', message='Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning') -__version__ = "0.2.0" +__version__ = "0.2.1" diff --git a/src/gucken/hoster/doodstream.py b/src/gucken/hoster/doodstream.py index 83254b1..15e819c 100644 --- a/src/gucken/hoster/doodstream.py +++ b/src/gucken/hoster/doodstream.py @@ -30,6 +30,6 @@ async def get_direct_link(self) -> DirectLink: # Require Referer response2 = await client.get(str(response1.url.copy_with(path=match.group()))) return DirectLink( - url=f"{response2.text}{random_str()}?token={match.group("token")}&expiry={js_date_now()}", + url=f"{response2.text}{random_str()}?token={match.group('token')}&expiry={js_date_now()}", headers={"Referer": str(response2.url.copy_with(path="/"))}, )