ani-auto 1.3.0 → 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
 
@@ -92,42 +93,18 @@ ani-auto config --open
92
93
 
93
94
  ## background service (linux)
94
95
 
95
- 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:
96
97
 
97
98
  ```bash
98
- mkdir -p ~/.config/systemd/user && \
99
- NODE_BIN=$(which node) && \
100
- DAEMON_PATH=$(npm root -g)/ani-auto/src/daemon.js && \
101
- cat > ~/.config/systemd/user/ani-auto.service << SERVICE
102
- [Unit]
103
- Description=ani-auto daemon
104
- After=network-online.target
105
-
106
- [Service]
107
- ExecStart=$NODE_BIN $DAEMON_PATH
108
- Restart=on-failure
109
- RestartSec=10
110
-
111
- [Install]
112
- WantedBy=default.target
113
- SERVICE
114
- systemctl --user daemon-reload && \
115
- systemctl --user enable --now ani-auto && \
116
- echo "ani-auto daemon installed and started"
99
+ ani-auto daemon install
117
100
  ```
118
101
 
119
- **useful commands:**
102
+ **other daemon commands:**
120
103
 
121
104
  ```bash
122
- # check status
123
- systemctl --user status ani-auto
124
-
125
- # view live logs
126
- journalctl --user -u ani-auto -f
127
-
128
- # restart
129
- systemctl --user restart ani-auto
130
-
131
- # stop
132
- 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
133
110
  ```
package/package.json CHANGED
@@ -1,20 +1,19 @@
1
1
  {
2
2
  "name": "ani-auto",
3
- "version": "1.3.0",
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",