mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
Binding "General[0][Encoded_Date]": undefined => normal if Encoded_Date is undefined => ignore
This commit is contained in:
parent
8ec6282266
commit
70ca7b9484
@ -28,6 +28,7 @@ import java.util.stream.Stream;
|
||||
|
||||
import com.ibm.icu.text.Transliterator;
|
||||
|
||||
import net.filebot.format.BindingException;
|
||||
import net.filebot.format.MediaBindingBean;
|
||||
import net.filebot.media.SmartSeasonEpisodeMatcher;
|
||||
import net.filebot.similarity.SeasonEpisodeMatcher.SxE;
|
||||
@ -549,8 +550,10 @@ public enum EpisodeMetrics implements SimilarityMetric {
|
||||
if (VIDEO_FILES.accept(file) && file.length() > ONE_MEGABYTE) {
|
||||
try {
|
||||
return new MediaBindingBean(file, file).getEncodedDate().getTimeStamp();
|
||||
} catch (BindingException e) {
|
||||
debug.finest(e::getMessage); // Binding "General[0][Encoded_Date]": undefined => normal if Encoded_Date is undefined => ignore
|
||||
} catch (Exception e) {
|
||||
debug.warning(format("Failed to read media encoding date: %s", e.getMessage()));
|
||||
debug.warning("Failed to read media encoding date: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user