Search found 1 match

by imp4ler
Sun Dec 19, 2021 11:05 pm
Forum: Support
Topic: Execute Plugin and Labels
Replies: 8
Views: 21948

Re: Execute Plugin and Labels

Or just #!/usr/bin/env python # coding: utf label_conf_path = '/home/username/.config/deluge/label.conf' import sys import json torrent_id = sys.argv[1] with open(label_conf_path, 'r') as f: contents = f.read() contents = contents.split('"torrent_labels":')[1][:-1] labels = json.loads(cont...