hydrusnetwork / hydrusnetwork/hydrus
Support more filetypes / arbitrary file import
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.2k
- Forks
- 207
- PR merge metrics
- No merged PRs in 30d
Description
Some screenshots from the discord
Since PSD files are already allowed, there is probably no reason not to allow these:



Same, .wav files are not very different from mp3 files:

You get the idea:

The actual issue
Since this gets requested a lot, it is probably worth discussing arbitrary file imports (i.e. allowing any file to be imported, without checking if it's "allowed" first):

This is potentially dangerous though, since the act of opening a file sometimes changes the hash of the file. (for example: when opening a .epub file with calibre, it adds/changes the META-INF/calibre-bookmarks.txt file inside the epub/zip.
This would break hydrus' hash-based system.
So: please discuss: "should hydrus prevent users from importing such files?"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by reviewing the arbitrary-import proposal and the EPUB/ZIP hash-integrity example, then trace the existing import and hashing behavior. Done requires an agreed approach for unsupported files that does not undermine the hash-based system.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100