anipy-cli 3.3.3__py3-none-any.whl → 3.3.5__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 CHANGED
@@ -1,2 +1,2 @@
1
1
  __appname__ = "anipy-cli"
2
- __version__ = "3.3.3"
2
+ __version__ = "3.3.5"
@@ -143,7 +143,7 @@ class DownloadComponent:
143
143
  get_download_path(anime, stream, parent_directory=self.dl_path),
144
144
  container=config.remux_to,
145
145
  ffmpeg=self.options.ffmpeg or config.ffmpeg_hls,
146
- post_dl_cb=get_post_download_scripts_hook(self.mode, anime)
146
+ post_dl_cb=get_post_download_scripts_hook(self.mode, anime, spinner)
147
147
  )
148
148
 
149
149
  @staticmethod
anipy_cli/menus/menu.py CHANGED
@@ -233,7 +233,7 @@ class Menu(MenuBase):
233
233
  get_download_path(self.anime, self.stream),
234
234
  container=config.remux_to,
235
235
  ffmpeg=self.options.ffmpeg or config.ffmpeg_hls,
236
- post_dl_cb=get_post_download_scripts_hook("default", self.anime)
236
+ post_dl_cb=get_post_download_scripts_hook("default", self.anime, s)
237
237
  )
238
238
 
239
239
  if Config().auto_open_dl_defaultcli:
