From ee92214842cf974f1f7b4408cd4e1558b6caca1f Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 7 Dec 2012 16:47:54 +0000 Subject: [PATCH] * [utorrent-postprocess] Support --def myepisodes=user:pwd to add automatic support for MyEpisodes.com --- website/scripts/update-mes.groovy | 2 +- website/scripts/utorrent-postprocess.groovy | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/website/scripts/update-mes.groovy b/website/scripts/update-mes.groovy index d2a7b3a9..9a3fef9c 100644 --- a/website/scripts/update-mes.groovy +++ b/website/scripts/update-mes.groovy @@ -5,7 +5,7 @@ def mesadd = tryQuietly{ addshows.toBoolean() } def mesupdate = tryQuietly { tick } ?: 'acquired' // import myepisodes scraper -include('lib/ws') +include('fn:lib/ws') def mes = MyEpisodes(mesacc[0], mesacc[1]) def myshows = mes.getShowList() diff --git a/website/scripts/utorrent-postprocess.groovy b/website/scripts/utorrent-postprocess.groovy index 99afe3cd..56374b70 100644 --- a/website/scripts/utorrent-postprocess.groovy +++ b/website/scripts/utorrent-postprocess.groovy @@ -192,6 +192,12 @@ plex?.each{ refreshPlexLibrary(it) } +// mark episodes as 'acquired' +if (myepisodes) { + println "Update MyEpisodes" + include('fn:update-mes', [login:myepisodes, addshows:false], getRenameLog().values()) +} + // send status email if (gmail && !getRenameLog().isEmpty()) { // ant/mail utility