* add xbmc nfo <trailer> support
This commit is contained in:
parent
13873067d9
commit
c6f2817f17
|
@ -54,6 +54,7 @@
|
|||
^movie[s]?
|
||||
^new$
|
||||
^other$
|
||||
^Part$
|
||||
^private$
|
||||
^public$
|
||||
^pyload$
|
||||
|
|
|
@ -115,7 +115,7 @@ input = input.findAll{ !(it.path =~ /\b(?i:sample|trailer|extras|deleted.scenes|
|
|||
input.each{ f -> _log.finest("Input: $f") }
|
||||
|
||||
// artwork/nfo utility
|
||||
include('fn:lib/htpc')
|
||||
include('lib/htpc')
|
||||
|
||||
// group episodes/movies and rename according to XBMC standards
|
||||
def groups = input.groupBy{ f ->
|
||||
|
@ -264,12 +264,12 @@ if (plex) {
|
|||
// mark episodes as 'acquired'
|
||||
if (myepisodes) {
|
||||
_log.info 'Update MyEpisodes'
|
||||
include('fn:update-mes', [login:myepisodes.join(':'), addshows:true], getRenameLog().values())
|
||||
include('update-mes', [login:myepisodes.join(':'), addshows:true], getRenameLog().values())
|
||||
}
|
||||
|
||||
if (pushover) {
|
||||
// include webservice utility
|
||||
include('fn:lib/ws')
|
||||
include('lib/ws')
|
||||
|
||||
_log.info 'Sending Pushover notification'
|
||||
Pushover(pushover).send("Finished processing ${tryQuietly { ut_title } ?: input*.dir.name.unique()} (${getRenameLog().size()} files).")
|
||||
|
@ -278,7 +278,7 @@ if (pushover) {
|
|||
// send status email
|
||||
if (gmail) {
|
||||
// ant/mail utility
|
||||
include('fn:lib/ant')
|
||||
include('lib/ant')
|
||||
|
||||
// send html mail
|
||||
def renameLog = getRenameLog()
|
||||
|
@ -331,6 +331,6 @@ if (clean) {
|
|||
// deleting remaining files only makes sense after moving files
|
||||
if ('MOVE'.equalsIgnoreCase(_args.action)) {
|
||||
_log.info 'Clean clutter files and empty folders'
|
||||
include('fn:cleaner', [root:true], !args.empty ? args : ut_kind == 'multi' && ut_dir ? [ut_dir as File] : [])
|
||||
include('cleaner', [root:true], !args.empty ? args : ut_kind == 'multi' && ut_dir ? [ut_dir as File] : [])
|
||||
}
|
||||
}
|
||||
|
|
|
@ -216,6 +216,11 @@ def fetchMovieNfo(outputFile, movieInfo, movieFile, override) {
|
|||
role(a.character)
|
||||
}
|
||||
}
|
||||
i.trailers?.each{ t ->
|
||||
t.sources.each { s, v ->
|
||||
trailer(type:t.type, name:t.name, size:s, v)
|
||||
}
|
||||
}
|
||||
fileinfo {
|
||||
streamdetails {
|
||||
mi?.each { kind, streams ->
|
||||
|
|
|
@ -6,7 +6,7 @@ def mesupdate = tryQuietly { tick } ?: 'acquired'
|
|||
def mesvalue = tryQuietly { value } ?: '1'
|
||||
|
||||
// import myepisodes scraper
|
||||
include('fn:lib/scraper')
|
||||
include('lib/scraper')
|
||||
|
||||
def mes = MyEpisodes(mesacc[0], mesacc[1])
|
||||
def myshows = mes.getShowList()
|
||||
|
|
Loading…
Reference in New Issue