mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 22:09:47 -04:00
Make sure to parse large numbers
This commit is contained in:
parent
41eb392390
commit
fd8a9b4de6
@ -95,7 +95,7 @@ public class License implements Serializable {
|
|||||||
|
|
||||||
private void verifyLicense() throws Exception {
|
private void verifyLicense() throws Exception {
|
||||||
Cache cache = CacheManager.getInstance().getCache("license", CacheType.Persistent);
|
Cache cache = CacheManager.getInstance().getCache("license", CacheType.Persistent);
|
||||||
String message = new CachedResource<Integer, String>(id, i -> new URL("https://license.filebot.net/verify/" + id), (url, modified) -> WebRequest.post(url, bytes, "application/octet-stream", null), getText(UTF_8), String.class::cast, Cache.ONE_MONTH, cache).get().trim();
|
String message = new CachedResource<Long, String>(id, i -> new URL("https://license.filebot.net/verify/" + id), (url, modified) -> WebRequest.post(url, bytes, "application/octet-stream", null), getText(UTF_8), String.class::cast, Cache.ONE_MONTH, cache).get().trim();
|
||||||
|
|
||||||
if (!message.equals("OK")) {
|
if (!message.equals("OK")) {
|
||||||
throw new PGPException(message);
|
throw new PGPException(message);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user