anipy-cli 2.7.29__py3-none-any.whl → 2.7.31__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/download.py +1 -1
- anipy_cli/misc.py +1 -1
- anipy_cli/player/player.py +3 -4
- anipy_cli/query.py +1 -1
- anipy_cli/url_handler.py +4 -4
- anipy_cli/version.py +1 -1
- {anipy_cli-2.7.29.dist-info → anipy_cli-2.7.31.dist-info}/METADATA +5 -5
- {anipy_cli-2.7.29.dist-info → anipy_cli-2.7.31.dist-info}/RECORD +13 -13
- /anipy_cli/player/players/{mpv_contrl.py → mpv_control.py} +0 -0
- {anipy_cli-2.7.29.dist-info → anipy_cli-2.7.31.dist-info}/LICENSE +0 -0
- {anipy_cli-2.7.29.dist-info → anipy_cli-2.7.31.dist-info}/WHEEL +0 -0
- {anipy_cli-2.7.29.dist-info → anipy_cli-2.7.31.dist-info}/entry_points.txt +0 -0
- {anipy_cli-2.7.29.dist-info → anipy_cli-2.7.31.dist-info}/top_level.txt +0 -0
anipy_cli/download.py
CHANGED
|
@@ -419,7 +419,7 @@ class download:
|
|
|
419
419
|
|
|
420
420
|
def _get_fname(self) -> str:
|
|
421
421
|
"""
|
|
422
|
-
This function returns what the filename for the
|
|
422
|
+
This function returns what the filename for the outputted video should be.
|
|
423
423
|
|
|
424
424
|
It finds this by using data in self.entry and the Config.
|
|
425
425
|
|
anipy_cli/misc.py
CHANGED
anipy_cli/player/player.py
CHANGED
|
@@ -20,14 +20,13 @@ def get_player(rpc_client=None, player_override="") -> PlayerBaseType:
|
|
|
20
20
|
|
|
21
21
|
player = Path(player)
|
|
22
22
|
|
|
23
|
-
if player.name.
|
|
24
|
-
from anipy_cli.player.players.
|
|
25
|
-
|
|
23
|
+
if Path(player.name).stem == "mpv" and cfg.reuse_mpv_window:
|
|
24
|
+
from anipy_cli.player.players.mpv_control import MpvControllable
|
|
26
25
|
return MpvControllable(rpc_client=rpc_client)
|
|
27
26
|
|
|
28
27
|
player_dict = {"mpv": Mpv, "mpvnet": Mpv, "vlc": Vlc, "syncplay": Syncplay}
|
|
29
28
|
|
|
30
|
-
player_class = player_dict.get(player.name, None)
|
|
29
|
+
player_class = player_dict.get(Path(player.name).stem, None)
|
|
31
30
|
|
|
32
31
|
if player_class:
|
|
33
32
|
return player_class(str(player), rpc_client=rpc_client)
|
anipy_cli/query.py
CHANGED
anipy_cli/url_handler.py
CHANGED
|
@@ -48,7 +48,7 @@ class epHandler:
|
|
|
48
48
|
).group(1)
|
|
49
49
|
|
|
50
50
|
res = requests.get(
|
|
51
|
-
"https://ajax.
|
|
51
|
+
"https://ajax.gogocdn.net/ajax/load-list-episode",
|
|
52
52
|
params={"ep_start": 0, "ep_end": 9999, "id": self.movie_id},
|
|
53
53
|
timeout=2,
|
|
54
54
|
)
|
|
@@ -100,7 +100,7 @@ class epHandler:
|
|
|
100
100
|
|
|
101
101
|
def get_latest(self):
|
|
102
102
|
"""
|
|
103
|
-
Fetch latest episode
|
|
103
|
+
Fetch latest episode available
|
|
104
104
|
from a show and return it.
|
|
105
105
|
"""
|
|
106
106
|
|
|
@@ -253,7 +253,7 @@ class epHandler:
|
|
|
253
253
|
ep_list = ep_list[first_index : second_index + 1]
|
|
254
254
|
|
|
255
255
|
if not ep_list:
|
|
256
|
-
error("
|
|
256
|
+
error("invalid input1")
|
|
257
257
|
else:
|
|
258
258
|
return [x["ep"] for x in ep_list]
|
|
259
259
|
|
|
@@ -414,7 +414,7 @@ class videourl:
|
|
|
414
414
|
JSON repons and change
|
|
415
415
|
stream url to the either
|
|
416
416
|
the quality option that was picked,
|
|
417
|
-
or the best one
|
|
417
|
+
or the best one available.
|
|
418
418
|
"""
|
|
419
419
|
self.entry.quality = ""
|
|
420
420
|
|
anipy_cli/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.7.
|
|
1
|
+
__version__ = "2.7.31"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: anipy_cli
|
|
3
|
-
Version: 2.7.
|
|
3
|
+
Version: 2.7.31
|
|
4
4
|
Summary: Little tool in python to watch anime from the terminal (the better way to watch anime)
|
|
5
5
|
Home-page: https://github.com/sdaqo/anipy-cli
|
|
6
6
|
Author: sdaqo
|
|
@@ -37,7 +37,7 @@ https://user-images.githubusercontent.com/63876564/162056019-ed0e7a60-78f6-4a2c-
|
|
|
37
37
|
|
|
38
38
|
- [Installation](#Installation)
|
|
39
39
|
- [Usage](#Usage)
|
|
40
|
-
- [
|
|
40
|
+
- [Library Usage](#library-usage)
|
|
41
41
|
- [What it can do](#what-it-can-do)
|
|
42
42
|
- [Other Versions](#other-versions)
|
|
43
43
|
- [Credits](#Credits)
|
|
@@ -131,18 +131,18 @@ Info:
|
|
|
131
131
|
- (**Optional**) Discord Presence for the anime you currently watch. This is off by default, activate it in the config (-c)
|
|
132
132
|
- (**Optional**) Ffmpeg to download m3u8 playlists, may be more stable but is slower than internal downloader.
|
|
133
133
|
|
|
134
|
-
#
|
|
134
|
+
# Library Usage
|
|
135
135
|
|
|
136
136
|
Documentation can be found [here](https://github.com/sdaqo/anipy-cli/blob/master/docs/anipycli_as_lib.py)
|
|
137
137
|
|
|
138
138
|
#### Important:
|
|
139
139
|
|
|
140
|
-
To import the
|
|
140
|
+
To import the library, don't import `anipy-cli`, but `anipy_cli` (no '-' is allowed)
|
|
141
141
|
|
|
142
142
|
# Advanced Usage Examples
|
|
143
143
|
#### Little example of using anipy-cli for automatically keeping anime library up-to-date:
|
|
144
144
|
```
|
|
145
|
-
# Cronjob runs every 2 minutes and checks
|
|
145
|
+
# Cronjob runs every 2 minutes and checks whether anipy-cli is still running or not
|
|
146
146
|
# (only run the job if last one is finished)
|
|
147
147
|
|
|
148
148
|
*/2 * * * * username pidof -x anipy-cli || anipy-cli -Ma >> /var/log/anipy-cli.log
|
|
@@ -2,15 +2,15 @@ anipy_cli/__init__.py,sha256=tfcfNum_d0E-4DK3VxWZDcBWxaoizF_lladUzYh-AXk,1209
|
|
|
2
2
|
anipy_cli/arg_parser.py,sha256=TibvBABk9ou0Jy5Kp2wgstLyNiMpO9XzZccC0d9Ivh8,4846
|
|
3
3
|
anipy_cli/colors.py,sha256=dwDpMNCYrHZs8gXhUKVLnMzaW3payxpU6lE4V8nvzn4,919
|
|
4
4
|
anipy_cli/config.py,sha256=DcP7_v3aSCH7RdfheySp4tU_bvHyHAZjxwk576_lk-Q,5820
|
|
5
|
-
anipy_cli/download.py,sha256=
|
|
5
|
+
anipy_cli/download.py,sha256=vTTyOiUw8ohoMFE0aScceEURHWKEQNzLLR371zQVhHU,16243
|
|
6
6
|
anipy_cli/history.py,sha256=oSTymLCyMLRMr5fS0UsnTASZ4fD3HxeRNtVBdOrX2hY,2190
|
|
7
7
|
anipy_cli/mal.py,sha256=TFEgtMx574fkkc-UsxW_Y6D7IrIq9a9mET2voOfSkSY,22912
|
|
8
|
-
anipy_cli/misc.py,sha256=
|
|
9
|
-
anipy_cli/query.py,sha256=
|
|
8
|
+
anipy_cli/misc.py,sha256=E3KLAJH7XvOS_lB0IT_68l41aCoBs__WdbQ2-Nju16M,6161
|
|
9
|
+
anipy_cli/query.py,sha256=RpWNLBl8kPYFO9QYnMU2F1tEsAyXWaHggglc1zD3x_Y,3341
|
|
10
10
|
anipy_cli/run_anipy_cli.py,sha256=1IknhTjef5MOssNldroIqq1nR45KfaR2uY1Lde6fWl4,222
|
|
11
11
|
anipy_cli/seasonal.py,sha256=-OkwsxS0OuTJi8720XIcOTSMhdZybFrokWUwU9wuVnA,3096
|
|
12
|
-
anipy_cli/url_handler.py,sha256=
|
|
13
|
-
anipy_cli/version.py,sha256=
|
|
12
|
+
anipy_cli/url_handler.py,sha256=aK0pdmwxq9k4IMmiXJU2gjanOZZfWYeS5wt3gwEU4qI,13946
|
|
13
|
+
anipy_cli/version.py,sha256=H9d8z09YkK62r57r42V8SElEm9AM-d4kpRUsIqnc-Ps,23
|
|
14
14
|
anipy_cli/cli/__init__.py,sha256=8CoRWWXOok498eMRjWQ3hxa5VtdpEwbiP-Pxuv8dSQI,38
|
|
15
15
|
anipy_cli/cli/cli.py,sha256=_inXf9Wkn72wGt3lyc1uZ_3tB1IfwSsQQ0mVHX1pzAM,975
|
|
16
16
|
anipy_cli/cli/util.py,sha256=SvvgNu9Q_DYESUx0DtiZICeCZlRNA1lXTD8s8yl7Tc4,4123
|
|
@@ -28,16 +28,16 @@ anipy_cli/cli/menus/mal_menu.py,sha256=XfUc9SpC-uRXpZoOakPJ3Kfn9_8Ylke0as1J5FiZY
|
|
|
28
28
|
anipy_cli/cli/menus/menu.py,sha256=h2fofKAwxla8JHzvblWA_MlOIGCwtN27kIH-mTaN4VI,3469
|
|
29
29
|
anipy_cli/cli/menus/seasonal_menu.py,sha256=sFTx6dx5YyEfeT6aEdmiMTYE7CuOh5Vsqqh73z9HMjU,5869
|
|
30
30
|
anipy_cli/player/__init__.py,sha256=RMzxEYGMoXUCaT4RrQMZ2tSK_ce7ybClzTietAo8b6A,63
|
|
31
|
-
anipy_cli/player/player.py,sha256=
|
|
31
|
+
anipy_cli/player/player.py,sha256=xCtz2HXTULhYcBq7CkMFY70JQLG1jxPBO0c857P6Sxg,1027
|
|
32
32
|
anipy_cli/player/players/__init__.py,sha256=o-hU4qxe8DED_nww7SNyFW955ss1g9uIuFJHT1BRFuk,145
|
|
33
33
|
anipy_cli/player/players/base.py,sha256=U1IND4OTlQNvNE_RDzu_1bDXCXz4coUi1b5ZA-8PQFw,2762
|
|
34
34
|
anipy_cli/player/players/mpv.py,sha256=vgYk1t7K49HYtxv-BvWy4aGSf8I6bpDERgI0Y4hru24,602
|
|
35
|
-
anipy_cli/player/players/
|
|
35
|
+
anipy_cli/player/players/mpv_control.py,sha256=KOlntvOFqVtPWu5GA_8i3uegBvf_jKw1zbH3KxutAZg,907
|
|
36
36
|
anipy_cli/player/players/syncplay.py,sha256=ORVuUw60VS7u77ur41ZSSeAR9IJR5WyPctuofGNxNP4,612
|
|
37
37
|
anipy_cli/player/players/vlc.py,sha256=skHCYyvb8XixommTY4AbJvhTi7TOfhhF0O5TNsnsKOo,564
|
|
38
|
-
anipy_cli-2.7.
|
|
39
|
-
anipy_cli-2.7.
|
|
40
|
-
anipy_cli-2.7.
|
|
41
|
-
anipy_cli-2.7.
|
|
42
|
-
anipy_cli-2.7.
|
|
43
|
-
anipy_cli-2.7.
|
|
38
|
+
anipy_cli-2.7.31.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
39
|
+
anipy_cli-2.7.31.dist-info/METADATA,sha256=l-c-ARcCqwTZCMXjW3-VTTL6YP2icZ-GcWA5OcPO4qY,7010
|
|
40
|
+
anipy_cli-2.7.31.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
41
|
+
anipy_cli-2.7.31.dist-info/entry_points.txt,sha256=WBLF69tulX86690ET947odYU32Ketdm3pxnYkQa83IM,59
|
|
42
|
+
anipy_cli-2.7.31.dist-info/top_level.txt,sha256=C40LSHw7Rvit25UkpsAU7ITLSOX6zqTcHWxtOpHem_M,10
|
|
43
|
+
anipy_cli-2.7.31.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|