From 66ec99bceb22de247b0d83c19cd22a453e73afed Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 9 Dec 2012 04:28:49 +0000 Subject: [PATCH] * fix issue that crashed utorrent-postprocess in it's postprocess section --- website/scripts/lib/ws.groovy | 4 ++-- website/scripts/utorrent-postprocess.groovy | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/website/scripts/lib/ws.groovy b/website/scripts/lib/ws.groovy index 816f9f41..6912a7de 100644 --- a/website/scripts/lib/ws.groovy +++ b/website/scripts/lib/ws.groovy @@ -65,11 +65,11 @@ class MyEpisodesScraper { } def addShow = { showid -> - get("http://myepisodes.com/views.php?type=manageshow&mode=add&showid=${showid}") + get("http://www.myepisodes.com/views.php?type=manageshow&mode=add&showid=${showid}") } def update = { showid, season, episode, tick = 'acquired', value = '0' -> - get("http://myepisodes.com/myshows.php?action=Update&showid=${showid}&season=${season}&episode=${episode}&${tick}=${value}") + get("http://www.myepisodes.com/myshows.php?action=Update&showid=${showid}&season=${season}&episode=${episode}&${tick}=${value}") } } diff --git a/website/scripts/utorrent-postprocess.groovy b/website/scripts/utorrent-postprocess.groovy index 56374b70..a1449c64 100644 --- a/website/scripts/utorrent-postprocess.groovy +++ b/website/scripts/utorrent-postprocess.groovy @@ -13,6 +13,7 @@ def artwork = tryQuietly{ artwork.toBoolean() } // array of xbmc/plex hosts def xbmc = tryQuietly{ xbmc.split(/[ ,|]+/) } def plex = tryQuietly{ plex.split(/[ ,|]+/) } +def myepisodes = tryQuietly { myepisodes.split(/:/, 2) } // email notifications def gmail = tryQuietly{ gmail.split(':', 2) } @@ -195,7 +196,7 @@ plex?.each{ // mark episodes as 'acquired' if (myepisodes) { println "Update MyEpisodes" - include('fn:update-mes', [login:myepisodes, addshows:false], getRenameLog().values()) + include('fn:update-mes', [login:myepisodes.join(':'), addshows:false], getRenameLog().values()) } // send status email