Skip to content

Incorrect File Extension Recognition Due to Double Dot Prefix (e.g., filename...mkv) #414

Open
@zhouyl

Description

@zhouyl
  • I have checked the existing issues to avoid duplicates
  • I have redacted any info hashes and content metadata from any logs or screenshots attached to this issue

Describe the bug

When a file name contains a double dot prefix before the extension (e.g., filename..mkv), Bitmagnet incorrectly recognizes the file extension as null. This issue leads to improper classification and handling of such files.

Image

To Reproduce

Steps to reproduce the behavior:

  1. Add a file with a name like filename..mkv to Bitmagnet.
  2. Observe that the file extension is not recognized correctly.
  3. Check the classification or handling of the file; it may be misclassified or skipped.​

Expected behavior

Files with a double dot prefix in their names should have their extensions recognized correctly, and they should be classified and handled appropriately within Bitmagnet.

Environment Information (Required)

  • Bitmagnet version: [0.10.0]
  • OS and version: [Ubuntu 22.04 LTS]

Additional context

This issue appears to be related to how Bitmagnet parses file names and extensions. Implementing a more robust parsing mechanism that handles double dot prefixes correctly could resolve this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions