X Tutup
Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 04d263f

Browse files
committed
Scripts: Added user agent to 'sync torrent downloads' scripts.
1 parent d1459d0 commit 04d263f

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

roles/scripts/templates/download_torrents_from_rclone_remote.sh.j2

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
#########################################################################
1414

1515
if ! /usr/bin/screen -list | /bin/grep -q "torrents_download"; then
16-
16+
1717
/bin/rm -rfv /opt/scripts/rclone/download_torrents_from_rclone_remote.log
18-
18+
1919
/usr/bin/screen -dmS torrents_download /usr/bin/rclone copy \
20+
--user-agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36' \
2021
--config=/home/{{ user }}/.config/rclone/rclone.conf \
2122
--verbose=1 \
2223
--transfers=8 \
@@ -26,5 +27,5 @@ if ! /usr/bin/screen -list | /bin/grep -q "torrents_download"; then
2627
--fast-list \
2728
--log-file=/opt/scripts/rclone/download_torrents_from_rclone_remote.log \
2829
{{ rclone.remote }}:/downloads/torrents {{ downloads.torrents }}
29-
30-
fi
30+
31+
fi

roles/scripts/templates/sync_torrents_to_rclone_remote.sh.j2

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
#########################################################################
1313

1414
if ! /usr/bin/screen -list | /bin/grep -q "torrents_sync"; then
15-
15+
1616
/bin/rm -rfv /opt/scripts/rclone/sync_torrents_to_rclone_remote.log
17-
17+
1818
/usr/bin/screen -dmS torrents_sync /usr/bin/rclone sync \
19+
--user-agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36' \
1920
--config=/home/{{ user }}/.config/rclone/rclone.conf \
2021
--verbose=1 \
2122
--transfers=8 \
@@ -25,5 +26,5 @@ if ! /usr/bin/screen -list | /bin/grep -q "torrents_sync"; then
2526
--fast-list \
2627
--log-file=/opt/scripts/rclone/sync_torrents_to_rclone_remote.log \
2728
{{ downloads.torrents }} {{ rclone.remote }}:/downloads/torrents
28-
29-
fi
29+
30+
fi

0 commit comments

Comments
 (0)
X Tutup