From 34baaced11fc34ab38e39c45d1f6fccc09292404 Mon Sep 17 00:00:00 2001 From: Jelle Besseling Date: Fri, 24 Jun 2022 01:21:03 +0200 Subject: [PATCH] [extractor/dropout] Support cookies and login only as needed (#4075) Closes #4035 Authored by: pingiun, pukkandan --- yt_dlp/extractor/dropout.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/yt_dlp/extractor/dropout.py b/yt_dlp/extractor/dropout.py index 039ac4b2c..e280b1c9f 100644 --- a/yt_dlp/extractor/dropout.py +++ b/yt_dlp/extractor/dropout.py @@ -119,16 +119,16 @@ def _login(self, display_id): def _real_extract(self, url): display_id = self._match_id(url) - login_err, webpage = False, '' - try: + + webpage = None + if self._get_cookies('https://www.dropout.tv').get('_session'): + webpage = self._download_webpage(url, display_id) + if not webpage or '