anipy-cli 3.0.3__py3-none-any.whl → 3.0.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of anipy-cli might be problematic. Click here for more details.
- anipy_cli/__init__.py +1 -1
- anipy_cli/clis/history_cli.py +1 -1
- anipy_cli/clis/mal_cli.py +2 -2
- anipy_cli/menus/mal_menu.py +4 -4
- anipy_cli/prompts.py +6 -3
- {anipy_cli-3.0.3.dist-info → anipy_cli-3.0.4.dist-info}/METADATA +1 -1
- {anipy_cli-3.0.3.dist-info → anipy_cli-3.0.4.dist-info}/RECORD +9 -9
- {anipy_cli-3.0.3.dist-info → anipy_cli-3.0.4.dist-info}/WHEEL +0 -0
- {anipy_cli-3.0.3.dist-info → anipy_cli-3.0.4.dist-info}/entry_points.txt +0 -0
anipy_cli/__init__.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__appname__ = "anipy-cli"
|
|
2
|
-
__version__ = "3.0.
|
|
2
|
+
__version__ = "3.0.4"
|
anipy_cli/clis/history_cli.py
CHANGED
|
@@ -41,7 +41,7 @@ class HistoryCli(CliBase):
|
|
|
41
41
|
print("You have no History, exiting")
|
|
42
42
|
sys.exit(0)
|
|
43
43
|
|
|
44
|
-
entry = inquirer.
|
|
44
|
+
entry = inquirer.fuzzy( # type: ignore
|
|
45
45
|
message="Select History Entry:",
|
|
46
46
|
choices=history,
|
|
47
47
|
long_instruction="To cancel this prompt press ctrl+z",
|
anipy_cli/clis/mal_cli.py
CHANGED
|
@@ -30,7 +30,7 @@ class MalCli(CliBase):
|
|
|
30
30
|
|
|
31
31
|
if not self.user:
|
|
32
32
|
self.user = inquirer.text( # type: ignore
|
|
33
|
-
"Your MyAnimeList Username:
|
|
33
|
+
"Your MyAnimeList Username:",
|
|
34
34
|
validate=lambda x: len(x) > 1,
|
|
35
35
|
invalid_message="You must enter a username!",
|
|
36
36
|
long_instruction="Hint: You can save your username and password in the config!",
|
|
@@ -38,7 +38,7 @@ class MalCli(CliBase):
|
|
|
38
38
|
|
|
39
39
|
if not self.password:
|
|
40
40
|
self.password = inquirer.secret( # type: ignore
|
|
41
|
-
"Your MyAnimeList Password:
|
|
41
|
+
"Your MyAnimeList Password:",
|
|
42
42
|
transformer=lambda _: "[hidden]",
|
|
43
43
|
validate=lambda x: len(x) > 1,
|
|
44
44
|
invalid_message="You must enter a password!",
|
anipy_cli/menus/mal_menu.py
CHANGED
|
@@ -86,7 +86,7 @@ class MALMenu(MenuBase):
|
|
|
86
86
|
anime = inquirer.fuzzy( # type: ignore
|
|
87
87
|
message="Select Show:",
|
|
88
88
|
choices=[Choice(value=r, name=self._format_mal_anime(r)) for r in results],
|
|
89
|
-
transformer=lambda x:
|
|
89
|
+
transformer=lambda x: x.split("|")[-1].strip(),
|
|
90
90
|
long_instruction="To skip this prompt press crtl+z",
|
|
91
91
|
mandatory=False,
|
|
92
92
|
).execute()
|
|
@@ -153,7 +153,7 @@ class MALMenu(MenuBase):
|
|
|
153
153
|
message="View your List",
|
|
154
154
|
choices=mylist,
|
|
155
155
|
mandatory=False,
|
|
156
|
-
transformer=lambda x:
|
|
156
|
+
transformer=lambda x: x.split("|")[-1].strip(),
|
|
157
157
|
long_instruction="To skip this prompt press ctrl+z",
|
|
158
158
|
).execute()
|
|
159
159
|
|
|
@@ -547,7 +547,7 @@ class MALMenu(MenuBase):
|
|
|
547
547
|
|
|
548
548
|
for f in failed:
|
|
549
549
|
cprint("Manually mapping ", colors.BLUE, f.title)
|
|
550
|
-
anime = search_show_prompt("mal")
|
|
550
|
+
anime = search_show_prompt("mal", skip_season_search=True)
|
|
551
551
|
if not anime:
|
|
552
552
|
continue
|
|
553
553
|
|
|
@@ -618,7 +618,7 @@ class MALMenu(MenuBase):
|
|
|
618
618
|
choices=[
|
|
619
619
|
Choice(value=r, name=self._format_mal_anime(r)) for r in results
|
|
620
620
|
],
|
|
621
|
-
transformer=lambda x:
|
|
621
|
+
transformer=lambda x: x.split("|")[-1].strip(),
|
|
622
622
|
long_instruction="To skip this prompt press crtl+z",
|
|
623
623
|
mandatory=False,
|
|
624
624
|
).execute()
|
anipy_cli/prompts.py
CHANGED
|
@@ -25,8 +25,10 @@ if TYPE_CHECKING:
|
|
|
25
25
|
from anipy_api.provider import Episode
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
def search_show_prompt(
|
|
29
|
-
|
|
28
|
+
def search_show_prompt(
|
|
29
|
+
mode: str, skip_season_search: bool = False
|
|
30
|
+
) -> Optional["Anime"]:
|
|
31
|
+
if not (Config().skip_season_search or skip_season_search):
|
|
30
32
|
season_provider = None
|
|
31
33
|
for p in get_prefered_providers(mode):
|
|
32
34
|
if p.FILTER_CAPS & (
|
|
@@ -65,7 +67,8 @@ def search_show_prompt(mode: str) -> Optional["Anime"]:
|
|
|
65
67
|
|
|
66
68
|
if len(results) == 0:
|
|
67
69
|
error("no search results")
|
|
68
|
-
|
|
70
|
+
# Do not prompt for season again
|
|
71
|
+
return search_show_prompt(mode, skip_season_search=True)
|
|
69
72
|
|
|
70
73
|
anime = inquirer.fuzzy( # type: ignore
|
|
71
74
|
message="Select Show:",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
anipy_cli/__init__.py,sha256=
|
|
1
|
+
anipy_cli/__init__.py,sha256=INBjTXOj0xTMBuRv4vxJZ6vr0z90rqzzPFNCKVsWqcg,48
|
|
2
2
|
anipy_cli/arg_parser.py,sha256=r2yxTYqKdhKvbzj8Pg00_4lmhK8mguxAVbg9G2vM-II,5299
|
|
3
3
|
anipy_cli/cli.py,sha256=Ah5BE-u_SjcuzU5dQ5cSHtUloVRApCWwTK5i49yQtH8,1922
|
|
4
4
|
anipy_cli/clis/__init__.py,sha256=Y00uiPWiMvvRImxJMvfLA55BOkMUOrrx5vJUNvquNsY,411
|
|
@@ -6,8 +6,8 @@ anipy_cli/clis/base_cli.py,sha256=CC8L9gKhzWpduHHdHyvuh004YbP1LUTCx3woiwV08fc,60
|
|
|
6
6
|
anipy_cli/clis/binge_cli.py,sha256=eSvdOo_BRSb8-Xp48ZDcelqUBlDPdyQqu8OV0vc4szo,2281
|
|
7
7
|
anipy_cli/clis/default_cli.py,sha256=lBjPAhdhIQRkvjHDsmkxrgv_T-_70YpCt6QR14g0e1o,2815
|
|
8
8
|
anipy_cli/clis/download_cli.py,sha256=MSNiLpkotdRY4SeHEmxIcSb6thNmx__ABpfCyailKz0,3197
|
|
9
|
-
anipy_cli/clis/history_cli.py,sha256=
|
|
10
|
-
anipy_cli/clis/mal_cli.py,sha256=
|
|
9
|
+
anipy_cli/clis/history_cli.py,sha256=rasCltdg7rDYGi1NFvCjOTvYuuuNLNA3IXS0eAldVWc,2675
|
|
10
|
+
anipy_cli/clis/mal_cli.py,sha256=_tSLgDUOa6GOZNyCncSSzaVj088y5GAKkHVRSndLLxk,2258
|
|
11
11
|
anipy_cli/clis/seasonal_cli.py,sha256=GV2TQNm9UotG1cxfYbrFFgg7Jmy8SFa7w_GlFtPdRVE,616
|
|
12
12
|
anipy_cli/colors.py,sha256=voXC7z1Fs9tHg4zzNTNMIrt9k-EVgJ3_xEf5KiW2xgo,916
|
|
13
13
|
anipy_cli/config.py,sha256=Q0RqI_aX5V5I35qT0mG7YLuxzVbMUuf3331RdSUk7E0,15404
|
|
@@ -15,12 +15,12 @@ anipy_cli/discord.py,sha256=c6mdqnEdblzZBYs3cGP66oDeS4ySm59OfTRP-R-Duls,1160
|
|
|
15
15
|
anipy_cli/mal_proxy.py,sha256=wIsku2_dl8vKD2K99L63OlzA3L5fl-VmyeiXC9VrxI4,6981
|
|
16
16
|
anipy_cli/menus/__init__.py,sha256=aIzbphxAW-QGfZwR1DIegFZuTJp1O3tSUnai0f0f4lY,185
|
|
17
17
|
anipy_cli/menus/base_menu.py,sha256=g5b9Z7SpvCxcq_vqObcPzxLwcXeGPltLgSwa0sEzyfk,1140
|
|
18
|
-
anipy_cli/menus/mal_menu.py,sha256=
|
|
18
|
+
anipy_cli/menus/mal_menu.py,sha256=jJDN0qu4rVIb4nFQ30KR4KcYHZIK-ES-cu62SzU9joo,24077
|
|
19
19
|
anipy_cli/menus/menu.py,sha256=raHBeNQ5NNXOrTr1pCoE44FlOXWrqa1f1_kk1Rk3bH4,6179
|
|
20
20
|
anipy_cli/menus/seasonal_menu.py,sha256=VBmeXanJb-vS5TXiK79KgtJ5vPW87gIOdpN_EijAG_U,9097
|
|
21
|
-
anipy_cli/prompts.py,sha256=
|
|
21
|
+
anipy_cli/prompts.py,sha256=JPy-ymFLk5-th3JOYCbYqh2xoPjVveI0BP5KuSVRKa8,7119
|
|
22
22
|
anipy_cli/util.py,sha256=D5WD3zJpGFsk95zWGTaFiRLGUuhxsYFhq9A7LsEscn8,7684
|
|
23
|
-
anipy_cli-3.0.
|
|
24
|
-
anipy_cli-3.0.
|
|
25
|
-
anipy_cli-3.0.
|
|
26
|
-
anipy_cli-3.0.
|
|
23
|
+
anipy_cli-3.0.4.dist-info/METADATA,sha256=qzgHGPPQ7A4pph45RjMzmxkpHvvCZq86Z56TlyHHuRk,3084
|
|
24
|
+
anipy_cli-3.0.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
25
|
+
anipy_cli-3.0.4.dist-info/entry_points.txt,sha256=86iXpcm_ECFndrt0JAI2mqYfXC2Ar7mGi0iOaxCrNP0,51
|
|
26
|
+
anipy_cli-3.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|