diff --git a/source/net/sourceforge/filebot/web/SublightSubtitleClient.java b/source/net/sourceforge/filebot/web/SublightSubtitleClient.java index f0cf913c..36d74622 100644 --- a/source/net/sourceforge/filebot/web/SublightSubtitleClient.java +++ b/source/net/sourceforge/filebot/web/SublightSubtitleClient.java @@ -159,6 +159,10 @@ public class SublightSubtitleClient implements SubtitleProvider, VideoHashSubtit Collections.addAll(languages.getSubtitleLanguage(), SubtitleLanguage.values()); } + // hash singleton array + ArrayOfString videoHashes = new ArrayOfString(); + videoHashes.getString().add(videoHash); + // all genres ArrayOfGenre genres = new ArrayOfGenre(); Collections.addAll(genres.getGenre(), Genre.values()); @@ -168,7 +172,7 @@ public class SublightSubtitleClient implements SubtitleProvider, VideoHashSubtit Holder releases = new Holder(); Holder error = new Holder(); - webservice.searchSubtitles3(session, videoHash, name, year, null, null, languages, genres, null, null, null, subtitles, releases, null, error); + webservice.searchSubtitles4(session, videoHashes, name, year, null, null, languages, genres, null, null, null, subtitles, releases, null, error); // abort if something went wrong checkError(error); diff --git a/test/net/sourceforge/filebot/subtitle/SubRipReaderTest.java b/test/net/sourceforge/filebot/subtitle/SubRipReaderTest.java index f4340da4..243c9919 100644 --- a/test/net/sourceforge/filebot/subtitle/SubRipReaderTest.java +++ b/test/net/sourceforge/filebot/subtitle/SubRipReaderTest.java @@ -33,12 +33,12 @@ public class SubRipReaderTest { reader.close(); } - assertEquals(501, list.size(), 0); + assertEquals(499, list.size(), 0); assertEquals(3455, list.get(0).getStart(), 0); assertEquals(6799, list.get(0).getEnd(), 0); - assertEquals("Come with me if you want to live.", list.get(254).getText()); + assertEquals("Come with me if you want to live.", list.get(253).getText()); } } diff --git a/test/net/sourceforge/filebot/web/IMDbClientTest.java b/test/net/sourceforge/filebot/web/IMDbClientTest.java index 4169071e..ce6e9b6d 100644 --- a/test/net/sourceforge/filebot/web/IMDbClientTest.java +++ b/test/net/sourceforge/filebot/web/IMDbClientTest.java @@ -94,7 +94,7 @@ public class IMDbClientTest { Episode first = list.get(0); - assertEquals("Mushishi", first.getSeriesName()); + assertEquals("Mushi-Shi", first.getSeriesName()); assertEquals("Midori no za", first.getTitle()); assertEquals("1", first.getEpisode().toString()); assertEquals("1", first.getSeason().toString()); diff --git a/test/net/sourceforge/filebot/web/OpenSubtitlesXmlRpcTest.java b/test/net/sourceforge/filebot/web/OpenSubtitlesXmlRpcTest.java index fb98960f..89929976 100644 --- a/test/net/sourceforge/filebot/web/OpenSubtitlesXmlRpcTest.java +++ b/test/net/sourceforge/filebot/web/OpenSubtitlesXmlRpcTest.java @@ -182,7 +182,7 @@ public class OpenSubtitlesXmlRpcTest { ByteBuffer data = list.get(0).fetch(); // check size - assertEquals(48707, data.remaining(), 0); + assertEquals(48550, data.remaining(), 0); } diff --git a/test/net/sourceforge/filebot/web/SublightSubtitleClientTest.java b/test/net/sourceforge/filebot/web/SublightSubtitleClientTest.java index 95ef33dc..385493b4 100644 --- a/test/net/sourceforge/filebot/web/SublightSubtitleClientTest.java +++ b/test/net/sourceforge/filebot/web/SublightSubtitleClientTest.java @@ -64,8 +64,8 @@ public class SublightSubtitleClientTest { SubtitleDescriptor sample = list.get(0); - assertEquals("Terminator.2.Judgment.Day(1991)", sample.getName()); - assertEquals("English", sample.getLanguageName()); + assertEquals("Terminator.2.1991.ULTIMATE.EDITION.DC.DVDXvID.AC3.CDx-HLS", sample.getName()); + assertEquals("Slovenian", sample.getLanguageName()); // check size assertTrue(list.size() > 15); diff --git a/test/net/sourceforge/filebot/web/TMDbClientTest.java b/test/net/sourceforge/filebot/web/TMDbClientTest.java index e38d998b..892c8d1e 100644 --- a/test/net/sourceforge/filebot/web/TMDbClientTest.java +++ b/test/net/sourceforge/filebot/web/TMDbClientTest.java @@ -17,12 +17,12 @@ public class TMDbClientTest { @Test public void searchByName() throws Exception { - List result = tmdb.searchMovie("Transformers"); - MovieDescriptor movie = result.get(1); + List result = tmdb.searchMovie("Serenity"); + MovieDescriptor movie = result.get(0); - assertEquals("Transformers", movie.getName()); - assertEquals(2007, movie.getYear()); - assertEquals(418279, movie.getImdbId()); + assertEquals("Serenity", movie.getName()); + assertEquals(2005, movie.getYear()); + assertEquals(379786, movie.getImdbId()); }