Open arogl opened 8 years ago
Huh! This does look like a problem. The database entries are removed, but the files are not. Can you please check whether disabling plugins changes this behavor at all?
Removing all plugins does not fix the problem.
Thanks!
I dug into the code a little more. We only delete files that appear to be under the library directory—i.e., F:\Music\
in your case. Something must be going wrong with that test. If it had succeeded, we'd see a debug message that says "deleting duplicate" for each of the files: https://github.com/beetbox/beets/blob/cb6efc4c225416a9951c09237b1fbb547147bb34/beets/importer.py#L523
I don't currently have a Windows machine to reproduce the problem. Any chance you could help out with pinning down the problem? It would be helpful to see the output of this additional logging statement:
log.debug('lib: {!r}, ancestry: {!r}, contained: {!r}', lib.directory, util.ancestry(item.path), lib.directory in util.ancestry(item.path))
just before the if:
line in that file that tests for containment.
add debug line to above the if statement. Output below, note this is for a different album, but still a duplicate.
C:\>beet -vv imp "\\?\f:\New_Music\import\Pet Shop Boys
user configuration: C:\Users\Andre\AppData\Roaming\beets\config.yaml
data directory: C:\Users\Andre\AppData\Roaming\beets
plugin paths: C:\Users\Andre\AppData\Roaming\beets\beetsplug
Sending event: pluginload
library database: C:\Users\Andre\AppData\Roaming\beets\library.db
library directory: F:\Music\
Sending event: library_opened
Sending event: import_begin
Import of the directory:
f:\New_Music\import\Pet Shop Boys
was interrupted. Resume (Y/n)? n
Sending event: import_task_created
Sending event: import_task_start
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\Remix Albums\\2002 Disco 3\\01. Time On My Hands.m4a'
chroma: matched recordings [u'371df98a-fdf1-4d31-bf1a-d759a64726ab', u'c2b92c5e-bc27-4b9e-8708-750d25f8f931', u'dfa8d0df-05af-4174-8193-9008903b08e2'] on releases [u'b45efce4-1b97-42f0-a22b-97f799d81b47', u'c30b5c07-015b-46a0-bb9f-f5e8821b5120', u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7']
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\Remix Albums\\2002 Disco 3\\02. Positive Role Model.m4a'
chroma: matched recordings [u'46495797-88c3-4592-92e5-61c987ce9df1', u'6d1f3465-dd0e-4d23-86ed-89037d777a3f', u'7b32a4db-35b6-48cb-938f-b089f3101a63', u'd339f29d-2bc6-4691-8fb0-0736e708901c'] on releases [u'9c3f9756-150b-4464-9eb2-7086eed76a58', u'b45efce4-1b97-42f0-a22b-97f799d81b47', u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7', u'804078fd-3160-44f1-a674-549334038c95']
chroma: chroma: fingerprinted "f:\\New_Music\\import\\Pet Shop Boys\\Remix Albums\\2002 Disco 3\\03. Try It (I'm In Love With A Married Man).m4a"
chroma: matched recordings [u'929cadf4-e381-4cde-b0fa-19e1203c126b', u'd1cf01ab-3b3c-4813-b8e2-8c75472ef55e'] on releases [u'b45efce4-1b97-42f0-a22b-97f799d81b47', u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7']
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\Remix Albums\\2002 Disco 3\\04. London (Thee Radikal Blaklite Edit).m4a'
chroma: matched recordings [u'5906aa3f-2db3-49ce-bb9f-5d917341c018'] on releases [u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7']
chroma: chroma: fingerprinted "f:\\New_Music\\import\\Pet Shop Boys\\Remix Albums\\2002 Disco 3\\05. Somebody Else's Business.m4a"
chroma: matched recordings [u'5e5ef250-40ec-44df-95b2-a54aa7788f50'] on releases [u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7']
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\Remix Albums\\2002 Disco 3\\06. Here (PSB New Extended Mix).m4a'
chroma: matched recordings [u'4ddc32cb-1380-4dd2-a901-846d81cece7e', u'614e7ce2-aba1-4ec2-a6b8-12e9666bc256', u'94a58722-66dd-4898-8db4-b12bacca3c9c'] on releases [u'c30b5c07-015b-46a0-bb9f-f5e8821b5120', u'b45efce4-1b97-42f0-a22b-97f799d81b47', u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7']
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\Remix Albums\\2002 Disco 3\\07. If Looks Could Kill.m4a'
chroma: matched recordings [u'60f6cc6c-c7e5-4af7-b456-30212a6bd338', u'de0ac9b2-ebae-44d5-9640-15d142756473'] on releases [u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7', u'b45efce4-1b97-42f0-a22b-97f799d81b47']
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\Remix Albums\\2002 Disco 3\\08. Sexy Northerner (Superchumbo Mix).m4a'
chroma: matched recordings [u'083812a9-2280-40de-9d14-a835e7d579fd', u'9c40b101-bd60-4fb5-831f-8223c067b908'] on releases [u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7', u'b45efce4-1b97-42f0-a22b-97f799d81b47']
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\Remix Albums\\2002 Disco 3\\09. Home & Dry (Blank & Jones Remix).m4a'
chroma: matched recordings [u'0d4071b3-15ca-4e7c-a618-62739457f725', u'715d8b06-c068-47c0-b180-464099cfd5df', u'bfbbb9c2-73ef-4f9c-9d7e-52081be0738c', u'c278d0c8-68ae-48be-8545-5bb47e34b1a8', u'd9553dda-7ac1-4034-9e79-6726927666c5'] on releases [u'b45efce4-1b97-42f0-a22b-97f799d81b47', u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7', u'c30b5c07-015b-46a0-bb9f-f5e8821b5120', u'23efe13e-dbac-342c-8da7-69b66a9b4c6d', u'ec07eab5-e30b-4163-8d88-aae44b873518']
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\Remix Albums\\2002 Disco 3\\10. London (Genuine Piano Mix).m4a'
chroma: matched recordings [u'ba917e9b-b900-4e79-8773-4ca2b91a7e54', u'fdba2308-62ad-4d16-9a9a-b74e5ff2073b'] on releases [u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7', u'9c3f9756-150b-4464-9eb2-7086eed76a58']
Looking up: f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3
Tagging Pet Shop Boys - Disco 3
No album IDs found.
Search terms: Pet Shop Boys - Disco 3
Album might be VA: False
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
chroma: acoustid album candidates: 4
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Evaluating 14 candidates.
Candidate: Pet Shop Boys - Disco 3
Success. Distance: 0.03
Candidate: Pet Shop Boys - Disco 3
Success. Distance: 0.02
Candidate: Pet Shop Boys - Disco 3
Success. Distance: 0.03
Candidate: Pet Shop Boys - Disco 3
Success. Distance: 0.32
Candidate: Pet Shop Boys - Disco
Success. Distance: 0.60
Candidate: Pet Shop Boys - Disco 3
Duplicate.
Candidate: Pet Shop Boys - Disco 3
Duplicate.
Candidate: Pet Shop Boys - Disco 3
Duplicate.
Candidate: Pet Shop Boys - Disco 3
Duplicate.
Candidate: Pet Shop Boys - Disco
Success. Distance: 0.54
Candidate: Pet Shop Boys - Disco Four (Remixed By Pet Shop Boys)
Success. Distance: 0.57
Candidate: Pet Shop Boys - Disco
Success. Distance: 0.57
Candidate: Pet Shop Boys - Disco
Success. Distance: 0.52
Candidate: Pet Shop Boys - Disco 3
Success. Distance: 0.40
f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3 (10 items)
Sending event: before_choose_candidate
Tagging:
Pet Shop Boys - Disco 3
URL:
http://musicbrainz.org/release/309912b6-a937-3610-961a-caf43223ef42
(Similarity: 98.0%) (country, year) (2003, JP)
* Time On My Hands ->
Time on My Hands
* Try It (I'm In Love With A Married Man) ->
Try It (I'm in Love With a Married Man)
* London (Thee Radikal Blaklite Edit) ->
London (Thee Radikal Blaklite edit)
* Here (PSB New Extended Mix) ->
Here (PSB new extended mix)
* Sexy Northerner (Superchumbo Mix) ->
Sexy Northerner (Superchumbo mix)
* Home & Dry (Blank & Jones Remix) ->
Home and Dry (Blank & Jones remix)
* London (Genuine Piano Mix) ->
London (Genuine Piano mix)
Sending event: import_task_choice
found duplicates: [5150]
default action for duplicates: a
This album is already in the library!
Old: 10 items, AAC, 256kbps, 51:50, 96.1 MiB
New: 10 items, AAC, 332kbps, 51:50, 123.3 MiB
[S]kip new, Keep both, Remove old? r
Sending event: import_task_apply
0 of 10 items replaced
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
replaygain: analyzing Pet Shop Boys - Disco 3
replaygain: executing bs1770gain --replaygain -p f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\01. Time On My Hands.m4a f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\02. Positive Role Model.m4a f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\03. Try It (I'm In Love With A Married Man).m4a f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\04. London (Thee Radikal Blaklite Edit).m4a f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\05. Somebody Else's Business.m4a f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\06. Here (PSB New Extended Mix).m4a f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\07. If Looks Could Kill.m4a f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\08. Sexy Northerner (Superchumbo Mix).m4a f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\09. Home & Dry (Blank & Jones Remix).m4a f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\10. London (Genuine Piano Mix).m4a
replaygain: analysis finished: analyzing ...
[1/10] "01. Time On My Hands.m4a":
integrated: -8.98 LUFS / -9.02 LU
sample peak: 0.41 SPFS / 1.048072
[2/10] "02. Positive Role Model.m4a":
integrated: -7.68 LUFS / -10.32 LU
sample peak: 0.23 SPFS / 1.026476
[3/10] "03. Try It (I'm In Love With A Married Man).m4a":
integrated: -7.35 LUFS / -10.65 LU
sample peak: 1.01 SPFS / 1.123495
[4/10] "04. London (Thee Radikal Blaklite Edit).m4a":
integrated: -9.04 LUFS / -8.96 LU
sample peak: 0.75 SPFS / 1.090104
[5/10] "05. Somebody Else's Business.m4a":
integrated: -8.59 LUFS / -9.41 LU
sample peak: 0.21 SPFS / 1.024867
[6/10] "06. Here (PSB New Extended Mix).m4a":
integrated: -8.54 LUFS / -9.46 LU
sample peak: 0.31 SPFS / 1.035906
[7/10] "07. If Looks Could Kill.m4a":
integrated: -8.98 LUFS / -9.02 LU
sample peak: 0.39 SPFS / 1.045477
[8/10] "08. Sexy Northerner (Superchumbo Mix).m4a":
integrated: -9.11 LUFS / -8.89 LU
sample peak: 0.47 SPFS / 1.055542
[9/10] "09. Home & Dry (Blank & Jones Remix).m4a":
integrated: -8.84 LUFS / -9.16 LU
sample peak: -0.08 SPFS / 0.991154
[10/10] "10. London (Genuine Piano Mix).m4a":
integrated: -11.68 LUFS / -6.32 LU
sample peak: -0.37 SPFS / 0.958079
[ALBUM]:
integrated: -8.81 LUFS / -9.19 LU
sample peak: 1.01 SPFS / 1.123495
done.
replaygain: 10 items, 11 results
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
replaygain: applied album gain -9.19, peak 1.123495
Sending event: database_change
replaygain: applied track gain -9.02, peak 1.048072
Sending event: database_change
replaygain: applied track gain -10.32, peak 1.026476
Sending event: database_change
replaygain: applied track gain -10.65, peak 1.123495
Sending event: database_change
replaygain: applied track gain -8.96, peak 1.090104
Sending event: database_change
replaygain: applied track gain -9.41, peak 1.024867
Sending event: database_change
replaygain: applied track gain -9.46, peak 1.035906
Sending event: database_change
replaygain: applied track gain -9.02, peak 1.045477
Sending event: database_change
replaygain: applied track gain -8.89, peak 1.055542
Sending event: database_change
replaygain: applied track gain -9.16, peak 0.991154
Sending event: database_change
replaygain: applied track gain -6.32, peak 0.958079
lastgenre: added last.fm album genre (album): Synthpop
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
fetchart: trying source filesystem for album Pet Shop Boys - Disco 3
fetchart: using well-named art file Front.jpg
fetchart: using local image f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\Front.jpg
lyrics: got lyrics from backend: LyricsWiki
lyrics: fetched lyrics: Pet Shop Boys - Disco 3 - Sexy Northerner (Superchumbo mix)
Sending event: database_change
lyrics: got lyrics from backend: LyricsWiki
lyrics: fetched lyrics: Pet Shop Boys - Disco 3 - Home and Dry (Blank & Jones remix)
Sending event: database_change
lyrics: got lyrics from backend: LyricsWiki
lyrics: fetched lyrics: Pet Shop Boys - Disco 3 - Somebody Else's Business
Sending event: database_change
lyrics: got lyrics from backend: LyricsWiki
lyrics: fetched lyrics: Pet Shop Boys - Disco 3 - Time on My Hands
Sending event: database_change
lyrics: got lyrics from backend: LyricsWiki
lyrics: fetched lyrics: Pet Shop Boys - Disco 3 - London (Genuine Piano mix)
Sending event: database_change
lyrics: got lyrics from backend: LyricsWiki
lyrics: fetched lyrics: Pet Shop Boys - Disco 3 - Positive Role Model
Sending event: database_change
lyrics: got lyrics from backend: LyricsWiki
lyrics: fetched lyrics: Pet Shop Boys - Disco 3 - Here (PSB new extended mix)
Sending event: database_change
lyrics: got lyrics from backend: LyricsWiki
lyrics: fetched lyrics: Pet Shop Boys - Disco 3 - Try It (I'm in Love With a Married Man)
Sending event: database_change
lyrics: got lyrics from backend: LyricsWiki
lyrics: fetched lyrics: Pet Shop Boys - Disco 3 - If Looks Could Kill
Sending event: database_change
lyrics: got lyrics from backend: LyricsWiki
lyrics: fetched lyrics: Pet Shop Boys - Disco 3 - London (Thee Radikal Blaklite edit)
Sending event: database_change
removing 10 old duplicated items
Sending event: database_change
Sending event: item_removed
lib: F:\Music\, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: False
Sending event: database_change
Sending event: item_removed
lib: F:\Music\, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: False
Sending event: database_change
Sending event: item_removed
lib: F:\Music\, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: False
Sending event: database_change
Sending event: item_removed
lib: F:\Music\, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: False
Sending event: database_change
Sending event: item_removed
lib: F:\Music\, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: False
Sending event: database_change
Sending event: item_removed
lib: F:\Music\, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: False
Sending event: database_change
Sending event: item_removed
lib: F:\Music\, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: False
Sending event: database_change
Sending event: item_removed
lib: F:\Music\, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: False
Sending event: database_change
Sending event: item_removed
lib: F:\Music\, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: False
Sending event: database_change
Sending event: database_change
Sending event: item_removed
lib: F:\Music\, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: False
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.13 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 08 - Pet Shop Boys - Sexy Northerner (Superchumbo mix).1.m4a' imported from 'f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\08. Sexy Northerner (Superchumbo Mix).m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 08 - Pet Shop Boys - Sexy Northerner (Superchumbo mix).1.m4a', selected item.added=1468032478.74
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.14 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 09 - Pet Shop Boys - Home and Dry (Blank & Jones remix).1.m4a' imported from 'f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\09. Home & Dry (Blank & Jones Remix).m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 09 - Pet Shop Boys - Home and Dry (Blank & Jones remix).1.m4a', selected item.added=1468032478.74
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.11 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 05 - Pet Shop Boys - Somebody Else's Business.1.m4a' imported from 'f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\05. Somebody Else's Business.m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 05 - Pet Shop Boys - Somebody Else's Business.1.m4a', selected item.added=1468032478.75
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.07 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 01 - Pet Shop Boys - Time on My Hands.1.m4a' imported from 'f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\01. Time On My Hands.m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 01 - Pet Shop Boys - Time on My Hands.1.m4a', selected item.added=1468032478.77
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.15 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 10 - Pet Shop Boys - London (Genuine Piano mix).1.m4a' imported from 'f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\10. London (Genuine Piano Mix).m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 10 - Pet Shop Boys - London (Genuine Piano mix).1.m4a', selected item.added=1468032478.78
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.08 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 02 - Pet Shop Boys - Positive Role Model.1.m4a' imported from 'f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\02. Positive Role Model.m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 02 - Pet Shop Boys - Positive Role Model.1.m4a', selected item.added=1468032478.78
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.11 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 06 - Pet Shop Boys - Here (PSB new extended mix).1.m4a' imported from 'f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\06. Here (PSB New Extended Mix).m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 06 - Pet Shop Boys - Here (PSB new extended mix).1.m4a', selected item.added=1468032478.79
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.09 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 03 - Pet Shop Boys - Try It (I'm in Love With a Married Man).1.m4a' imported from 'f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\03. Try It (I'm In Love With A Married Man).m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 03 - Pet Shop Boys - Try It (I'm in Love With a Married Man).1.m4a', selected item.added=1468032478.79
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.12 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 07 - Pet Shop Boys - If Looks Could Kill.1.m4a' imported from 'f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\07. If Looks Could Kill.m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 07 - Pet Shop Boys - If Looks Could Kill.1.m4a', selected item.added=1468032478.81
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.1 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 04 - Pet Shop Boys - London (Thee Radikal Blaklite edit).1.m4a' imported from 'f:\New_Music\import\Pet Shop Boys\Remix Albums\2002 Disco 3\04. London (Thee Radikal Blaklite Edit).m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 04 - Pet Shop Boys - London (Thee Radikal Blaklite edit).1.m4a', selected item.added=1468032478.81
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: import_task_files
Sending event: art_set
embedart: Embedding album art into Pet Shop Boys - Disco 3
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 01 - Pet Shop Boys - Time on My Hands.1.m4a', selected item.added=1468032478.77
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 02 - Pet Shop Boys - Positive Role Model.1.m4a', selected item.added=1468032478.78
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 03 - Pet Shop Boys - Try It (I'm in Love With a Married Man).1.m4a', selected item.added=1468032478.79
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 04 - Pet Shop Boys - London (Thee Radikal Blaklite edit).1.m4a', selected item.added=1468032478.81
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 05 - Pet Shop Boys - Somebody Else's Business.1.m4a', selected item.added=1468032478.75
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 06 - Pet Shop Boys - Here (PSB new extended mix).1.m4a', selected item.added=1468032478.79
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 07 - Pet Shop Boys - If Looks Could Kill.1.m4a', selected item.added=1468032478.81
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 08 - Pet Shop Boys - Sexy Northerner (Superchumbo mix).1.m4a', selected item.added=1468032478.74
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 09 - Pet Shop Boys - Home and Dry (Blank & Jones remix).1.m4a', selected item.added=1468032478.74
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 10 - Pet Shop Boys - London (Genuine Piano mix).1.m4a', selected item.added=1468032478.78
Sending event: database_change
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 08 - Pet Shop Boys - Sexy Northerner (Superchumbo mix).1.m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 08 - Pet Shop Boys - Sexy Northerner (Superchumbo mix).1.m4a', selected item.added=1468032478.74
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 09 - Pet Shop Boys - Home and Dry (Blank & Jones remix).1.m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 09 - Pet Shop Boys - Home and Dry (Blank & Jones remix).1.m4a', selected item.added=1468032478.74
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 05 - Pet Shop Boys - Somebody Else's Business.1.m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 05 - Pet Shop Boys - Somebody Else's Business.1.m4a', selected item.added=1468032478.75
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 01 - Pet Shop Boys - Time on My Hands.1.m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 01 - Pet Shop Boys - Time on My Hands.1.m4a', selected item.added=1468032478.77
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 10 - Pet Shop Boys - London (Genuine Piano mix).1.m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 10 - Pet Shop Boys - London (Genuine Piano mix).1.m4a', selected item.added=1468032478.78
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 02 - Pet Shop Boys - Positive Role Model.1.m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 02 - Pet Shop Boys - Positive Role Model.1.m4a', selected item.added=1468032478.78
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 06 - Pet Shop Boys - Here (PSB new extended mix).1.m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 06 - Pet Shop Boys - Here (PSB new extended mix).1.m4a', selected item.added=1468032478.79
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 03 - Pet Shop Boys - Try It (I'm in Love With a Married Man).1.m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 03 - Pet Shop Boys - Try It (I'm in Love With a Married Man).1.m4a', selected item.added=1468032478.79
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 07 - Pet Shop Boys - If Looks Could Kill.1.m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 07 - Pet Shop Boys - If Looks Could Kill.1.m4a', selected item.added=1468032478.81
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 04 - Pet Shop Boys - London (Thee Radikal Blaklite edit).1.m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 04 - Pet Shop Boys - London (Thee Radikal Blaklite edit).1.m4a', selected item.added=1468032478.81
scrub: restoring art
Sending event: album_imported
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
importadded: Import of album 'Disco 3', selected album.added=1467953655.07 from item file mtimes.
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
lib: F:\Music\, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: False
Looks like it's due to the trailing slash!
The library is found at F:\Music\
and the ancestry contains F:\Music
, causing the check to return False
. Maybe we need to call os.path.normpath(path)
on our paths before comparing them?
The alternative is to not compare the path strings themselves but instead use something like os.path.samefile(path1, path2)
to check path equality (admittedly will be slightly slower, as we now need disk access to do it).
Can test anything you need on windows, still working out how to set up virtual environments properly but can handle code editing/debugging.
I dropped the trailing slash in my config and it then works, deleting files, except for album art.
C:\>beet -vv imp "\\?\f:\New_Music\import\Pet Shop Boys
user configuration: C:\Users\Andre\AppData\Roaming\beets\config.yaml
data directory: C:\Users\Andre\AppData\Roaming\beets
plugin paths: C:\Users\Andre\AppData\Roaming\beets\beetsplug
Sending event: pluginload
library database: C:\Users\Andre\AppData\Roaming\beets\library.db
library directory: F:\Music
Sending event: library_opened
Sending event: import_begin
Import of the directory:
f:\New_Music\import\Pet Shop Boys
was interrupted. Resume (Y/n)? n
Sending event: import_task_created
Sending event: import_task_start
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\(2003) Disco 3\\Disco 3 - 01 - Pet Shop Boys - Time on My Hands.1.m4a'
chroma: matched recordings [u'371df98a-fdf1-4d31-bf1a-d759a64726ab', u'c2b92c5e-bc27-4b9e-8708-750d25f8f931', u'dfa8d0df-05af-4174-8193-9008903b08e2'] on releases [u'b45efce4-1b97-42f0-a22b-97f799d81b47', u'c30b5c07-015b-46a0-bb9f-f5e8821b5120', u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7']
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\(2003) Disco 3\\Disco 3 - 02 - Pet Shop Boys - Positive Role Model.1.m4a'
chroma: matched recordings [u'46495797-88c3-4592-92e5-61c987ce9df1', u'6d1f3465-dd0e-4d23-86ed-89037d777a3f', u'7b32a4db-35b6-48cb-938f-b089f3101a63', u'd339f29d-2bc6-4691-8fb0-0736e708901c'] on releases [u'9c3f9756-150b-4464-9eb2-7086eed76a58', u'b45efce4-1b97-42f0-a22b-97f799d81b47', u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7', u'804078fd-3160-44f1-a674-549334038c95']
chroma: chroma: fingerprinted "f:\\New_Music\\import\\Pet Shop Boys\\(2003) Disco 3\\Disco 3 - 03 - Pet Shop Boys - Try It (I'm in Love With a Married Man).1.m4a"
chroma: matched recordings [u'929cadf4-e381-4cde-b0fa-19e1203c126b', u'd1cf01ab-3b3c-4813-b8e2-8c75472ef55e'] on releases [u'b45efce4-1b97-42f0-a22b-97f799d81b47', u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7']
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\(2003) Disco 3\\Disco 3 - 04 - Pet Shop Boys - London (Thee Radikal Blaklite edit).1.m4a'
chroma: matched recordings [u'5906aa3f-2db3-49ce-bb9f-5d917341c018'] on releases [u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7']
chroma: chroma: fingerprinted "f:\\New_Music\\import\\Pet Shop Boys\\(2003) Disco 3\\Disco 3 - 05 - Pet Shop Boys - Somebody Else's Business.1.m4a"
chroma: matched recordings [u'5e5ef250-40ec-44df-95b2-a54aa7788f50'] on releases [u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7']
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\(2003) Disco 3\\Disco 3 - 06 - Pet Shop Boys - Here (PSB new extended mix).1.m4a'
chroma: matched recordings [u'4ddc32cb-1380-4dd2-a901-846d81cece7e', u'614e7ce2-aba1-4ec2-a6b8-12e9666bc256', u'94a58722-66dd-4898-8db4-b12bacca3c9c'] on releases [u'c30b5c07-015b-46a0-bb9f-f5e8821b5120', u'b45efce4-1b97-42f0-a22b-97f799d81b47', u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7']
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\(2003) Disco 3\\Disco 3 - 07 - Pet Shop Boys - If Looks Could Kill.1.m4a'
chroma: matched recordings [u'60f6cc6c-c7e5-4af7-b456-30212a6bd338', u'de0ac9b2-ebae-44d5-9640-15d142756473'] on releases [u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7', u'b45efce4-1b97-42f0-a22b-97f799d81b47']
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\(2003) Disco 3\\Disco 3 - 08 - Pet Shop Boys - Sexy Northerner (Superchumbo mix).1.m4a'
chroma: matched recordings [u'083812a9-2280-40de-9d14-a835e7d579fd', u'9c40b101-bd60-4fb5-831f-8223c067b908'] on releases [u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7', u'b45efce4-1b97-42f0-a22b-97f799d81b47']
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\(2003) Disco 3\\Disco 3 - 09 - Pet Shop Boys - Home and Dry (Blank & Jones remix).1.m4a'
chroma: matched recordings [u'0d4071b3-15ca-4e7c-a618-62739457f725', u'715d8b06-c068-47c0-b180-464099cfd5df', u'bfbbb9c2-73ef-4f9c-9d7e-52081be0738c', u'c278d0c8-68ae-48be-8545-5bb47e34b1a8', u'd9553dda-7ac1-4034-9e79-6726927666c5'] on releases [u'b45efce4-1b97-42f0-a22b-97f799d81b47', u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7', u'c30b5c07-015b-46a0-bb9f-f5e8821b5120', u'23efe13e-dbac-342c-8da7-69b66a9b4c6d', u'ec07eab5-e30b-4163-8d88-aae44b873518']
chroma: chroma: fingerprinted 'f:\\New_Music\\import\\Pet Shop Boys\\(2003) Disco 3\\Disco 3 - 10 - Pet Shop Boys - London (Genuine Piano mix).1.m4a'
chroma: matched recordings [u'ba917e9b-b900-4e79-8773-4ca2b91a7e54', u'fdba2308-62ad-4d16-9a9a-b74e5ff2073b'] on releases [u'df743452-3dd3-3f19-bce8-1fdff71bd004', u'309912b6-a937-3610-961a-caf43223ef42', u'41ee09d6-9468-46aa-b3fe-7725381166b7', u'9c3f9756-150b-4464-9eb2-7086eed76a58']
Looking up: f:\New_Music\import\Pet Shop Boys\(2003) Disco 3
Tagging Pet Shop Boys - Disco 3
Searching for discovered album ID: 309912b6-a937-3610-961a-caf43223ef42
Sending event: albuminfo_received
Candidate: Pet Shop Boys - Disco 3
Success. Distance: 0.00
Album ID match recommendation is Recommendation.strong
ID match.
f:\New_Music\import\Pet Shop Boys\(2003) Disco 3 (10 items)
Sending event: before_choose_candidate
Tagging:
Pet Shop Boys - Disco 3
URL:
http://musicbrainz.org/release/309912b6-a937-3610-961a-caf43223ef42
(Similarity: 100.0%) (2003, JP)
Sending event: import_task_choice
found duplicates: [5512]
default action for duplicates: a
This album is already in the library!
Old: 10 items, AAC, 332kbps, 51:50, 124.7 MiB
New: 10 items, AAC, 332kbps, 51:50, 124.7 MiB
[S]kip new, Keep both, Remove old? r
Sending event: import_task_apply
0 of 10 items replaced
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
fetchart: trying source filesystem for album Pet Shop Boys - Disco 3
fetchart: using well-named art file cover.jpg
fetchart: using local image f:\New_Music\import\Pet Shop Boys\(2003) Disco 3\cover.jpg
lyrics: lyrics already present: Pet Shop Boys - Disco 3 - Time on My Hands
lyrics: lyrics already present: Pet Shop Boys - Disco 3 - Positive Role Model
lyrics: lyrics already present: Pet Shop Boys - Disco 3 - Try It (I'm in Love With a Married Man)
lyrics: lyrics already present: Pet Shop Boys - Disco 3 - Sexy Northerner (Superchumbo mix)
lyrics: lyrics already present: Pet Shop Boys - Disco 3 - Somebody Else's Business
lyrics: lyrics already present: Pet Shop Boys - Disco 3 - Home and Dry (Blank & Jones remix)
lyrics: lyrics already present: Pet Shop Boys - Disco 3 - London (Genuine Piano mix)
lyrics: lyrics already present: Pet Shop Boys - Disco 3 - London (Thee Radikal Blaklite edit)
lyrics: lyrics already present: Pet Shop Boys - Disco 3 - Here (PSB new extended mix)
lyrics: lyrics already present: Pet Shop Boys - Disco 3 - If Looks Could Kill
lastgenre: added last.fm album genre (album): Synthpop
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
replaygain: Skipping album Pet Shop Boys - Disco 3
removing 10 old duplicated items
Sending event: database_change
Sending event: item_removed
lib: F:\Music, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: True
deleting duplicate F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 01 - Pet Shop Boys - Time on My Hands.1.m4a
Sending event: database_change
Sending event: item_removed
lib: F:\Music, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: True
deleting duplicate F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 02 - Pet Shop Boys - Positive Role Model.1.m4a
Sending event: database_change
Sending event: item_removed
lib: F:\Music, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: True
deleting duplicate F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 03 - Pet Shop Boys - Try It (I'm in Love With a Married Man).1.m4a
Sending event: database_change
Sending event: item_removed
lib: F:\Music, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: True
deleting duplicate F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 04 - Pet Shop Boys - London (Thee Radikal Blaklite edit).1.m4a
Sending event: database_change
Sending event: item_removed
lib: F:\Music, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: True
deleting duplicate F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 05 - Pet Shop Boys - Somebody Else's Business.1.m4a
Sending event: database_change
Sending event: item_removed
lib: F:\Music, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: True
deleting duplicate F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 06 - Pet Shop Boys - Here (PSB new extended mix).1.m4a
Sending event: database_change
Sending event: item_removed
lib: F:\Music, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: True
deleting duplicate F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 07 - Pet Shop Boys - If Looks Could Kill.1.m4a
Sending event: database_change
Sending event: item_removed
lib: F:\Music, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: True
deleting duplicate F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 08 - Pet Shop Boys - Sexy Northerner (Superchumbo mix).1.m4a
Sending event: database_change
Sending event: item_removed
lib: F:\Music, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: True
deleting duplicate F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 09 - Pet Shop Boys - Home and Dry (Blank & Jones remix).1.m4a
Sending event: database_change
Sending event: database_change
Sending event: item_removed
lib: F:\Music, ancestry: ['F:\\', 'F:\\Music', 'F:\\Music\\P', 'F:\\Music\\P\\Pet Shop Boys', 'F:\\Music\\P\\Pet Shop Boys\\(2003) Disco 3'], contained: True
deleting duplicate F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 10 - Pet Shop Boys - London (Genuine Piano mix).1.m4a
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.07 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 01 - Pet Shop Boys - Time on My Hands.m4a' imported from 'f:\New_Music\import\Pet Shop Boys\(2003) Disco 3\Disco 3 - 01 - Pet Shop Boys - Time on My Hands.1.m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 01 - Pet Shop Boys - Time on My Hands.m4a', selected item.added=1468034653.61
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.08 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 02 - Pet Shop Boys - Positive Role Model.m4a' imported from 'f:\New_Music\import\Pet Shop Boys\(2003) Disco 3\Disco 3 - 02 - Pet Shop Boys - Positive Role Model.1.m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 02 - Pet Shop Boys - Positive Role Model.m4a', selected item.added=1468034653.61
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.09 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 03 - Pet Shop Boys - Try It (I'm in Love With a Married Man).m4a' imported from 'f:\New_Music\import\Pet Shop Boys\(2003) Disco 3\Disco 3 - 03 - Pet Shop Boys - Try It (I'm in Love With a Married Man).1.m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 03 - Pet Shop Boys - Try It (I'm in Love With a Married Man).m4a', selected item.added=1468034653.61
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.13 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 08 - Pet Shop Boys - Sexy Northerner (Superchumbo mix).m4a' imported from 'f:\New_Music\import\Pet Shop Boys\(2003) Disco 3\Disco 3 - 08 - Pet Shop Boys - Sexy Northerner (Superchumbo mix).1.m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 08 - Pet Shop Boys - Sexy Northerner (Superchumbo mix).m4a', selected item.added=1468034653.62
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.11 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 05 - Pet Shop Boys - Somebody Else's Business.m4a' imported from 'f:\New_Music\import\Pet Shop Boys\(2003) Disco 3\Disco 3 - 05 - Pet Shop Boys - Somebody Else's Business.1.m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 05 - Pet Shop Boys - Somebody Else's Business.m4a', selected item.added=1468034653.62
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.14 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 09 - Pet Shop Boys - Home and Dry (Blank & Jones remix).m4a' imported from 'f:\New_Music\import\Pet Shop Boys\(2003) Disco 3\Disco 3 - 09 - Pet Shop Boys - Home and Dry (Blank & Jones remix).1.m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 09 - Pet Shop Boys - Home and Dry (Blank & Jones remix).m4a', selected item.added=1468034653.62
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.15 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 10 - Pet Shop Boys - London (Genuine Piano mix).m4a' imported from 'f:\New_Music\import\Pet Shop Boys\(2003) Disco 3\Disco 3 - 10 - Pet Shop Boys - London (Genuine Piano mix).1.m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 10 - Pet Shop Boys - London (Genuine Piano mix).m4a', selected item.added=1468034653.62
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.1 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 04 - Pet Shop Boys - London (Thee Radikal Blaklite edit).m4a' imported from 'f:\New_Music\import\Pet Shop Boys\(2003) Disco 3\Disco 3 - 04 - Pet Shop Boys - London (Thee Radikal Blaklite edit).1.m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 04 - Pet Shop Boys - London (Thee Radikal Blaklite edit).m4a', selected item.added=1468034653.62
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.11 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 06 - Pet Shop Boys - Here (PSB new extended mix).m4a' imported from 'f:\New_Music\import\Pet Shop Boys\(2003) Disco 3\Disco 3 - 06 - Pet Shop Boys - Here (PSB new extended mix).1.m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 06 - Pet Shop Boys - Here (PSB new extended mix).m4a', selected item.added=1468034653.62
Sending event: before_item_moved
importadded: Recorded mtime 1467953655.12 for item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 07 - Pet Shop Boys - If Looks Could Kill.m4a' imported from 'f:\New_Music\import\Pet Shop Boys\(2003) Disco 3\Disco 3 - 07 - Pet Shop Boys - If Looks Could Kill.1.m4a'
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 07 - Pet Shop Boys - If Looks Could Kill.m4a', selected item.added=1468034653.64
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: import_task_files
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 01 - Pet Shop Boys - Time on My Hands.m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 01 - Pet Shop Boys - Time on My Hands.m4a', selected item.added=1468034653.61
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 02 - Pet Shop Boys - Positive Role Model.m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 02 - Pet Shop Boys - Positive Role Model.m4a', selected item.added=1468034653.61
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 03 - Pet Shop Boys - Try It (I'm in Love With a Married Man).m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 03 - Pet Shop Boys - Try It (I'm in Love With a Married Man).m4a', selected item.added=1468034653.61
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 08 - Pet Shop Boys - Sexy Northerner (Superchumbo mix).m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 08 - Pet Shop Boys - Sexy Northerner (Superchumbo mix).m4a', selected item.added=1468034653.62
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 05 - Pet Shop Boys - Somebody Else's Business.m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 05 - Pet Shop Boys - Somebody Else's Business.m4a', selected item.added=1468034653.62
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 09 - Pet Shop Boys - Home and Dry (Blank & Jones remix).m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 09 - Pet Shop Boys - Home and Dry (Blank & Jones remix).m4a', selected item.added=1468034653.62
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 10 - Pet Shop Boys - London (Genuine Piano mix).m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 10 - Pet Shop Boys - London (Genuine Piano mix).m4a', selected item.added=1468034653.62
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 04 - Pet Shop Boys - London (Thee Radikal Blaklite edit).m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 04 - Pet Shop Boys - London (Thee Radikal Blaklite edit).m4a', selected item.added=1468034653.62
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 06 - Pet Shop Boys - Here (PSB new extended mix).m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 06 - Pet Shop Boys - Here (PSB new extended mix).m4a', selected item.added=1468034653.62
scrub: restoring art
scrub: auto-scrubbing F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 07 - Pet Shop Boys - If Looks Could Kill.m4a
scrub: writing new tags after scrub
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 07 - Pet Shop Boys - If Looks Could Kill.m4a', selected item.added=1468034653.64
scrub: restoring art
Sending event: art_set
embedart: Embedding album art into Pet Shop Boys - Disco 3
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.1.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 01 - Pet Shop Boys - Time on My Hands.m4a', selected item.added=1468034653.61
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.1.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 02 - Pet Shop Boys - Positive Role Model.m4a', selected item.added=1468034653.61
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.1.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 03 - Pet Shop Boys - Try It (I'm in Love With a Married Man).m4a', selected item.added=1468034653.61
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.1.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 04 - Pet Shop Boys - London (Thee Radikal Blaklite edit).m4a', selected item.added=1468034653.62
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.1.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 05 - Pet Shop Boys - Somebody Else's Business.m4a', selected item.added=1468034653.62
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.1.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 06 - Pet Shop Boys - Here (PSB new extended mix).m4a', selected item.added=1468034653.62
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.1.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 07 - Pet Shop Boys - If Looks Could Kill.m4a', selected item.added=1468034653.64
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.1.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 08 - Pet Shop Boys - Sexy Northerner (Superchumbo mix).m4a', selected item.added=1468034653.62
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.1.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 09 - Pet Shop Boys - Home and Dry (Blank & Jones remix).m4a', selected item.added=1468034653.62
embedart: embedding F:\Music\P\Pet Shop Boys\(2003) Disco 3\cover.1.jpg
Sending event: write
Sending event: after_write
importadded: Write of item 'F:\Music\P\Pet Shop Boys\(2003) Disco 3\Disco 3 - 10 - Pet Shop Boys - London (Genuine Piano mix).m4a', selected item.added=1468034653.62
Sending event: database_change
Sending event: album_imported
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
importadded: Import of album 'Disco 3', selected album.added=1467953655.07 from item file mtimes.
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Thanks! I agree with your assessment completely, @jackwilsdon. A normpath
call seems like it's in order.
There are a few places in the importer where we check some_directory in util.ancestry(lib.directory)
. Maybe we should make a little utility function that does that check correctly, including normpath
.
Problem
When importing albums that result in duplicates and choosing the Remove old option, it does not physically delete the files from the disk.
I have verified in windows security I have full read/write/delete access at both the directory and file level.
Running this command in verbose (
-vv
) mode:Led to this problem:
Here's a link to the music files that trigger the bug (if relevant):
Setup
My configuration (output of
beet config
) is: