Skip to content

Commit 240f753

Browse files
committed
Piccole correzioni
1 parent 0015764 commit 240f753

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

animeworld/episodio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def __setServer(self, links: List[Dict], numero: str) -> List[Server]: # Per ogn
147147
]
148148
```
149149
"""
150-
ret = [] # lista dei server
150+
ret: List[Server] = [] # lista dei server
151151
for prov in links:
152152
if prov["id"] == 4:
153153
ret.append(YouTube(prov["link"], prov["id"], prov["name"], numero))

animeworld/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, file, funName, line):
3333
super().__init__(self.message)
3434

3535
class HardStoppedDownload(Exception):
36-
"""Il file in download è stato forsatamente interrotto."""
36+
"""Il file in download è stato forzatamente interrotto."""
3737
def __init__(self):
38-
self.message = "Il file in download è stato forsatamente interrotto."
38+
self.message = "Il file in download è stato forzatamente interrotto."
3939
super().__init__(self.message)

animeworld/server.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,6 @@ def _getFileLink(self):
414414

415415
sb_get = SES.get(self.link, allow_redirects=False)
416416

417-
with open('inde.html', 'wb') as f:
418-
f.write(sb_get.content)
419-
420417
if sb_get.status_code == 200:
421418
soupeddata = BeautifulSoup(sb_get.content, "html.parser")
422419

0 commit comments

Comments
 (0)