1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* add xbmc nfo <trailer> support

This commit is contained in:
Reinhard Pointner 2013-08-04 15:19:09 +00:00
parent 13873067d9
commit c6f2817f17
4 changed files with 12 additions and 6 deletions

View File

@ -54,6 +54,7 @@
^movie[s]?
^new$
^other$
^Part$
^private$
^public$
^pyload$

View File

@ -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] : [])
}
}

View 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 ->

View File

@ -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()