anipy-cli 3.1.4__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.4"
2
+ __version__ = "3.1.6"
anipy_cli/arg_parser.py CHANGED
@@ -139,7 +139,7 @@ def parse_args(override_args: Optional[list[str]] = None) -> CliArgs:
139
139
  "-p",
140
140
  "--optional-player",
141
141
  required=False,
142
- choices=["mpv", "vlc", "syncplay", "mpvnet", "mpv-controlled"],
142
+ choices=["mpv", "vlc", "iina", "syncplay", "mpvnet", "mpv-controlled"],
143
143
  help="Override the player set in the config.",
144
144
  )
145
145
 
anipy_cli/config.py CHANGED
@@ -149,6 +149,15 @@ class Config:
149
149
  """
150
150
  return self._get_value("vlc_commandline_options", [], list)
151
151
 
152
+ @property
153
+ def iina_commandline_options(self) -> List[str]:
154
+ """Extra commandline arguments for iina.
155
+
156
+ Examples:
157
+ iina_commandline_options: ["--mpv-fullscreen"]
158
+ """
159
+ return self._get_value("iina_commandline_options", [], list)
160
+
152
161
  @property
153
162
  def reuse_mpv_window(self) -> bool:
154
163
  """DEPRECATED This option was deprecated in 3.0.0, please use `mpv-
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}")
@@ -174,6 +164,8 @@ def get_configured_player(player_override: Optional[str] = None) -> "PlayerBase"
174
164
  args = config.mpv_commandline_options
175
165
  elif "vlc" in player.stem:
176
166
  args = config.vlc_commandline_options
167
+ elif "iina" in player.stem:
168
+ args = config.iina_commandline_options
177
169
  else:
178
170
  args = []
179
171
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: anipy-cli
3
- Version: 3.1.4
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.4,<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,5 +1,5 @@
1
- anipy_cli/__init__.py,sha256=b2khm4mKtLN77GZj3XjXDgnXS9DAfGZ1lwHTNOAC-xU,48
2
- anipy_cli/arg_parser.py,sha256=r2lroeHRyOA5_4RfNngClEsY9NXpNA96voOQDetuU7Y,5288
1
+ anipy_cli/__init__.py,sha256=6Bl0D5fTDnzmG4k4EW-pCWa8AUmy_rl70uGlVQ0jdSo,48
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
5
5
  anipy_cli/clis/base_cli.py,sha256=xPr_J8hKs7LkDLvmK6zyL1ZTZRpyC2IuFss8KsaDstU,817
@@ -10,7 +10,7 @@ anipy_cli/clis/history_cli.py,sha256=2ccv6BpQQpUhY4K-KM7lO9qxVLXBrmCY5lec6czipSE
10
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
- anipy_cli/config.py,sha256=vo3y-oPhuucbWo-4KX2hNacUlBP2l-L4wEVr7MHe7N4,15422
13
+ anipy_cli/config.py,sha256=RFYY388Hn62FxAem2X0E9vMVbO63nr4LB7481ZgfwFg,15698
14
14
  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
@@ -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=e9k29kGOi_h4RPrQfKMsg-8xNZHO-fLfBSma6SjGfYg,7684
23
- anipy_cli-3.1.4.dist-info/METADATA,sha256=Tw2_hXuLB3dIy2lZEAf8fulJWotw45PEMHUwSOONmkk,3418
24
- anipy_cli-3.1.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
25
- anipy_cli-3.1.4.dist-info/entry_points.txt,sha256=86iXpcm_ECFndrt0JAI2mqYfXC2Ar7mGi0iOaxCrNP0,51
26
- anipy_cli-3.1.4.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,,