New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dmhy-subscribe

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dmhy-subscribe

Subscribe by keywords and download megnets

  • 0.4.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
143
increased by10.85%
Maintainers
1
Weekly downloads
 
Created
Source

dmhy-subscribe

npm Build Status

Subscribe and schedule downloading magnets on dmhy. Support Linux & Windows 10.

在動漫花園訂閱並排程下載磁鏈,支援 Linux & Windows 10

Demo

Requirement 必須軟體

node & npm

deluge & deluge-console

Linux:

$ sudo add-apt-repository ppa:deluge-team/ppa
$ sudo apt update
$ sudo apt install deluge deluged deluge-console

Windows 10: Use official installer

Installation 安裝方法

Linux

$ npm i -g dmhy-subscribe
$ deluged # Open the daemon
$ deluge-console info # if no error, OK.

Windows 10

There are some previous work for Windows 10:

  • Add deluge path (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
    
  • Goto your deluge path and execute deluged.exe or open PowerShell(Administrator) and type deluged to execute deamon

Test 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 中文版

Windows 10 需要做些前置作業:

  • 把 deluge 路徑 (預設是 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 # 關掉重開是必須的
    
  • 到 deluge 路徑執行 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 使用方法

  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

Work with crontab/pm2 使用 crontab/pm2 自動排程

cron format: http://www.nncron.ru/help/EN/working/cron-format.htm

Linux

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

Windows 10

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

Windows 10 中文版

在 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

Package last updated on 01 Mar 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc