1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 16:58:51 -05:00

Fix regression issue.

https://www.filebot.net/forums/viewtopic.php?f=6&t=4023
This commit is contained in:
Reinhard Pointner 2016-08-03 01:54:04 +08:00
parent d3df8cd4e4
commit 851cd9dc3b
2 changed files with 2 additions and 4 deletions

View File

@ -1221,9 +1221,8 @@ public class MediaDetection {
} }
public static SeriesInfo grepSeries(File nfo, Locale locale) throws Exception { public static SeriesInfo grepSeries(File nfo, Locale locale) throws Exception {
String text = readTextFile(nfo); List<Integer> tvdbId = grepTheTvdbId(readTextFile(nfo));
int tvdbId = grepTheTvdbId(text).get(0); return tvdbId.isEmpty() ? null : WebServices.TheTVDB.getSeriesInfo(tvdbId.get(0), locale);
return WebServices.TheTVDB.getSeriesInfo(tvdbId, locale);
} }
public static List<SearchResult> getProbableMatches(String query, Collection<? extends SearchResult> options, boolean alias, boolean strict) { public static List<SearchResult> getProbableMatches(String query, Collection<? extends SearchResult> options, boolean alias, boolean strict) {

View File

@ -24,7 +24,6 @@ import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.Map; import java.util.Map;
import java.util.Map.Entry; import java.util.Map.Entry;
import java.util.NoSuchElementException;
import java.util.Set; import java.util.Set;
import java.util.SortedSet; import java.util.SortedSet;
import java.util.TreeMap; import java.util.TreeMap;