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

* fix test-case

This commit is contained in:
Reinhard Pointner 2011-12-29 04:05:10 +00:00
parent 49c549bf3c
commit 9b2317dbb8
4 changed files with 7 additions and 13 deletions

View File

@ -51,7 +51,7 @@ import java.util.concurrent.*
def parallel(List closures, int threads = Runtime.getRuntime().availableProcessors()) {
def tasks = closures.collect { it as Callable }
return Executors.newFixedThreadPool(threads).invokeAll(tasks).collect{ it.get() }
return Executors.newFixedThreadPool(threads).invokeAll(tasks).collect{ _guarded { it.get() } }
}

View File

@ -181,7 +181,7 @@ public class TheTVDBClientTest {
@Test
public void getBannerList() throws Exception {
List<BannerDescriptor> banners = thetvdb.getBannerList(70327);
List<BannerDescriptor> banners = thetvdb.getBannerList(new TheTVDBSearchResult("Buffy the Vampire Slayer", 70327));
assertEquals(106, banners.size());
assertEquals("fanart", banners.get(0).getBannerType());

View File

@ -55,11 +55,8 @@ def fetchMovieArtworkAndNfo(movieDir, movie) {
}
args.getFolders().each { dir ->
args.eachMediaFolder { dir ->
def videos = dir.listFiles{ it.isVideo() }
if (videos.isEmpty()) {
return null
}
def query = _args.query ?: dir.name
def options = TheMovieDB.searchMovie(query, Locale.ENGLISH)

View File

@ -39,9 +39,9 @@ def fetchNfo(outputFile, series) {
<status>$status</status>
<studio>$network</studio>
<gsp:scriptlet> actors.each { </gsp:scriptlet>
<actor>
<name>$it</name>
</actor>
<actor>
<name>$it</name>
</actor>
<gsp:scriptlet> } </gsp:scriptlet>
</tvshow>
''').saveAs(outputFile)
@ -73,11 +73,8 @@ def fetchSeriesBannersAndNfo(seriesDir, seasonDir, series, season) {
}
args.getFolders().each { dir ->
args.eachMediaFolder { dir ->
def videos = dir.listFiles{ it.isVideo() }
if (videos.isEmpty()) {
return null
}
def query = _args.query ?: detectSeriesName(videos)
def sxe = videos.findResult{ parseEpisodeNumber(it) }