* [utorrent-postprocess] Support --def myepisodes=user:pwd to add automatic support for MyEpisodes.com

This commit is contained in:
Reinhard Pointner 2012-12-07 16:47:54 +00:00
parent 042d1f99db
commit ee92214842
2 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,7 @@ def mesadd = tryQuietly{ addshows.toBoolean() }
def mesupdate = tryQuietly { tick } ?: 'acquired' def mesupdate = tryQuietly { tick } ?: 'acquired'
// import myepisodes scraper // import myepisodes scraper
include('lib/ws') include('fn:lib/ws')
def mes = MyEpisodes(mesacc[0], mesacc[1]) def mes = MyEpisodes(mesacc[0], mesacc[1])
def myshows = mes.getShowList() def myshows = mes.getShowList()

View File

@ -192,6 +192,12 @@ plex?.each{
refreshPlexLibrary(it) refreshPlexLibrary(it)
} }
// mark episodes as 'acquired'
if (myepisodes) {
println "Update MyEpisodes"
include('fn:update-mes', [login:myepisodes, addshows:false], getRenameLog().values())
}
// send status email // send status email
if (gmail && !getRenameLog().isEmpty()) { if (gmail && !getRenameLog().isEmpty()) {
// ant/mail utility // ant/mail utility