Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
dmhy-subscribe
Advanced tools
Subscribe and schedule downloading magnets on dmhy. Support Linux & Windows 10.
在動漫花園訂閱並排程下載磁鏈,支援 Linux & Windows 10
Linux:
$ sudo add-apt-repository ppa:deluge-team/ppa
$ sudo apt update
$ sudo apt install deluge deluged deluge-console
Windows 10: Use official installer
$ npm i -g dmhy-subscribe
$ deluged # Open the daemon
$ deluge-console info # if no error, OK.
There are some previous work for Windows 10:
C:\Program Files (x86)\deluge
in default) and npm modules path (%appdata%\npm
in default)into PATH environment variable or open PowerShell(Administrator) and type following shell script to complete previous work
PS C:\> $delugepath = 'C:\Program Files (x86)\deluge' # Your deluge path
PS C:\> $npmpath = '%appdata%\npm' # Your npm modules path
PS C:\> $oldpath = [Environment]::GetEnvironmentVariable("Path", [EnvironmentVariableTarget]::Machine)
PS C:\> $newpath = "$oldpath;$delugepath;$npmpath"
PS C:\> [Environment]::SetEnvironmentVariable("Path", "$newPath", [EnvironmentVariableTarget]::Machine)
PS C:\> exit # To reload profile
deluged.exe
or open PowerShell(Administrator) and type deluged
to execute deamonTest previous work with PowerShell:
PS C:\> deluge-console info
# if no error, OK.
# if error message is "Failed to connect to ..." means deluged.exe isn't opened.
PS C:\> node -v
v9.6.1
# at least LTS(v8.9.4)
PS C:\> dmhy -V
0.4.0
# if error, add npm modules path to PATH environment variable
Windows 10 需要做些前置作業:
C:\Program Files (x86)\deluge
) 和 npm modules 路徑 (預設是 %appdata%\npm
) 加到 PATH 環境變數 或 打開 PowerShell(系統管理員) 並輸入以下指令完成前置作業
PS C:\> $delugepath = 'C:\Program Files (x86)\deluge' # 你的 deluge 路徑
PS C:\> $npmpath = '%appdata%\npm' # 你的 npm modules 路徑
PS C:\> $oldpath = [Environment]::GetEnvironmentVariable("Path", [EnvironmentVariableTarget]::Machine)
PS C:\> $newpath = "$oldpath;$delugepath;$npmpath"
PS C:\> [Environment]::SetEnvironmentVariable("Path", "$newPath", [EnvironmentVariableTarget]::Machine)
PS C:\> exit # To reload profile # 關掉重開是必須的
deluged.exe
或 打開 PowerShell(系統管理員) 並輸入 deluged
執行服務用 PowerShell 測試前置作業是否成功:
PS C:\> deluge-console info
# 如果沒有錯誤就完成了.
# 如果錯誤訊息是 "Failed to connect to ..." 代表 deluged.exe 沒打開
PS C:\> node -v
v9.6.1
# 至少更新到 LTS(v8.9.4)
PS C:\> dmhy -V
0.4.0
# 如果有錯誤,請將 npm modules 路徑加到 PATH 環境變數
Usage: dmhy [options] [command]
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
add [options] [subscribable...] Add {subscribable} to subscribe.
remove|rm [options] [sid...] Remove {subscription} by {sid}.
list|ls [options] [sid...] List the {subscription}s or the {thread}s of the {subscription}s.
download|dl [thid...] Download the {thread}s of the {subsciption}s which are subscribed in list.
Examples:
$ dmhy add '紫羅蘭永恆花園,動漫國,繁體,1080P'
$ dmhy
cron format: http://www.nncron.ru/help/EN/working/cron-format.htm
Check and fetch every 6 hour
$ (crontab -l 2>/dev/null; echo "0 */6 * * * `which dmhy`") | crontab -
Use pm2 instead
$ npm i -g pm2
$ pm2 start dmhy --cron '0 */6 * * *'
$ pm2 ls
Use pm2 with PowerShell
PS C:\> npm i -g pm2 # Install pm2
PS C:\> pm2 start %appdata%\npm\node_modules\dmhy-subscribe\index.js --name="dmhy" --cron '0 */6 * * *'
PS C:\> pm2 ls
在 PowerShell 使用 pm2
PS C:\> npm i -g pm2 # 安裝 pm2
PS C:\> pm2 start %appdata%\npm\node_modules\dmhy-subscribe\index.js --name="dmhy" --cron '0 */6 * * *'
PS C:\> pm2 ls
FAQs
Subscribe by keywords and download megnets
The npm package dmhy-subscribe receives a total of 135 weekly downloads. As such, dmhy-subscribe popularity was classified as not popular.
We found that dmhy-subscribe demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.