Removed terminal logging problems on Unraid
This commit is contained in:
1 parent
a84f87c906
commit
77e59c2898
1 file changed
+11
-12
@@ -62,6 +62,14 @@ class Manga:
|
|||||||
print(info)
|
print(info)
|
||||||
|
|
||||||
def choose_chapters(self, auto):
|
def choose_chapters(self, auto):
|
||||||
|
if auto:
|
||||||
|
self.chapters = [
|
||||||
|
chapter
|
||||||
|
for chapter in self.chapters
|
||||||
|
if chapter.get("nr") not in self.cached
|
||||||
|
]
|
||||||
|
return
|
||||||
|
|
||||||
choices = [
|
choices = [
|
||||||
questionary.Choice(
|
questionary.Choice(
|
||||||
f"{chapter.get('nr'):g}: {chapter.get('title')}",
|
f"{chapter.get('nr'):g}: {chapter.get('title')}",
|
||||||
@@ -70,18 +78,9 @@ class Manga:
|
|||||||
)
|
)
|
||||||
for chapter in self.chapters
|
for chapter in self.chapters
|
||||||
]
|
]
|
||||||
self.chapters = (
|
self.chapters = questionary.checkbox(
|
||||||
questionary.checkbox("Choose which chapters to download", choices)
|
"Choose which chapters to download", choices
|
||||||
.skip_if(
|
).ask()
|
||||||
auto,
|
|
||||||
[
|
|
||||||
chapter
|
|
||||||
for chapter in self.chapters
|
|
||||||
if chapter.get("nr") not in self.cached
|
|
||||||
],
|
|
||||||
)
|
|
||||||
.ask()
|
|
||||||
)
|
|
||||||
|
|
||||||
def download(self, save_dir: Path):
|
def download(self, save_dir: Path):
|
||||||
series_name = self.info.get('series', 'Unknown')
|
series_name = self.info.get('series', 'Unknown')
|
||||||
|
|||||||
Reference in new issue
Block a user