Skip to content

fromfilename: Fails to detect <track> <title> filename patterns #4561

@hsandt

Description

@hsandt

Problem

Running this command in verbose (-vv) mode:

$ beet import path/to/unknown_music_tracks
path/to/unknown_music_tracks (5 items)
No matching release found for 5 tracks.
For help, see: https://beets.readthedocs.org/en/latest/faq.html#nomatch
[S]kip, Use as-is, as Tracks, Group albums, Enter search, enter Id, aBort?
$ u

to Use as-is, will led to this problem:

the track numbers are not recognized. For instance, if I run beet ls:

$ beet ls
 -  - 01 深き森にて
 -  - 02 緋龍の翼
 -  - 03 風の国ルイヴェスタ
 -  - 04 終りなき狂詩曲
 -  - 05 無慈悲な夜に

the track numbers are still part of the files.

If I disable fromfilename plugin, the whole output is empty (no track number nor track name).

Here's a link to the music files that trigger the bug (if relevant):

Use any unknown track, such as a dummy sound file you would create, or rename the folder/files so artist/track cannot be identified (this is however a real use case; I'm simply downloading lesser known tracks from indie bands, etc.)

Setup

  • OS: Ubuntu 20.04
  • Python version: 3.8.10
  • beets version: 1.6.0
  • Turning off plugins made problem go away (yes/no): no

My configuration (output of beet config) is:

directory: ~/path/to/Music
import:
    copy: no
    write: no
plugins: fromfilename

Note: write: yes didn't help. In fact, it didn't even seem to change the track names, but that's another issue. I assume beet ls alone should show expected information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbugs that are confirmed and actionablefromfilename

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions