mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-02 00:15:02 -04:00
Fix regression issue.
https://www.filebot.net/forums/viewtopic.php?f=6&t=4023
This commit is contained in:
parent
d3df8cd4e4
commit
851cd9dc3b
@ -1221,9 +1221,8 @@ public class MediaDetection {
|
||||
}
|
||||
|
||||
public static SeriesInfo grepSeries(File nfo, Locale locale) throws Exception {
|
||||
String text = readTextFile(nfo);
|
||||
int tvdbId = grepTheTvdbId(text).get(0);
|
||||
return WebServices.TheTVDB.getSeriesInfo(tvdbId, locale);
|
||||
List<Integer> tvdbId = grepTheTvdbId(readTextFile(nfo));
|
||||
return tvdbId.isEmpty() ? null : WebServices.TheTVDB.getSeriesInfo(tvdbId.get(0), locale);
|
||||
}
|
||||
|
||||
public static List<SearchResult> getProbableMatches(String query, Collection<? extends SearchResult> options, boolean alias, boolean strict) {
|
||||
|
@ -24,7 +24,6 @@ import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.Set;
|
||||
import java.util.SortedSet;
|
||||
import java.util.TreeMap;
|
||||
|
Loading…
Reference in New Issue
Block a user