Merge pull request #10 from nov1n/fix/pocket-itemid

Use item id instead of resolved item id to identify Pocket articles
This commit is contained in:
Robert Carosi
2022-09-06 10:45:01 +02:00
committed by GitHub
6 changed files with 6 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ from https://docs.docker.com/get-docker/. Then run the following command to star
have not tested it on Windows yet):
```
touch ~/.remarkable-pocket ~/.rmapi && mkdir -p ~/.rmapi-cache && docker run -it --env TZ=Europe/Amsterdam -p 65112:65112 -v ~/.remarkable-pocket:/root/.remarkable-pocket -v ~/.rmapi:/root/.rmapi -v ~/.rmapi-cache:/root/.cache/rmapi ghcr.io/nov1n/remarkable-pocket:0.2.0
touch ~/.remarkable-pocket ~/.rmapi && mkdir -p ~/.rmapi-cache && docker run -it --env TZ=Europe/Amsterdam -p 65112:65112 -v ~/.remarkable-pocket:/root/.remarkable-pocket -v ~/.rmapi:/root/.rmapi -v ~/.rmapi-cache:/root/.cache/rmapi ghcr.io/nov1n/remarkable-pocket:0.2.1
```
The first time you run the application, you will be asked to authorize Pocket and Remarkable Cloud. Once you have done

View File

@@ -7,7 +7,7 @@ plugins {
}
group = "nl.carosi"
version = "0.2.0"
version = "0.2.1"
java {
toolchain {

View File

@@ -2,7 +2,7 @@ version: '3'
services:
remarkable-pocket:
image: ghcr.io/nov1n/remarkable-pocket:0.2.0
image: ghcr.io/nov1n/remarkable-pocket:0.2.1
restart: always
ports:
- 65112:65112

View File

@@ -8,7 +8,7 @@
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>while ! /usr/local/bin/docker version > /dev/null 2>&amp;1; do sleep 5; done &amp;&amp; /usr/local/bin/docker run --env TZ=Europe/Amsterdam -v ~/.remarkable-pocket:/root/.remarkable-pocket -v ~/.rmapi:/root/.rmapi -v ~/.rmapi-cache:/root/.cache/rmapi ghcr.io/nov1n/remarkable-pocket:0.2.0 1>>$HOME/.remarkable-pocket.log 2>&amp;1</string>
<string>while ! /usr/local/bin/docker version > /dev/null 2>&amp;1; do sleep 5; done &amp;&amp; /usr/local/bin/docker run --env TZ=Europe/Amsterdam -v ~/.remarkable-pocket:/root/.remarkable-pocket -v ~/.rmapi:/root/.rmapi -v ~/.rmapi-cache:/root/.cache/rmapi ghcr.io/nov1n/remarkable-pocket:0.2.1 1>>$HOME/.remarkable-pocket.log 2>&amp;1</string>
</array>
<key>RunAtLoad</key>
<true/>

View File

@@ -40,7 +40,7 @@ final class PocketService {
.build();
List<PocketItem> unreads = pocket.getItems(cmd).getList();
return unreads.stream()
.map(e -> Article.of(e.getResolvedId(), e.getResolvedUrl(), e.getResolvedTitle()))
.map(e -> Article.of(e.getItemId(), e.getResolvedUrl(), e.getResolvedTitle()))
.collect(Collectors.toList());
}

View File

@@ -19,7 +19,7 @@ import picocli.CommandLine.Option;
sortOptions = false,
usageHelpAutoWidth = true,
// TODO: Read from gradle.properties
version = "0.2.0",
version = "0.2.1",
mixinStandardHelpOptions = true)
class SyncCommand implements Callable<Integer> {
@Option(