anipy-cli 3.1.5__py3-none-any.whl → 3.1.6__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.1.5"
2
+ __version__ = "3.1.6"
anipy_cli/util.py CHANGED
@@ -14,14 +14,10 @@ from typing import (
14
14
 
15
15
  from anipy_api.anime import Anime
16
16
  from anipy_api.download import Downloader
17
- from anipy_api.player import get_player
18
- from anipy_api.provider import (
19
- LanguageTypeEnum,
20
- list_providers,
21
- get_provider,
22
- )
23
- from anipy_api.locallist import LocalListData, LocalListEntry
24
17
  from anipy_api.error import LangTypeNotAvailableError
18
+ from anipy_api.locallist import LocalListData, LocalListEntry
19
+ from anipy_api.player import get_player
20
+ from anipy_api.provider import LanguageTypeEnum, get_provider, list_providers
25
21
  from InquirerPy import inquirer
26
22
  from yaspin.core import Yaspin
27
23
  from yaspin.spinners import Spinners
@@ -116,20 +112,14 @@ def get_download_path(
116
112
  def parse_episode_ranges(ranges: str, episodes: List["Episode"]) -> List["Episode"]:
117
113
  picked = set()
118
114
  for r in ranges.split():
119
- numbers = r.split("-")
115
+ numbers = [parsenum(n) for n in r.split("-")]
116
+ print(numbers)
120
117
  if numbers[0] > numbers[-1]:
121
118
  error(f"invalid range: {r}")
122
119
  continue
123
- # return pick_episode_range_prompt(anime, dub)
124
-
125
120
  try:
126
121
  picked = picked | set(
127
- episodes[
128
- episodes.index(parsenum(numbers[0])) : episodes.index(
129
- parsenum(numbers[-1])
130
- )
131
- + 1
132
- ]
122
+ episodes[episodes.index(numbers[0]) : episodes.index(numbers[-1]) + 1]
133
123
  )
134
124
  except ValueError:
135
125
  error(f"range `{r}` is not contained in episodes {episodes}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: anipy-cli
3
- Version: 3.1.5
3
+ Version: 3.1.6
4
4
  Summary: Watch and Download anime from the comfort of your Terminal
5
5
  Home-page: https://sdaqo.github.io/anipy-cli
6
6
  License: GPL-3.0
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.9
14
14
  Classifier: Programming Language :: Python :: 3.10
15
15
  Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
- Requires-Dist: anipy-api (>=3.1.5,<4.0.0)
17
+ Requires-Dist: anipy-api (>=3.1.6,<4.0.0)
18
18
  Requires-Dist: appdirs (>=1.4.4,<2.0.0)
19
19
  Requires-Dist: inquirerpy (>=0.3.4,<0.4.0)
20
20
  Requires-Dist: pypresence (>=4.3.0,<5.0.0)
@@ -1,4 +1,4 @@
1
- anipy_cli/__init__.py,sha256=W7qeJja8guwPggteA5QwtAWsGzjowlR0Isi7NN9aCV0,48
1
+ anipy_cli/__init__.py,sha256=6Bl0D5fTDnzmG4k4EW-pCWa8AUmy_rl70uGlVQ0jdSo,48
2
2
  anipy_cli/arg_parser.py,sha256=v69k7Yjzjn4JqBKQeGgmOq4kdyxRIXG22lIMfPAeon0,5296
3
3
  anipy_cli/cli.py,sha256=Ah5BE-u_SjcuzU5dQ5cSHtUloVRApCWwTK5i49yQtH8,1922
4
4
  anipy_cli/clis/__init__.py,sha256=Y00uiPWiMvvRImxJMvfLA55BOkMUOrrx5vJUNvquNsY,411
@@ -19,8 +19,8 @@ anipy_cli/menus/mal_menu.py,sha256=tJYq5J3k89_0BKFiWavn9Gqh5Z7uXtoUFqJaa3fT4o4,2
19
19
  anipy_cli/menus/menu.py,sha256=UQJ1hpyDT0i03ecIjBbFRp4PFh6FTNHDhSwSBSAhQEI,7860
20
20
  anipy_cli/menus/seasonal_menu.py,sha256=VBmeXanJb-vS5TXiK79KgtJ5vPW87gIOdpN_EijAG_U,9097
21
21
  anipy_cli/prompts.py,sha256=seNeErTP1om1wpRUN-rbUUI8bAGRmu48ScQjztzKkeE,7564
22
- anipy_cli/util.py,sha256=EAJZUKMuf0vbpm-c9nLqdYXG5R0PStxLFQSZj5tGS_M,7763
23
- anipy_cli-3.1.5.dist-info/METADATA,sha256=nJHlWzaMSpMkk2ADgK4amXdcdR-TvMN0KEWt6AnYOlY,3418
24
- anipy_cli-3.1.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
25
- anipy_cli-3.1.5.dist-info/entry_points.txt,sha256=86iXpcm_ECFndrt0JAI2mqYfXC2Ar7mGi0iOaxCrNP0,51
26
- anipy_cli-3.1.5.dist-info/RECORD,,
22
+ anipy_cli/util.py,sha256=yeIbT6Nnfesp-COAdEpQ1IZJS3sQ14MejTzLTBCTNWY,7608
23
+ anipy_cli-3.1.6.dist-info/METADATA,sha256=459HFp9eyWOMAGx8mD99piB1xsAZ0-TWe7SAh0YnZEE,3418
24
+ anipy_cli-3.1.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
25
+ anipy_cli-3.1.6.dist-info/entry_points.txt,sha256=86iXpcm_ECFndrt0JAI2mqYfXC2Ar7mGi0iOaxCrNP0,51
26
+ anipy_cli-3.1.6.dist-info/RECORD,,