mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +02:00
Book UID (in progress)
This commit is contained in:
parent
201e5bf1b4
commit
41663bd942
6 changed files with 122 additions and 41 deletions
|
@ -29,6 +29,7 @@ import org.geometerplus.zlibrary.core.config.ZLConfig;
|
|||
|
||||
import org.geometerplus.zlibrary.text.view.*;
|
||||
|
||||
import org.geometerplus.fbreader.book.*;
|
||||
import org.geometerplus.fbreader.fbreader.*;
|
||||
|
||||
public class ApiServerImplementation extends ApiInterface.Stub implements Api, ApiMethods {
|
||||
|
@ -310,7 +311,8 @@ public class ApiServerImplementation extends ApiInterface.Stub implements Api, A
|
|||
}
|
||||
|
||||
public String getBookHash() {
|
||||
return getReader().Model.Book.getContentHashCode();
|
||||
final UID uid = BookUtil.createSHA256Uid(getReader().Model.Book.File);
|
||||
return uid != null ? uid.Id : null;
|
||||
}
|
||||
|
||||
public String getBookUniqueId() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue