Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicate that a page has already been saved #570

Closed
Lasonneil opened this issue Dec 18, 2020 · 7 comments
Closed

Indicate that a page has already been saved #570

Lasonneil opened this issue Dec 18, 2020 · 7 comments

Comments

@Lasonneil
Copy link

@Lasonneil Lasonneil commented Dec 18, 2020

比如某一个网页被我下载下来了,但是当下次我又进入相同的网站,可不可以显示此网页已经被我下载,并且显示上一次下载是何时

@gildas-lormeau
Copy link
Owner

@gildas-lormeau gildas-lormeau commented Dec 18, 2020

I don't speak Chinese so I'm replying in English and including the translated response below (I used deepl.com).


That's a good question! This is complicated to implement because SingleFile cannot reliably know whether a page has already been saved or not.
However, this feature could perhaps exist in an application that relies on SingleFile. I am thinking in particular of Zotero which could rely on its database to know whether a page is saved or not. Unfortunately, this feature is also missing. You can find more info here: zotero/zotero#1007.


我不会说中文,所以我用英文回复,包括下面的翻译回复。

这是一个很好的问题!这个问题很复杂,因为SingleFile不能可靠地知道一个页面是否已经被保存。实现这个功能很复杂,因为SingleFile无法可靠地知道一个页面是否已经被保存。
然而,这个功能或许可以存在于依赖 SingleFile 的应用程序中。我特别想到了 Zotero,它可以依靠它的数据库来知道一个页面是否被保存。不幸的是,这个功能也是缺失的。你可以在这里找到更多信息:https://github.com/zotero/zotero/issues/1007。

@gildas-lormeau
Copy link
Owner

@gildas-lormeau gildas-lormeau commented Dec 18, 2020

I forgot to mention that ArchiveBox also uses SingleFile but as far as I know, no extensions exist yet.


我忘了说,ArchiveBox也使用SingleFile,但据我所知,还没有任何扩展存在。

@Lasonneil
Copy link
Author

@Lasonneil Lasonneil commented Dec 21, 2020

Appreciate for your reply ^ ^, actually i have an idea ,singlefile could save the url in a local text file(which located in the singlefile's folder ),and then compare the site with the urls in the text file to find if that site have been down loaded, forgive my poor english and childish idea( a tiro in the program world ,thanks ^^)
btw, singlefile is really a good tool: )

@gildas-lormeau
Copy link
Owner

@gildas-lormeau gildas-lormeau commented Dec 21, 2020

This is an interesting idea. Unfortunately, it's technically impossible for an extension to read the content of a file from the filesystem, even the ones it created.

@gildas-lormeau
Copy link
Owner

@gildas-lormeau gildas-lormeau commented Dec 21, 2020

A poor man's solution could be to use bookmarks for this. You could enable Bookmarks > save the page of a newly created bookmark and disable Bookmarks > link the new bookmark to the saved page. Then, to save pages, you would bookmark them instead of clicking on the extension button. And if you see the page is already bookmarked then it means you (probably) already saved it.

@gildas-lormeau gildas-lormeau changed the title 能否实现网页下载的记忆? Indicate that a page has already been saved Dec 21, 2020
@Lasonneil
Copy link
Author

@Lasonneil Lasonneil commented Dec 22, 2020

hahaha 😆 that's could be a good idea, appreciate for your reply

@Lasonneil Lasonneil closed this Dec 22, 2020
@gildas-lormeau
Copy link
Owner

@gildas-lormeau gildas-lormeau commented Dec 22, 2020

You're welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants