ani-auto 1.2.5 → 1.3.1

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.
package/README.md CHANGED
@@ -69,10 +69,11 @@ Commands:
69
69
  remove [title] Remove an anime from the manual list (interactive if no title given)
70
70
  enable Re-enable downloads for an anime
71
71
  disable Pause downloads for an anime (keeps history)
72
+ notify [action] Enable or disable Telegram notifications (on, off)
72
73
  status [options] Show recent run log
73
74
  config [options] View, update, or open config file
74
75
  update Check for updates and install the latest version
75
- daemon [options] Start the background daemon
76
+ daemon [action] Manage the background daemon (install, start, stop, restart, status, logs)
76
77
  help [command] display help for command
77
78
  ```
78
79
 
@@ -82,7 +83,6 @@ Commands:
82
83
 
83
84
  ```bash
84
85
  ani-auto config --set-quality 1080p
85
- ani-auto config --set-language sub
86
86
  ani-auto config --set-concurrency 3
87
87
  ani-auto config --set-output ~/videos/anime
88
88
  ani-auto config --set-interval 60
@@ -93,42 +93,18 @@ ani-auto config --open
93
93
 
94
94
  ## background service (linux)
95
95
 
96
- run this once to install and start the daemon as a systemd service:
96
+ install and start the daemon as a systemd service with one command:
97
97
 
98
98
  ```bash
99
- mkdir -p ~/.config/systemd/user && \
100
- NODE_BIN=$(which node) && \
101
- DAEMON_PATH=$(npm root -g)/ani-auto/src/daemon.js && \
102
- cat > ~/.config/systemd/user/ani-auto.service << SERVICE
103
- [Unit]
104
- Description=ani-auto daemon
105
- After=network-online.target
106
-
107
- [Service]
108
- ExecStart=$NODE_BIN $DAEMON_PATH
109
- Restart=on-failure
110
- RestartSec=10
111
-
112
- [Install]
113
- WantedBy=default.target
114
- SERVICE
115
- systemctl --user daemon-reload && \
116
- systemctl --user enable --now ani-auto && \
117
- echo "ani-auto daemon installed and started"
99
+ ani-auto daemon install
118
100
  ```
119
101
 
120
- **useful commands:**
102
+ **other daemon commands:**
121
103
 
122
104
  ```bash
123
- # check status
124
- systemctl --user status ani-auto
125
-
126
- # view live logs
127
- journalctl --user -u ani-auto -f
128
-
129
- # restart
130
- systemctl --user restart ani-auto
131
-
132
- # stop
133
- systemctl --user stop ani-auto
105
+ ani-auto daemon start # start the service
106
+ ani-auto daemon stop # stop the service
107
+ ani-auto daemon restart # restart the service
108
+ ani-auto daemon status # check if running
109
+ ani-auto daemon logs # stream live logs
134
110
  ```
package/package.json CHANGED
@@ -1,20 +1,19 @@
1
1
  {
2
2
  "name": "ani-auto",
3
- "version": "1.2.5",
3
+ "version": "1.3.1",
4
4
  "description": "Automatic anime episode downloader",
5
5
  "bin": {
6
6
  "ani-auto": "./src/cli.js"
7
7
  },
8
8
  "scripts": {
9
9
  "start": "node src/daemon.js",
10
- "check": "node src/cli.js check",
10
+ "download": "node src/cli.js download",
11
11
  "setup": "node src/cli.js setup"
12
12
  },
13
13
  "dependencies": {
14
14
  "chalk": "^4.1.2",
15
15
  "cli-progress": "^3.12.0",
16
16
  "commander": "^12.0.0",
17
- "cron": "^3.1.6",
18
17
  "inquirer": "^8.2.6",
19
18
  "node-fetch": "^2.7.0",
20
19
  "ora": "^5.4.1",