* ignore missing episode lists and continue
This commit is contained in:
parent
7ba5bb52d9
commit
07e0b20dc1
|
@ -37,6 +37,7 @@ import java.util.concurrent.Callable;
|
||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.Future;
|
import java.util.concurrent.Future;
|
||||||
|
import java.util.logging.Level;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import net.sourceforge.filebot.Analytics;
|
import net.sourceforge.filebot.Analytics;
|
||||||
|
@ -252,11 +253,14 @@ public class CmdlineOperations implements CmdlineInterface {
|
||||||
if (selectedSearchResults != null) {
|
if (selectedSearchResults != null) {
|
||||||
List<Episode> episodes = new ArrayList<Episode>();
|
List<Episode> episodes = new ArrayList<Episode>();
|
||||||
for (SearchResult it : selectedSearchResults) {
|
for (SearchResult it : selectedSearchResults) {
|
||||||
|
try {
|
||||||
CLILogger.fine(format("Fetching episode data for [%s]", it.getName()));
|
CLILogger.fine(format("Fetching episode data for [%s]", it.getName()));
|
||||||
episodes.addAll(db.getEpisodeList(it, sortOrder, locale));
|
episodes.addAll(db.getEpisodeList(it, sortOrder, locale));
|
||||||
Analytics.trackEvent(db.getName(), "FetchEpisodeList", it.getName());
|
Analytics.trackEvent(db.getName(), "FetchEpisodeList", it.getName());
|
||||||
|
} catch (IOException e) {
|
||||||
|
CLILogger.log(Level.SEVERE, e.getMessage(), e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return episodes;
|
return episodes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -592,8 +596,9 @@ public class CmdlineOperations implements CmdlineInterface {
|
||||||
for (File it : remainingVideos) {
|
for (File it : remainingVideos) {
|
||||||
CLILogger.warning("No matching subtitles found: " + it);
|
CLILogger.warning("No matching subtitles found: " + it);
|
||||||
}
|
}
|
||||||
|
if (subtitleFiles.size() > 0) {
|
||||||
Analytics.trackEvent("CLI", "Download", "Subtitle", subtitleFiles.size());
|
Analytics.trackEvent("CLI", "Download", "Subtitle", subtitleFiles.size());
|
||||||
|
}
|
||||||
return subtitleFiles;
|
return subtitleFiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue