From 0c7115dda24d271029d4dbeb5255b563d776e096 Mon Sep 17 00:00:00 2001 From: "Sp4rk.y" Date: Sat, 7 Sep 2024 20:33:40 -0600 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20(DROP/=5F=5Finit=5F=5F.py)?= =?UTF-8?q?:=20reformat=20long=20lines=20for=20better=20readability=20and?= =?UTF-8?q?=20maintainability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/DROP/__init__.py | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/services/DROP/__init__.py b/services/DROP/__init__.py index a518fc1..c278e16 100644 --- a/services/DROP/__init__.py +++ b/services/DROP/__init__.py @@ -26,7 +26,9 @@ class DROP(Service): TITLE_RE = r"^(?:https?://(?:www\.)?dropout\.tv/)([^/]+)(?:/.*)?$" SERIES_RE = r"https?://(?:www\.)?dropout\.tv/([^/]+)(?:/season:(\d+))?/?$" - EPISODE_RE = r"https?://(?:www\.)?dropout\.tv/([^/]+)/season:(\d+)/videos/([^/]+)/?$" + EPISODE_RE = ( + r"https?://(?:www\.)?dropout\.tv/([^/]+)/season:(\d+)/videos/([^/]+)/?$" + ) LOGIN_URL = "https://www.dropout.tv/login" @@ -58,7 +60,9 @@ class DROP(Service): "utf8": "true", } - response = self.session.post(self.LOGIN_URL, data=login_data, allow_redirects=False) + response = self.session.post( + self.LOGIN_URL, data=login_data, allow_redirects=False + ) if '