This repository was archived by the owner on Jun 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,7 @@ The icon can be found [here](https://imgs.search.brave.com/-YtNT5BoWqxmDjwakgEUW
3030
3131** WARNING: DOWNLOADING COPYRIGHTED MATERIAL IS HIGHLY ILLEGAL! I DO NOT TAKE ANY RESPONSIBILITY FOR YOUR USAGE OF THIS TOOL!**
3232
33- Note that `` pytube `` occasionally shows some issues.
34-
33+ Note that `` pytube `` occasionally shows some issues with downloading playlists.
3534
3635## Download
3736
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ def main() -> None:
8181 "Video or playlist is unreachable or invalid." ,
8282 ).create ()
8383
84- except Exception as exce :
84+ except Exception as exce : # pylint: disable=broad-exception-caught
8585 ErrorWindow (
8686 exce ,
8787 "Unexpected error\n "
Original file line number Diff line number Diff line change 1818
1919__all__ : list [str ] = ["PlaylistDownloader" , "VideoDownloader" ]
2020
21+
2122class PlaylistDownloader (YouTubeDownloader ):
2223 """Class that contains and creates the window and necessary methods to download a YouTube playlist."""
2324
@@ -179,7 +180,9 @@ def create_window(self) -> None:
179180 while True :
180181 event , values = self .download_window .read () # type: ignore
181182 try :
182- self .folder : str = values ["-FOLDER-" ]
183+ self .folder : str = ( # pylint: disable=attribute-defined-outside-init
184+ values ["-FOLDER-" ]
185+ )
183186 except TypeError :
184187 break
185188
@@ -388,7 +391,9 @@ def create_window(self) -> None:
388391 while True :
389392 event , values = self .download_window .read () # type: ignore
390393 try :
391- self .folder : str = values ["-FOLDER-" ]
394+ self .folder : str = ( # pylint: disable=attribute-defined-outside-init
395+ values ["-FOLDER-" ]
396+ )
392397 except TypeError :
393398 break
394399
You can’t perform that action at this time.
0 commit comments