aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiederick de Vries <diederick@diederickdevries.net>2018-06-11 12:07:12 +0200
committerDiederick de Vries <diederick@diederickdevries.net>2018-06-11 12:07:12 +0200
commit145aaea526d12215a49111378cc2d246af75ff31 (patch)
treee3a8bc275d7a7a0cd256c3056b3a9abc9ba5ad4c
parent215aef8f1c7501dc7c913322502fd8eabf221e06 (diff)
downloadcareless-145aaea526d12215a49111378cc2d246af75ff31.tar.gz
careless-145aaea526d12215a49111378cc2d246af75ff31.tar.bz2
careless-145aaea526d12215a49111378cc2d246af75ff31.zip
Add transmission host field and comments
-rw-r--r--careless.groovy17
1 files changed, 9 insertions, 8 deletions
diff --git a/careless.groovy b/careless.groovy
index 3bff666..6db5a0f 100644
--- a/careless.groovy
+++ b/careless.groovy
@@ -32,15 +32,16 @@ import groovy.transform.Canonical
32@Slf4j 32@Slf4j
33class Process { 33class Process {
34 34
35 def ttrss = "http://localhost/tt-rss/"; 35 def trans = "philae" // The name of the host of Transmission
36 def user = "" 36 def ttrss = "http://localhost/tt-rss/"; // The full URL to Tiny Tiny RSS
37 def pass = "" 37 def user = "" // Your Tiny Tiny RSS user name
38 def feed = "" 38 def pass = "" // Your Tiny Tiny RSS password
39 def feed = "" // The feed id (numeric)
39 40
40 def tv = "" 41 def tv = "" // The directory where the articles are stored
41 def allowed = ['mkv', 'mp4', 'mpg', 'avi'] 42 def allowed = ['mkv', 'mp4', 'mpg', 'avi'] // The allowed file name extensions
42 def nrs = "[Ss]?[0-9]{1,2}[EeXx][0-9]{1,2}"
43 43
44 def nrs = "[Ss]?[0-9]{1,2}[EeXx][0-9]{1,2}"
44 def sid = null 45 def sid = null
45 46
46 public String login () { 47 public String login () {
@@ -112,7 +113,7 @@ class Process {
112 articles.each { it -> 113 articles.each { it ->
113 log.debug "sending link: ($it.id) $it.link" 114 log.debug "sending link: ($it.id) $it.link"
114 try { 115 try {
115 log.error (['transmission-remote', '--add', it.link].execute().text) 116 log.error (['transmission-remote', $trans, '--add', it.link].execute().text)
116 } catch (IOException e) { 117 } catch (IOException e) {
117 log.error (e.getMessage()); 118 log.error (e.getMessage());
118 } 119 }