Skip to content

[Bug]: Media deduplication #138

@aviv926

Description

@aviv926

Version

v7.6.1

Deployment Method

Docker Compose

Database Type

SQLite (default)

Bug Description

The feature:
Media deduplication — Symlinks identical files to save disk space
Does not prevent downloading an identical file
For example, if a video file is sent once as a streaming file and once as an MP4 file, then in the end the files downloaded are exactly the same (I did a test with SHA256) but they take up disk space for each of them.

Expected Behavior

When a file is identical in terms of its SHA then we need to prevent its download if it is identical to an existing file to save space
I understand that the download is caused because the message ID is different but it is not space saving.

Steps to Reproduce

  1. Send the same file to the chat once as a streaming file (full quality) and once as a
    Save for this chat.
    Result: 2 files are exactly the same but have different message IDs

Logs

Environment

DEDUPLICATE_MEDIA=true

Checklist

  • I have searched existing issues to ensure this isn't a duplicate
  • I am using the latest version

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions