1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-17 23:05:03 -05:00

* update scripts

* remove generated files
This commit is contained in:
Reinhard Pointner 2012-02-27 09:56:15 +00:00
parent 7e0a7b8f10
commit 37570fce74
5 changed files with 14 additions and 0 deletions

View File

@ -43,6 +43,10 @@ def names = page.fetch().getHtml('utf-8')
.depthFirst().TR.findAll{ it.TD.size() == 3 && it.TD[1].text() == 'English'} .depthFirst().TR.findAll{ it.TD.size() == 3 && it.TD[1].text() == 'English'}
.findResults{ it.TD[0].A.text() } .findResults{ it.TD[0].A.text() }
if (names.size() == 0) {
throw new Exception("Failed to scrape series names")
}
def anime = net.sourceforge.filebot.WebServices.AniDB.getAnimeTitles() def anime = net.sourceforge.filebot.WebServices.AniDB.getAnimeTitles()
names += anime.findResults{ it.getPrimaryTitle() } names += anime.findResults{ it.getPrimaryTitle() }
names += anime.findResults{ it.getOfficialTitle('en') } names += anime.findResults{ it.getOfficialTitle('en') }

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,10 @@
// filebot -script "http://filebot.sf.net/scripts/extract.groovy" <folder>
/*
* Auto-extract all zip and rar archives.
*/
args.getFiles{ it.isArchive() }.each {
def output = extract(file:it)
output.each{ println "Extracted: " + it.path }
}