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

Re-download missing linked files #10848

Closed
ror3d opened this issue Feb 2, 2024 · 2 comments · Fixed by #10855
Closed

Re-download missing linked files #10848

ror3d opened this issue Feb 2, 2024 · 2 comments · Fixed by #10855

Comments

@ror3d
Copy link
Contributor

ror3d commented Feb 2, 2024

Is your suggestion for improvement related to a problem? Please describe.
At my work we share a bib file among 2-3 people that we keep updated to keep track of interesting papers, but due to policy, we can't share the actual PDFs.
Trying to overcome this, we realized that if a file is downloaded, the original URL it was downloaded from is removed from the entry, so the file can't be easily redownloaded by other people using that link. Moreover, downloading it after the entry has been added seems to require manually downloading and adding it to the entry, which is not ideal.

Describe the solution you'd like
Downloaded files should remember where they were downloaded from, and give a way to re-download them if they are missing from the directory.

Additional context
I am working on a possible solution for this, I will PR when ready.

@Siedlerchr
Copy link
Member

That sounds indeed like a good idea, mabye move the file url to the url field after downloading?

@ror3d
Copy link
Contributor Author

ror3d commented Feb 3, 2024

That sounds indeed like a good idea, mabye move the file url to the url field after downloading?

I will do the PR on monday, but basically what I've done is add a sourceUrl field to the LinkedFile structure and when the file is downloaded the url is copied there, and the link is set to the file's path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants