indentation fail :/

This commit is contained in:
Christoph Stahl 2024-06-17 17:08:10 +02:00
parent e5a2f88e0b
commit ae630b7236

View file

@ -39,10 +39,10 @@ class YouTube:
self._infos = YoutubeDL({"quiet": True}).extract_info(url, download=False) self._infos = YoutubeDL({"quiet": True}).extract_info(url, download=False)
if self._infos is None: if self._infos is None:
raise RuntimeError(f'Extraction not possible for "{url}"') raise RuntimeError(f'Extraction not possible for "{url}"')
self.length = self._infos["duration"] self.length = self._infos["duration"]
self.title = self._infos["title"] self.title = self._infos["title"]
self.author = self._infos["channel"] self.author = self._infos["channel"]
self.watch_url = url self.watch_url = url
else: else:
self.length = 0 self.length = 0
self.title = "" self.title = ""