From dd93459922456f0cd38332f2a4c18eaf7656944e Mon Sep 17 00:00:00 2001 From: Simon Sawicki Date: Thu, 7 Aug 2025 21:02:02 -0700 Subject: [PATCH] Protect against None --- yt_dlp/extractor/motherless.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/motherless.py b/yt_dlp/extractor/motherless.py index cad5aa085a..e236ec3db8 100644 --- a/yt_dlp/extractor/motherless.py +++ b/yt_dlp/extractor/motherless.py @@ -170,7 +170,7 @@ class MotherlessPaginatedIE(InfoExtractor): raise NotImplementedError('This method must be implemented by subclasses') def _correct_title(self, title, /): - return title.partition(' - Videos')[0] + return title.partition(' - Videos')[0] if title else None def _extract_entries(self, webpage, base): for mobj in re.finditer(r'href="[^"]*(?P/[A-F0-9]+)"\s+title="(?P[^"]+)',