Fixed issue where file extenions not found and auth timeout

This commit is contained in:
2025-10-24 13:43:03 +13:00
parent 7580dc3f94
commit 6d9a078656
12 changed files with 1272 additions and 15 deletions
@@ -20,12 +20,19 @@ class YtdlpFallback(BaseFallbackDownloader, Youtube):
super(YtdlpFallback, self).__init__(post)
def find_resources(self, authenticator: Optional[SiteAuthenticator] = None) -> list[Resource]:
logger.debug(f"YtdlpFallback processing URL: {self.post.url}")
video_attrs = super().get_video_attributes(self.post.url)
logger.debug(f"Video attributes: {video_attrs}")
extension = video_attrs.get("ext", None)
logger.debug(f"Using extension: {extension}")
out = Resource(
self.post,
self.post.url,
super()._download_video({}),
super().get_video_attributes(self.post.url)["ext"],
extension,
)
logger.debug(f"Created resource with extension: {out.extension}")
return [out]
@staticmethod