mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-03-08 05:31:59 +00:00
fix
This commit is contained in:
36
apps/templates/cloudcmd/cloudcmd.json
Normal file
36
apps/templates/cloudcmd/cloudcmd.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "",
|
||||
"auth": true,
|
||||
"username": "plex",
|
||||
"password": "33449a17f325d04d86acfa00452b372c90742df5f9a10fee21673d9f384ab4bf536bce786034205b6496b559cece641f461c84df6a4eff220d1e66de09a29bde",
|
||||
"algo": "sha512WithRSAEncryption",
|
||||
"editor": "edward",
|
||||
"packer": "tar",
|
||||
"diff": true,
|
||||
"zip": true,
|
||||
"localStorage": true,
|
||||
"buffer": true,
|
||||
"dirStorage": false,
|
||||
"online": true,
|
||||
"open": false,
|
||||
"cache": true,
|
||||
"keysPanel": true,
|
||||
"port": 8000,
|
||||
"ip": null,
|
||||
"root": "/SERVER",
|
||||
"prefix": "",
|
||||
"progress": true,
|
||||
"htmlDialogs": true,
|
||||
"contact": true,
|
||||
"confirmCopy": true,
|
||||
"confirmMove": true,
|
||||
"configDialog": true,
|
||||
"onePanelMode": false,
|
||||
"console": true,
|
||||
"syncConsolePath": false,
|
||||
"terminal": "true",
|
||||
"terminalPath": "gritty",
|
||||
"showConfig": false,
|
||||
"vim": false,
|
||||
"columns": "name-size-date-owner-mode"
|
||||
}
|
||||
23
apps/templates/deluge/plugins/autoremoveplus.conf
Normal file
23
apps/templates/deluge/plugins/autoremoveplus.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"file": 1,
|
||||
"format": 1
|
||||
}{
|
||||
"interval": 1.0,
|
||||
"max_seeds": 0,
|
||||
"sel_func": "or",
|
||||
"trackers": [],
|
||||
"remove_data": true,
|
||||
"labels": [],
|
||||
"enabled": true,
|
||||
"count_exempt": false,
|
||||
"remove": true,
|
||||
"filter": "func_ratio",
|
||||
"tracker_rules": {},
|
||||
"min": 1.5,
|
||||
"hdd_space": -1.0,
|
||||
"filter2": "func_seed_time",
|
||||
"rule_2_enabled": true,
|
||||
"min2": 15.0,
|
||||
"rule_1_enabled": true,
|
||||
"label_rules": {}
|
||||
}
|
||||
104
apps/templates/deluge/plugins/core.conf
Normal file
104
apps/templates/deluge/plugins/core.conf
Normal file
@@ -0,0 +1,104 @@
|
||||
{
|
||||
"file": 1,
|
||||
"format": 1
|
||||
}{
|
||||
"info_sent": 0.0,
|
||||
"lsd": false,
|
||||
"send_info": false,
|
||||
"move_completed_path": "{{ downloads }}/complete",
|
||||
"enc_in_policy": 1,
|
||||
"queue_new_to_top": true,
|
||||
"ignore_limits_on_local_network": true,
|
||||
"rate_limit_ip_overhead": false,
|
||||
"daemon_port": 58846,
|
||||
"natpmp": true,
|
||||
"max_active_limit": "{{ max_active_limit }}",
|
||||
"utpex": false,
|
||||
"max_active_downloading": 5,
|
||||
"max_active_seeding": 10,
|
||||
"allow_remote": true,
|
||||
"max_half_open_connections": 50,
|
||||
"download_location": "{{ downloads }}/incomplete",
|
||||
"compact_allocation": false,
|
||||
"max_upload_speed": -1.0,
|
||||
"cache_expiry": 60,
|
||||
"prioritize_first_last_pieces": false,
|
||||
"auto_managed": true,
|
||||
"enc_level": 2,
|
||||
"max_connections_per_second": 20,
|
||||
"dont_count_slow_torrents": true,
|
||||
"random_outgoing_ports": true,
|
||||
"max_upload_slots_per_torrent": -1,
|
||||
"new_release_check": false,
|
||||
"enc_out_policy": 1,
|
||||
"outgoing_ports": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"seed_time_limit": 180,
|
||||
"cache_size": 512,
|
||||
"share_ratio_limit": 2.0,
|
||||
"max_download_speed": -1.0,
|
||||
"geoip_db_location": "/usr/share/GeoIP/GeoIP.dat",
|
||||
"torrentfiles_location": "/data/torrents",
|
||||
"stop_seed_at_ratio": false,
|
||||
"peer_tos": "0x00",
|
||||
"listen_interface": "0.0.0.0",
|
||||
"upnp": true,
|
||||
"max_download_speed_per_torrent": -1,
|
||||
"max_upload_slots_global": 4,
|
||||
"enabled_plugins": [
|
||||
"Label",
|
||||
"Execute"
|
||||
],
|
||||
"random_port": false,
|
||||
"autoadd_enable": false,
|
||||
"max_connections_global": 200,
|
||||
"enc_prefer_rc4": true,
|
||||
"listen_ports": [
|
||||
58946,
|
||||
58946
|
||||
],
|
||||
"dht": false,
|
||||
"stop_seed_ratio": 1.5,
|
||||
"seed_time_ratio_limit": 7.0,
|
||||
"max_upload_speed_per_torrent": -1,
|
||||
"copy_torrent_file": false,
|
||||
"del_copy_torrent_file": false,
|
||||
"move_completed": true,
|
||||
"proxies": {
|
||||
"peer": {
|
||||
"username": "",
|
||||
"password": "",
|
||||
"type": 0,
|
||||
"hostname": "",
|
||||
"port": 8080
|
||||
},
|
||||
"web_seed": {
|
||||
"username": "",
|
||||
"password": "",
|
||||
"type": 0,
|
||||
"hostname": "",
|
||||
"port": 8080
|
||||
},
|
||||
"tracker": {
|
||||
"username": "",
|
||||
"password": "",
|
||||
"type": 0,
|
||||
"hostname": "",
|
||||
"port": 8080
|
||||
},
|
||||
"dht": {
|
||||
"username": "",
|
||||
"password": "",
|
||||
"type": 0,
|
||||
"hostname": "",
|
||||
"port": 8080
|
||||
}
|
||||
},
|
||||
"add_paused": false,
|
||||
"max_connections_per_torrent": -1,
|
||||
"remove_seed_at_ratio": true,
|
||||
"autoadd_location": "/data/watched",
|
||||
"plugins_location": "/config/plugins"
|
||||
}
|
||||
12
apps/templates/deluge/plugins/execute.conf
Normal file
12
apps/templates/deluge/plugins/execute.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"file": 1,
|
||||
"format": 1
|
||||
}{
|
||||
"commands": [
|
||||
[
|
||||
"0",
|
||||
"complete",
|
||||
"/config/scripts/extract.sh"
|
||||
]
|
||||
]
|
||||
}
|
||||
7
apps/templates/deluge/plugins/extractor.conf
Normal file
7
apps/templates/deluge/plugins/extractor.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"file": 1,
|
||||
"format": 1
|
||||
}{
|
||||
"use_name_folder": true,
|
||||
"extract_path": "/downloads/deluge/"
|
||||
}
|
||||
26
apps/templates/deluge/plugins/label0.conf
Normal file
26
apps/templates/deluge/plugins/label0.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"file": 1,
|
||||
"format": 1
|
||||
}{
|
||||
"labels": {
|
||||
"main": {
|
||||
"max_download_speed": -1,
|
||||
"stop_at_ratio": true,
|
||||
"apply_move_completed": false,
|
||||
"apply_queue": true,
|
||||
"auto_add": false,
|
||||
"max_upload_slots": -1,
|
||||
"prioritize_first_last": false,
|
||||
"move_completed": false,
|
||||
"max_connections": -1,
|
||||
"is_auto_managed": true,
|
||||
"max_upload_speed": -1,
|
||||
"auto_add_trackers": [],
|
||||
"remove_at_ratio": false,
|
||||
"stop_ratio": 0,
|
||||
"move_completed_path": "",
|
||||
"apply_max": false
|
||||
}
|
||||
},
|
||||
"torrent_labels": {}
|
||||
}
|
||||
34
apps/templates/deluge/scripts/deluge_extract.sh
Normal file
34
apps/templates/deluge/scripts/deluge_extract.sh
Normal file
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copied from https://github.com/Radarr/Radarr/wiki/Common-Problems on August 19, 2018
|
||||
# the Radarr script was originally sourced from https://dev.deluge-torrent.org/wiki/Plugins/Execute
|
||||
|
||||
formats=(zip rar)
|
||||
commands=([zip]="unzip -u" [rar]="unrar -r -o- e")
|
||||
extraction_subdir='deluge_extracted'
|
||||
|
||||
torrentid=$1
|
||||
torrentname=$2
|
||||
torrentpath=$3
|
||||
|
||||
log()
|
||||
{
|
||||
logger -t deluge-extractarchives "$@"
|
||||
}
|
||||
|
||||
log "Torrent complete: $@"
|
||||
cd "${torrentpath}"
|
||||
for format in "${formats[@]}"; do
|
||||
while read file; do
|
||||
log "Extracting \"$file\""
|
||||
cd "$(dirname "$file")"
|
||||
file=$(basename "$file")
|
||||
# if extraction_subdir is not empty, extract to subdirectory
|
||||
if [[ ! -z "$extraction_subdir" ]] ; then
|
||||
mkdir "$extraction_subdir"
|
||||
cd "$extraction_subdir"
|
||||
file="../$file"
|
||||
fi
|
||||
${commands[$format]} "$file"
|
||||
done < <(find "$torrentpath/$torrentname" -iname "*.${format}" )
|
||||
done
|
||||
Reference in New Issue
Block a user