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