Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 69ecf31

Browse files
committed
updated README + pylint stuff
1 parent 6126cc6 commit 69ecf31

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

scripts/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

scripts/utils/downloader.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
__all__: list[str] = ["PlaylistDownloader", "VideoDownloader"]
2020

21+
2122
class 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

0 commit comments

Comments
 (0)