mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-05 17:05:04 -05:00
Improved error messages
This commit is contained in:
parent
97174d18bd
commit
97bdf1c910
@ -789,7 +789,7 @@ public class CmdlineOperations implements CmdlineInterface {
|
|||||||
try {
|
try {
|
||||||
downloads.put(movie, downloadSubtitle(service, subtitle, movie, outputFormat, outputEncoding, naming));
|
downloads.put(movie, downloadSubtitle(service, subtitle, movie, outputFormat, outputEncoding, naming));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warning(format("Failed to download %s: %s", subtitle.getPath(), e.getMessage()));
|
log.warning(format("Failed to download %s: %s", subtitle, e));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -135,9 +135,8 @@ public class OpenSubtitlesSubtitleDescriptor implements SubtitleDescriptor, Seri
|
|||||||
// check download quota
|
// check download quota
|
||||||
String quota = c.getHeaderField("Download-Quota");
|
String quota = c.getHeaderField("Download-Quota");
|
||||||
if (quota != null) {
|
if (quota != null) {
|
||||||
|
debug.finest("Download-Quota: " + quota);
|
||||||
setAndCheckDownloadQuota(Integer.parseInt(quota));
|
setAndCheckDownloadQuota(Integer.parseInt(quota));
|
||||||
|
|
||||||
debug.finest(format("Download-Quota: %d", DOWNLOAD_QUOTA));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// read and extract subtitle data
|
// read and extract subtitle data
|
||||||
@ -164,7 +163,7 @@ public class OpenSubtitlesSubtitleDescriptor implements SubtitleDescriptor, Seri
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return String.format("%s [%s]", getName(), getLanguageName());
|
return getPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user