mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
Better logging
This commit is contained in:
parent
23872ff894
commit
e8d11717ba
@ -226,9 +226,11 @@ public class OpenSubtitlesClient implements SubtitleProvider, VideoHashSubtitleS
|
||||
// debug dummy files, e.g. {hash: 1ed67c43e4a3b09f, size: 992272721}
|
||||
try {
|
||||
Map<?, ?> json = asMap(readJson(readTextFile(f)));
|
||||
return Query.forHash(json.get("hash").toString(), Long.parseLong(json.get("size").toString()), getLanguageFilter(language));
|
||||
if (json != null) {
|
||||
return Query.forHash(json.get("hash").toString(), Long.parseLong(json.get("size").toString()), getLanguageFilter(language));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
debug.finest(e::toString);
|
||||
debug.finest("Ignore sample file: " + f);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user