Closed
Description
Problem
An (ID3 tag) frame contained inside the to-be-imported mp3 file remains in the file after it has been imported.
Here's the procedure:
Start with any mp3 file:
$ wget -O test.mp3 "https://ccrma.stanford.edu/~jos/mp3/pno-cs.mp3"
Delete any (all) ID3 tags from the file:
$ mid3v2 -D test.mp3
Check that the file contains no ID3 tags:
$ mid3v2 test.mp3
IDv2 tag info for test.mp3
No ID3 header found; skipping.
Add "COMM" (comment) ID3 frame with garbage content (this also adds the ID3v2.4.0 tag needed to contain the frame):
$ mid3v2 -c wibble test.mp3
Import the mp3 as a track
$ beet -vv -l libraryTest.db import --from-scratch -C -t test.mp3
user configuration: /home/user/.config/beets/config.yaml
data directory: /home/user/.config/beets
plugin paths:
Sending event: pluginload
library database: /home/user/test/libraryTest.db
library directory: /home/user/Music
Sending event: library_opened
Sending event: import_begin
Sending event: import_task_created
Sending event: import_task_start
Looking up: /home/user/test/test.mp3
Tagging -
No album ID found.
Search terms: -
Album might be VA: True
Evaluating 0 candidates.
/home/user/test/test.mp3 (1 items)
Sending event: before_choose_candidate
No matching release found for 1 tracks.
For help, see: http://beets.readthedocs.org/en/latest/faq.html#nomatch
[S]kip, Use as-is, as Tracks, Group albums, Enter search, enter Id, aBort? T
Sending event: import_task_choice
Sending event: import_task_created
Sending event: import_task_start
Looking up: /home/user/test/test.mp3
Item search terms: -
Found 0 candidates.
/home/user/test/test.mp3
Sending event: before_choose_candidate
No matching recordings found.
[S]kip, Use as-is, Enter search, enter Id, aBort? I
Enter recording ID: 07227795-b0b8-4c73-b010-c96f73990dc4
Searching for track ID: 07227795-b0b8-4c73-b010-c96f73990dc4
Sending event: trackinfo_received
Sending event: before_choose_candidate
Correcting track tags from:
-
To:
Gene Autry - Rudolph, the Red-Nosed Reindeer
URL:
https://musicbrainz.org/recording/07227795-b0b8-4c73-b010-c96f73990dc4
(Similarity: 0.0%) (title, length)
Apply, More candidates, Skip, Use as-is, Enter search, enter Id, aBort? A
Sending event: import_task_choice
Sending event: import_task_apply
0 of 1 items replaced
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
Sending event: database_change
Sending event: import_task_files
Sending event: item_imported
Sending event: import
Sending event: cli_exit
But the garbage tag is still there:
$ mid3v2 test.mp3 | grep wibble
COMM==eng=wibble
Setup
- OS: Debian GNU/Linux 10 ("Buster")
- Python version: 3.7.3
- beets version: 1.4.7
- Turning off plugins made problem go away (yes/no): no (I don't have any plugins)
$ beet version
beets version 1.4.7
Python version 3.7.3
no plugins loaded
$ beet config
{}