fibelatti / pinboard-kotlin

Unofficial Android client for Pinboard and Linkding
https://play.google.com/store/apps/details?id=com.fibelatti.pinboard
Apache License 2.0
157 stars 13 forks source link

[Feature Request]: Download Linkding snapshots for offline viewing #346

Open caferen opened 2 weeks ago

caferen commented 2 weeks ago

Describe your idea

Linkding is able to generate HTML snapshots of bookmarks for offline viewing. Would be good to be able to download these to the device and load them when offline or whenever it's available.

I don't have Kotlin experience but I can look into this anyway if you're willing to merge but not implement yourself.

Describe how you think it could work

I don't think there is a way to get this from the REST API but the snapshots can be queried from /assets/<bookmark_id>.

The user should be able to:

Additional context

No response

fibelatti commented 2 weeks ago

@caferen thanks for the suggestion! Sounds really interesting. I'll take a look at how to generate the snapshots and integrate this feature into the app. The suggested triggers for downloading also make sense.

caferen commented 2 weeks ago

@fibelatti thanks, looking forward to it. I should also mention there's another endpoint for "reader mode": /assets/<bookmark_id>/read. This one relies on JS and CSS separately served from the server though.