anipy_cli/util.py CHANGED
@@ -121,12 +121,13 @@ def get_download_path(
121
121
 
122
122
  return download_folder / anime_name / filename
123
123
 
124
- def get_post_download_scripts_hook(mode: str, anime: "Anime") -> PostDownloadCallback:
124
+ def get_post_download_scripts_hook(mode: str, anime: "Anime", spinner: DotSpinner) -> PostDownloadCallback:
125
125
  config = Config()
126
126
  scripts = config.post_download_scripts[mode]
127
127
  timeout = config.post_download_scripts["timeout"]
128
128
 
129
129
  def hook(path: Path, stream: "ProviderStream"):
130
+ spinner.hide()
130
131
  arguments = [
131
132
  str(path), anime.name,
132
133
  str(stream.episode), anime.provider.NAME,
@@ -135,6 +136,7 @@ def get_post_download_scripts_hook(mode: str, anime: "Anime") -> PostDownloadCal
135
136
  for s in scripts:
136
137
  sub_proc = sp.Popen([s, *arguments])
137
138
  sub_proc.wait(timeout) # type: ignore
139
+ spinner.show()
138
140
 
139
141
  return hook
140
142
 
@@ -1,8 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: anipy-cli
3
- Version: 3.3.3
3
+ Version: 3.3.5
4
4
  Summary: Watch and Download anime from the comfort of your Terminal
5
- Home-page: https://sdaqo.github.io/anipy-cli
6
5
  License: GPL-3.0
7
6
  Keywords: anime,cli
8
7
  Author: sdaqo
@@ -15,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.10
15
14
  Classifier: Programming Language :: Python :: 3.11
16
15
  Classifier: Programming Language :: Python :: 3.12
17
16
  Classifier: Programming Language :: Python :: 3.13
18
- Requires-Dist: anipy-api (>=3.3.3,<4.0.0)
17
+ Requires-Dist: anipy-api (>=3.3.5,<4.0.0)
19
18
  Requires-Dist: appdirs (>=1.4.4,<2.0.0)
20
19
  Requires-Dist: inquirerpy (>=0.3.4,<0.4.0)
21
20
  Requires-Dist: pypresence (>=4.3.0,<5.0.0)
@@ -23,6 +22,7 @@ Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
23
22
  Requires-Dist: yaspin (>=3.0.2,<4.0.0)
24
23
  Project-URL: Bug Tracker, https://github.com/sdaqo/anipy-cli/issues
25
24
  Project-URL: Documentation, https://sdaqo.github.io/anipy-cli/getting-started-cli
25
+ Project-URL: Homepage, https://sdaqo.github.io/anipy-cli
26
26
  Project-URL: Repository, https://github.com/sdaqo/anipy-cli
27
27
  Description-Content-Type: text/markdown
28
28
 
@@ -1,4 +1,4 @@
1
- anipy_cli/__init__.py,sha256=W1ht76d-jnHseXFCH-oySZtgBlpwCk1WqecqeSrYf84,48
1
+ anipy_cli/__init__.py,sha256=m0ttavJdEyVIQZoPfenEijFOjxhlkglQuDMmZfrvPH4,48
2
2
  anipy_cli/arg_parser.py,sha256=Y_p5Sh7LR0yeqfhFVXkyAbZMjDR1-NIoY_TVuPwUnwk,6009
3
3
  anipy_cli/cli.py,sha256=Ah5BE-u_SjcuzU5dQ5cSHtUloVRApCWwTK5i49yQtH8,1922
4
4
  anipy_cli/clis/__init__.py,sha256=Y00uiPWiMvvRImxJMvfLA55BOkMUOrrx5vJUNvquNsY,411
@@ -12,16 +12,16 @@ anipy_cli/clis/seasonal_cli.py,sha256=GV2TQNm9UotG1cxfYbrFFgg7Jmy8SFa7w_GlFtPdRV
12
12
  anipy_cli/colors.py,sha256=voXC7z1Fs9tHg4zzNTNMIrt9k-EVgJ3_xEf5KiW2xgo,916
13
13
  anipy_cli/config.py,sha256=mbR7D1472Z6lLLw1_Vx_H0cH7fQVJJBPpIVXA6SMvy0,17751
14
14
  anipy_cli/discord.py,sha256=c6mdqnEdblzZBYs3cGP66oDeS4ySm59OfTRP-R-Duls,1160
15
- anipy_cli/download_component.py,sha256=7sdCXZf55YlACshHFNe42xl5xjqysGhIpANac-d2u64,5239
15
+ anipy_cli/download_component.py,sha256=3GCPoWIEjhN1rBtOt8NQg9lqBTI4OHV3gG2RZ3NMzcA,5248
16
16
  anipy_cli/mal_proxy.py,sha256=me2ESB442pYeNEpHY8mqrOEb477UA0uAg2LprKcp8sM,7098
17
17
  anipy_cli/menus/__init__.py,sha256=aIzbphxAW-QGfZwR1DIegFZuTJp1O3tSUnai0f0f4lY,185
18
18
  anipy_cli/menus/base_menu.py,sha256=g5b9Z7SpvCxcq_vqObcPzxLwcXeGPltLgSwa0sEzyfk,1140
19
19
  anipy_cli/menus/mal_menu.py,sha256=jAVJh7K5d0BCnoT4qUIZ7CavrnrctXj-eg9k8E90ulE,23697
20
- anipy_cli/menus/menu.py,sha256=e7OWaeVfUaSPE1ZLNsJ6PrlFqBoMMUXJdqvE2_PbepQ,8098
20
+ anipy_cli/menus/menu.py,sha256=ejTOGVG8fFJhTT7t23kA_uBbF5pkNcdvj4cGAIPvdt8,8101
21
21
  anipy_cli/menus/seasonal_menu.py,sha256=diABjK7LIDlXUoMydhDyLG9ba7J4UFmeD5AyGO3GPAI,10648
22
22
  anipy_cli/prompts.py,sha256=lQDrb8IlhsQhOpLG4sflamprTSn-PlCy41tGpXIowdo,10156
23
- anipy_cli/util.py,sha256=QD2iQftFox-c7KdycNmBTlBY8vi5lHg6pAJPLeJ-o9w,8877
24
- anipy_cli-3.3.3.dist-info/METADATA,sha256=sZjk8CTL-6hAxWUClJuzJsKmRH4AL_rkpQSGT8NHf0c,3469
25
- anipy_cli-3.3.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
26
- anipy_cli-3.3.3.dist-info/entry_points.txt,sha256=86iXpcm_ECFndrt0JAI2mqYfXC2Ar7mGi0iOaxCrNP0,51
27
- anipy_cli-3.3.3.dist-info/RECORD,,
23
+ anipy_cli/util.py,sha256=PxUPRxKCCTig1IHwmzH4m4Jofr4r-bg9lHyID3l5CIA,8944
24
+ anipy_cli-3.3.5.dist-info/METADATA,sha256=4Msqc5Yph-s2AKdvmWCvfeKFQ1JgjmmRO69rHeiF5nY,3481
25
+ anipy_cli-3.3.5.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
26
+ anipy_cli-3.3.5.dist-info/entry_points.txt,sha256=86iXpcm_ECFndrt0JAI2mqYfXC2Ar7mGi0iOaxCrNP0,51
27
+ anipy_cli-3.3.5.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.1
2
+ Generator: poetry-core 2.0.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any