vpn integration
This commit is contained in:
@@ -37,6 +37,9 @@ def clean_old_torrents():
|
||||
print(f"delete torrent {torrent.name}")
|
||||
torrent.delete()
|
||||
|
||||
def update_peer_port():
|
||||
transmission_handler.update_vpn_port()
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
task_schedule = {
|
||||
@@ -47,6 +50,10 @@ class Command(BaseCommand):
|
||||
"clean_old_torrents": {
|
||||
"func": clean_old_torrents,
|
||||
"schedule": 5.0
|
||||
},
|
||||
"update_peer_port": {
|
||||
"func": update_peer_port,
|
||||
"schedule": 10.0
|
||||
}
|
||||
}
|
||||
histories = {}
|
||||
|
||||
Reference in New Issue
Block a user