beets icon indicating copy to clipboard operation
beets copied to clipboard

Spotify breaks when artists count is too long in request

Open dmountainwolf opened this issue 10 months ago • 10 comments

Problem

Whenever any track has a lot of artists, any import breaks with Spotify API error as in below output. Only workaround I can use at the moment is to disable the spotify plugin, do the import (which then works) and then re-enable it for further imports.

Running this command in verbose (-vv) mode:

❯ beet -vv import .
user configuration: /Users/dmountainwolf/.config/beets/config.yaml
data directory: /Users/dmountainwolf/.config/beets
plugin paths:
lyrics: Disabling google source: no API key configured.
Sending event: pluginload
library database: /Users/dmountainwolf/.config/beets/library.db
library directory: /Volumes/ExternalDrUsed/beetmusic
Sending event: library_opened
Sending event: import_begin
ignoring b'.DS_Store' due to ignore rule b'.*'
Sending event: import_task_created
Sending event: import_task_start
chroma: chroma: fingerprinted b'/Volumes/2tbhfs/tmp/MusicDownload/2/Destination Calabria (feat. Crystal Waters) (Drunkenmunky 2007 Remake) [7RJz9efP31U].mp3'
chroma: matched recordings ['88498333-06cf-4b21-afbc-fc446e6e9652', 'c4f62e6d-9a77-4596-a62a-b56089c7ebf8'] on releases ['cca4e9ed-1e95-4037-b2d9-3346f606162a', '3881e668-8dd4-4ffb-9f73-de1164479b4d', '3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315', '52f809ca-70e3-4200-ae7e-0beac116f2ef', 'ed9429cd-55c5-4afd-9e10-e2761ca03e33', '39de8ced-6958-4acf-ae79-cfaddfcae419', '646dbf8f-ac16-4c89-a083-57c94a7cf159', '3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315', '52f809ca-70e3-4200-ae7e-0beac116f2ef']
chroma: chroma: fingerprinted b'/Volumes/2tbhfs/tmp/MusicDownload/2/Destination Calabria (feat. Crystal Waters) (Extended Mix) [IIj4RcvUZWQ].mp3'
chroma: matched recordings ['68498fcd-6b41-49ae-b1e6-8bd31980ca23', 'c33693ad-a0b7-49f1-8e56-df1e24c30c70', 'f3be1146-651f-4d63-b578-789549c3780c'] on releases ['eae490a2-4eda-4b39-be50-f5621db0b226', '3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315', '7a2c7700-28b4-4d40-a36a-c2fe8d2048e2', 'ed9429cd-55c5-4afd-9e10-e2761ca03e33', '85739936-fe42-4f01-83ce-b27c01b5301a']
chroma: chroma: fingerprinted b'/Volumes/2tbhfs/tmp/MusicDownload/2/Destination Calabria (feat. Crystal Waters) (Gaudino & Rooney Remix) [6OF8e28O8EU].mp3'
chroma: matched recordings ['a4d83b73-1d04-45cc-9254-38cfc0fd5c07'] on releases ['3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315']
chroma: chroma: fingerprinted b'/Volumes/2tbhfs/tmp/MusicDownload/2/Destination Calabria (feat. Crystal Waters) (King Unique Remix) [4IFArDS2yIU].mp3'
chroma: matched recordings ['88498333-06cf-4b21-afbc-fc446e6e9652', 'f3be1146-651f-4d63-b578-789549c3780c'] on releases ['cca4e9ed-1e95-4037-b2d9-3346f606162a', '3881e668-8dd4-4ffb-9f73-de1164479b4d', '3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315', '52f809ca-70e3-4200-ae7e-0beac116f2ef', '7a2c7700-28b4-4d40-a36a-c2fe8d2048e2', 'ed9429cd-55c5-4afd-9e10-e2761ca03e33', '85739936-fe42-4f01-83ce-b27c01b5301a']
chroma: chroma: fingerprinted b'/Volumes/2tbhfs/tmp/MusicDownload/2/Destination Calabria (feat. Crystal Waters) (Laidback Luke Remix) [uRpyjhxwaO0].mp3'
chroma: matched recordings ['747b808f-3e6d-454a-8dfe-ddb5298393c4'] on releases ['ed9429cd-55c5-4afd-9e10-e2761ca03e33', '5ad7cd4a-67e2-4240-bd74-12a79a501ec8', 'cca4e9ed-1e95-4037-b2d9-3346f606162a', '3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315', '3881e668-8dd4-4ffb-9f73-de1164479b4d', '5df570b2-d67d-4ed2-8bfa-43163e308688', '52f809ca-70e3-4200-ae7e-0beac116f2ef']
chroma: chroma: fingerprinted b'/Volumes/2tbhfs/tmp/MusicDownload/2/Destination Calabria (feat. Crystal Waters) (Nari & Milani Club Mix) [88DCLIusp78].mp3'
chroma: matched recordings ['0635e517-8c76-4f53-9387-53750d7bb0b8', '68a49314-faed-4df8-8892-8dc697c085ca', '88498333-06cf-4b21-afbc-fc446e6e9652', 'c4f62e6d-9a77-4596-a62a-b56089c7ebf8'] on releases ['cca4e9ed-1e95-4037-b2d9-3346f606162a', '3881e668-8dd4-4ffb-9f73-de1164479b4d', '52f809ca-70e3-4200-ae7e-0beac116f2ef', '3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315', 'cca4e9ed-1e95-4037-b2d9-3346f606162a', '3881e668-8dd4-4ffb-9f73-de1164479b4d', '3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315', '52f809ca-70e3-4200-ae7e-0beac116f2ef', 'ed9429cd-55c5-4afd-9e10-e2761ca03e33', '39de8ced-6958-4acf-ae79-cfaddfcae419', '646dbf8f-ac16-4c89-a083-57c94a7cf159', '3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315', '52f809ca-70e3-4200-ae7e-0beac116f2ef']
chroma: chroma: fingerprinted b'/Volumes/2tbhfs/tmp/MusicDownload/2/Destination Calabria (feat. Crystal Waters) (Paul Emanuel Remix) [NvUuGB9wKSQ].mp3'
chroma: matched recordings ['748e1713-db82-4724-84fb-4357a0dbb7f4'] on releases ['ed9429cd-55c5-4afd-9e10-e2761ca03e33', 'cca4e9ed-1e95-4037-b2d9-3346f606162a', '3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315', '3881e668-8dd4-4ffb-9f73-de1164479b4d', '52f809ca-70e3-4200-ae7e-0beac116f2ef']
chroma: chroma: fingerprinted b'/Volumes/2tbhfs/tmp/MusicDownload/2/Destination Calabria (feat. Crystal Waters) (Radio Edit) [kE0unyetlBw].mp3'
chroma: matched recordings ['1bd0bdd1-62d6-4fed-a234-72dd5d245272', '223dc878-301b-4a4e-9d29-9116fe78536e', '23eb22a4-3d25-44b2-bec0-7410f5522aa6', '40d93831-7083-4edd-ab82-3683d114c25a', '518060d9-1a9e-4979-920b-c90b5a2e0128', '72adfc77-cfa9-4df5-91d6-965acd3a4650', '7d70d66f-af7a-4ecd-a342-a6d006ac919b', 'b0dcfecc-5fe2-453d-8e90-993a81aa5e0a', 'b25aa9a5-e83a-4c01-a7d0-c1f847b41dfa', 'e639e6d6-77a8-42a7-b8af-ded82ce3ef86', 'ebeefd5b-601f-4b1a-a4ad-374c946cd03a'] on releases ['e4d7b5cd-f3c7-40a8-a6a8-084324ec2676', '6640cded-2754-412a-96b0-27d74dff2122', '46802994-b19c-4ef2-bc2a-e8674b5e65d0', 'cd459e5d-f086-4519-aa7e-f8b1810bec22', '91946180-a085-437d-9960-6e376bcebea8', 'fd2367f4-4be0-42e6-b1e2-dd4cb9b19f7c', '3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315', '9f06cafd-6473-49af-8b12-e2c44e746e20', '858dd595-486e-4f07-bf20-6378d9362ef9', 'b6ba5648-77ee-43c4-89b8-2fb4a6de6b92', '2177e287-c38a-4b55-ad6f-41544c64b359', '1e431568-b163-4802-98ce-b6aef8878964', '2b4806b2-7116-4b62-b635-81a310510887', 'fdbf1b42-0e05-4f17-9bb5-1df39a04f3cd', '421ae640-c42a-420b-886a-260dc8123964', 'fcd13107-651b-4a54-a773-a522bb8e4b3e', '16cc9fbf-c9cf-45d5-bcd8-26da25e5e9e3']
chroma: chroma: fingerprinted b'/Volumes/2tbhfs/tmp/MusicDownload/2/Destination Calabria (feat. Crystal Waters) (Static Shokx Remix) [B5RN09JbYWU].mp3'
chroma: matched recordings ['14955b60-4d4e-4004-9b6d-0e5a1b869e43', '71bbf5a5-d7c9-4c50-b35b-521e2516fc79'] on releases ['3881e668-8dd4-4ffb-9f73-de1164479b4d', '3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315', '52f809ca-70e3-4200-ae7e-0beac116f2ef', 'e0cc9d23-a089-4737-9127-7535a5efa6d3']
chroma: chroma: fingerprinted b'/Volumes/2tbhfs/tmp/MusicDownload/2/Destination Calabria (feat. Crystal Waters) (UK Extended Mix) [7RmOiiMB-jM].mp3'
chroma: matched recordings ['0eafd4cb-a66a-4f94-8080-ac00ab1487a0', '0fb495b4-b85f-4c1b-85a3-e2a1c3b0a15f', '6cba3b1f-82c1-41cb-8926-1ec1fe9c4509', 'b90e5bf9-6af1-4ca8-a76d-eb48a3adeb73', 'be758e36-9638-42a0-addc-2ca5c2e06e20', 'f3be1146-651f-4d63-b578-789549c3780c'] on releases ['b2a4d30d-6a7e-4f6a-8ed1-df47b14d99df', '3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315', 'e6176c9a-49eb-464a-9d12-96945a8eb98b', '5a795786-e49d-4186-b7b3-50fe96492353', '22fe4bbf-9a91-4e5c-aed1-99ad9f0884aa', '7a2c7700-28b4-4d40-a36a-c2fe8d2048e2', 'ed9429cd-55c5-4afd-9e10-e2761ca03e33', '85739936-fe42-4f01-83ce-b27c01b5301a']
chroma: chroma: fingerprinted b'/Volumes/2tbhfs/tmp/MusicDownload/2/Destination Calabria (feat. Crystal Waters) (UK Radio Edit) [a7uIJkDydjA].mp3'
chroma: matched recordings ['0642a590-eb68-4d94-b603-0aec72819ee2', '0feaa83d-880b-4463-98dc-c63bb4a4d34b', '1ef58cca-2f3a-4083-980a-33e455452524', '2b736260-145f-4f08-a9ed-278f1578a989', '32fb7617-8371-4d60-a141-7549ad2f4f05', '37da7c73-d946-4687-8416-462ff4a0dbb4', '3a8471a6-75da-4609-9e00-6d75eb137b40', '4f020c8f-db39-4b82-b792-76abd6583727', '5211f440-0f78-4709-ac4c-d59f4ff6a71f', '61a25606-05f2-4b08-8173-5198c54e885f', '646c3acf-5abe-4497-92cb-548c08a87aa4', '64ecc339-c6d6-4c7a-a07a-7a8ad3506921', '688ea6e1-1055-4b74-9e0a-c2ba80700f4e', '7bd57aba-e05a-4c79-83cc-5df9de42bed3', '90a4a5a5-4c8a-43c4-855c-0e595cb642b3', '9358d2f6-1038-40fe-b153-bd2e77a1b860', '945a63d3-68d7-4578-b6a1-8c331f767ae3', '98b90729-bab0-4f49-bbc8-664f87d68ac0', '99d190a9-dc55-4fc8-8975-b4bc86626d7c', 'ab128be3-b3cc-4cc5-b681-2c6fca5580a6', 'af6f8b4c-4252-4ed5-b4f9-4f8a803e24c3', 'b1420dc4-ed09-4a30-af2e-9a2216bbbc1c', 'b1932e36-7159-48fa-afb0-424a5dfbce66', 'b25aa9a5-e83a-4c01-a7d0-c1f847b41dfa', 'b7ab1deb-81e0-4ef1-93d6-4a1756744687', 'cab85146-9182-4b2b-a8fb-abb58f11b6f1', 'cd893446-df43-44bf-8814-4aa129170b58', 'db3da817-d5df-4048-afd0-61c826517fd1', 'eb9d0347-0e05-449c-9f34-69aac3fd3c75'] on releases ['d89a3e27-9021-42e7-a217-b4dc60d0f850', 'ba8c9b6d-fd07-41b5-95fc-7d9aae3760d7', 'd46987dd-1bfd-4707-b372-21961721978d', '2949b414-a1ad-4f4f-af60-5e0a75b19467', 'd735f045-accb-4aa6-9ac6-14ccc4a861ef', '8cd48a37-7293-4e33-b418-efeb970bc4ae', '69429114-9474-4d2e-b3d1-197d1c7419ad', 'b3891d43-ad98-4769-a745-b19c61e734f6', 'febfaa4e-d39a-4175-97fa-e161d9399bf9', '389076b5-09f1-478d-af75-0abde1492244', '6892d649-9e3e-41ba-9da7-79a74feb58ce', '4a8220d3-557e-4842-a616-266aa594bebc', '0ffc6073-c415-45ab-8716-c0cac227e86b', 'ee987760-749a-4e89-b0eb-f7e94a6b151c', '4b354ad6-be85-47b8-aff7-91c40be7b3a2', '95b5d122-63d2-44db-aaf4-23d5c536e6d6', '7343028e-5240-46e2-a5da-4e9acd348e5e', 'd1845613-8b77-4c51-984d-2dcaf0d18d08', 'f5a4b332-7135-4d63-832c-6a40251a16f2', '85083287-a6af-4c11-a470-91cca1372e80', '0282402a-68fe-40b9-a872-cadaa40cd933', 'f58a22db-fcc5-4c81-9e8f-c6c8569e9f19', '556d194f-cbab-4075-8e59-5b698a473216', '400b5aa4-28a8-49f2-954b-34aa012f8c86', '4f9ad175-1f76-4500-8207-0e7979a710e1', '89d4096d-67e9-4d11-b4ec-c1f4314bcd8c', '7a818ae0-715b-45df-af8e-59d50b914ba3', '0c532c67-ffb3-4bbe-b02f-8073ac8e8883', '07742c36-7e9f-4b41-8699-ee8587c237cc', '9d955388-b0b3-4bde-ba7d-92bfc6d117fc', 'b675a019-9c55-4322-ab0d-4987d1aed341', 'd98e2f89-c146-4c8f-aeda-06200bf93364', '6046276f-c5e9-4fd2-976a-5f3571042912', 'b14bee4b-b329-415f-8e8b-0b88bbf14f1c', 'a62d613e-10cd-4d13-a4fb-4691872e7619', 'f872c58e-e44d-4e74-ba50-5a149b46e466', 'b873ac43-a5b4-4187-a1a4-0294775990a4', '405cf1a5-d652-4b43-950b-a5870163e93d', 'c35cf86d-021b-43e8-a54e-d4d907b54564', 'f0a81301-c793-4ba8-914b-295f39b8d29e', 'c9689dd1-85c2-4606-9ac3-9944a6b0e555', 'a96eadcc-10d0-467a-b04a-078fd8ac8bf2', '0c954c6a-127a-4695-abd5-628850f37f1e', '1b03655b-5baa-44c3-a3ca-d93d3901253b', '7bf5f81c-14c5-4c73-a76e-041067e642af', 'a39829cc-6924-4973-be5b-6e1d517e0c10', '7c80e0b7-8eb7-4980-8ea1-3d3ba98e332c', 'ae263de2-f00f-42f1-8ac2-b0a4c956769b', '1acae5f3-5980-4e95-b5f9-9c75b9777fdd', '04ec03b3-e784-4be0-ad39-ead34f9b9b1e', '6f978dee-b50b-45d2-9d29-8c6c36e04f89', '7a2c7700-28b4-4d40-a36a-c2fe8d2048e2', 'ed9429cd-55c5-4afd-9e10-e2761ca03e33', '3881e668-8dd4-4ffb-9f73-de1164479b4d', '52f809ca-70e3-4200-ae7e-0beac116f2ef', '37ebe03a-0432-477c-b5b8-8a1379c7eb00', '8e0cb51b-530f-4b09-a73a-3b09d5dad43b', 'f4ae6508-dd74-46ff-b4a5-16634c8c1d2f', '2f769c7e-0edc-43e7-82ae-540cc2eb2580', 'd2b59a80-0e8b-4751-bc37-2d4d7f1c7eae', 'e2ed3766-1d15-414f-90cc-76e9be36cb9a', '260e8789-d30e-436c-8232-a34adfdf9681', 'f886a169-cdd5-4018-aa66-cfbebb655a23', '6f1ab78b-eb88-49ea-bcdd-6a4444756cb5', '39fa66ee-2e06-4e32-9832-def0d4fe8866', '7eddf1d5-1733-4aa4-80ae-786af2fb2f26', 'dc9ec891-a684-433d-9ffe-ad22f42462c8', 'a88223fa-d671-46b3-830b-169359d08573', 'cf77027d-074e-4b50-9ba2-b94048b76b83', '6b728859-56f5-47db-93ff-faebbef6666f', 'd8e226e1-51e2-4ae3-87f6-b17908a52772', 'f032851a-7218-4b51-a8b1-dde0a16129eb', 'a6fd5e12-59cf-459a-8e1a-bb6f0b7ba958', '7dd0fd2a-f352-46ff-a8a1-84309149014e', '22f2e47d-c784-4a0a-abf1-21e1832d7b69', '18d453a3-7db0-47e2-8147-9a6bd4721056', '3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315', '1c5e38d0-c30f-42c3-a2f7-ebfec3a3b73b', '89a44ca0-b2e6-4f87-9343-c067a2e3515e', '0c70f2f0-96a2-46bb-83b6-004e834e9596', '501ab489-581a-4c87-9f3c-6dd93dbbd4cf', '9fc2dffe-f18d-41c8-852c-7a1836f1faec', '63e70193-8509-4503-8447-5c17172d3604', '8d643d74-9c10-4c55-9ab6-599c2561a44d', '7e008d07-5847-41c7-9d7f-72ef2c2da7b7', 'a1e54e06-0b94-44a5-9581-6611b654024f', '0b610271-4f6a-4a0a-abaa-52b0c745b684', '39ce7e3d-ffe3-493d-a245-e1d5856ec793', '78891206-a378-45f6-94b5-7bf3547da319', 'b6ba5648-77ee-43c4-89b8-2fb4a6de6b92', '2177e287-c38a-4b55-ad6f-41544c64b359', '1e431568-b163-4802-98ce-b6aef8878964', '2b4806b2-7116-4b62-b635-81a310510887', '97ea260c-fefd-443d-9b7a-7a0027ca4f47', '2fcd8709-a6a1-4896-8b61-93000c3416a8', '0ba1fa6c-d0bf-48bf-8499-ef9be5efba62', '026d83ee-2245-4d72-9183-02aeee83bced', 'f163d6a5-5870-4e56-bd79-a26b0359f337']
chroma: chroma: fingerprinted b'/Volumes/2tbhfs/tmp/MusicDownload/2/Destination Calabria (feat. Crystal Waters) (Wharton & Lloyd Mix) [ECFFKMBZ4Tk].mp3'
chroma: no match found
Looking up: /Volumes/2tbhfs/tmp/MusicDownload/2
Tagging Alex Gaudino, Crystal Waters, Rune Reilly Kolsch, Alfonso Fortunato Gaudino, Stefano Scarpellini, Linn Sharon May, Rune Reilly Kolsch, Alfonso Fortunato Gaudino, Stefano Scarpellini, Linn Sharon May - Destination Calabria (feat. Crystal Waters)
No album ID found.
Search terms: Alex Gaudino, Crystal Waters, Rune Reilly Kolsch, Alfonso Fortunato Gaudino, Stefano Scarpellini, Linn Sharon May, Rune Reilly Kolsch, Alfonso Fortunato Gaudino, Stefano Scarpellini, Linn Sharon May - Destination Calabria (feat. Crystal Waters)
Album might be VA: False
Searching for MusicBrainz releases with: {'release': 'destination calabria (feat. crystal waters)', 'artist': 'alex gaudino, crystal waters, rune reilly kolsch, alfonso fortunato gaudino, stefano scarpellini, linn sharon may, rune reilly kolsch, alfonso fortunato gaudino, stefano scarpellini, linn sharon may', 'tracks': '12'}
Requesting MusicBrainz release 3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_album_extract
Sending event: albuminfo_received
Candidate: Alex Gaudino - Destination Calabria (3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315)
Computing track assignment...
...done.
Success. Distance: 0.14
Requesting MusicBrainz release 7a2c7700-28b4-4d40-a36a-c2fe8d2048e2
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_album_extract
Sending event: albuminfo_received
Candidate: Alex Gaudino feat. Crystal Waters - Destination Calabria (7a2c7700-28b4-4d40-a36a-c2fe8d2048e2)
Computing track assignment...
...done.
Success. Distance: 0.56
Requesting MusicBrainz release ed9429cd-55c5-4afd-9e10-e2761ca03e33
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_album_extract
Sending event: albuminfo_received
Candidate: Alex Gaudino feat. Crystal Waters - Destination Calabria (ed9429cd-55c5-4afd-9e10-e2761ca03e33)
Computing track assignment...
...done.
Success. Distance: 0.40
Requesting MusicBrainz release 3881e668-8dd4-4ffb-9f73-de1164479b4d
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_album_extract
Sending event: albuminfo_received
Candidate: Alex Gaudino feat. Crystal Waters - Destination Calabria (3881e668-8dd4-4ffb-9f73-de1164479b4d)
Computing track assignment...
...done.
Success. Distance: 0.34
Requesting MusicBrainz release cca4e9ed-1e95-4037-b2d9-3346f606162a
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_album_extract
Sending event: albuminfo_received
Candidate: Alex Gaudino feat. Crystal Waters - Destination Calabria (cca4e9ed-1e95-4037-b2d9-3346f606162a)
Computing track assignment...
...done.
Success. Distance: 0.46
Requesting MusicBrainz release 3881e668-8dd4-4ffb-9f73-de1164479b4d
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_album_extract
Sending event: albuminfo_received
Requesting MusicBrainz release 3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_album_extract
Sending event: albuminfo_received
Requesting MusicBrainz release 52f809ca-70e3-4200-ae7e-0beac116f2ef
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_album_extract
Sending event: albuminfo_received
Requesting MusicBrainz release ed9429cd-55c5-4afd-9e10-e2761ca03e33
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_album_extract
Sending event: albuminfo_received
chroma: acoustid album candidates: 4
Sending event: albuminfo_received
Candidate: Alex Gaudino feat. Crystal Waters - Destination Calabria (3881e668-8dd4-4ffb-9f73-de1164479b4d)
Duplicate.
Sending event: albuminfo_received
Candidate: Alex Gaudino - Destination Calabria (3bf43aa6-5ee6-40e3-bd5d-a25cd6d72315)
Duplicate.
Sending event: albuminfo_received
Candidate: Alex Gaudino feat. Crystal Waters - Destination Calabria (52f809ca-70e3-4200-ae7e-0beac116f2ef)
Computing track assignment...
...done.
Success. Distance: 0.31
Sending event: albuminfo_received
Candidate: Alex Gaudino feat. Crystal Waters - Destination Calabria (ed9429cd-55c5-4afd-9e10-e2761ca03e33)
Duplicate.
spotify: Searching Spotify for 'album:Destination Calabria (feat. Crystal Waters) artist:Alex Gaudino, Crystal Waters, Rune Reilly Kolsch, Alfonso Fortunato Gaudino, Stefano Scarpellini, Linn Sharon May, Rune Reilly Kolsch, Alfonso Fortunato Gaudino, Stefano Scarpellini, Linn Sharon May'
error: Spotify API error:
{
  "error" : {
    "status" : 400,
    "message" : "Bad request."
  }
}
URL:
https://api.spotify.com/v1/search
params:
{'q': 'album:Destination Calabria (feat. Crystal Waters) artist:Alex Gaudino, Crystal Waters, Rune Reilly Kolsch, Alfonso Fortunato Gaudino, Stefano Scarpellini, Linn Sharon May, Rune Reilly Kolsch, Alfonso Fortunato Gaudino, Stefano Scarpellini, Linn Sharon May', 'type': 'album'}

Led to this problem:

error: Spotify API error:
{
  "error" : {
    "status" : 400,
    "message" : "Bad request."
  }
}
URL:
https://api.spotify.com/v1/search
params:
{'q': 'album:Destination Calabria (feat. Crystal Waters) artist:Alex Gaudino, Crystal Waters, Rune Reilly Kolsch, Alfonso Fortunato Gaudino, Stefano Scarpellini, Linn Sharon May, Rune Reilly Kolsch, Alfonso Fortunato Gaudino, Stefano Scarpellini, Linn Sharon May', 'type': 'album'}

Here's a link to the music files that trigger the bug (if relevant): https://music.youtube.com/playlist?list=OLAK5uy_nT6npIou-gPR8wMzZnSS2UXOfJx4ahWOk

Setup

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

My configuration (output of beet config) is:

beet config
lyrics:
    bing_lang_from: []
    auto: yes
    bing_client_secret: REDACTED
    bing_lang_to:
    google_API_key: REDACTED
    google_engine_ID: REDACTED
    genius_api_key: REDACTED
    fallback:
    force: no
    local: no
    sources:
    - google
    - musixmatch
    - genius
    - tekstowo
directory: /Volumes/ExternalDrUsed/beetmusic
group_albums: no
from_scratch: yes
incremental: yes
incremental_skip_later: yes
detail: yes

plugins: chroma discogs spotify acousticbrainz fetchart embedart info duplicates edit lyrics
embedart:
    remove_art_file: yes
    maxwidth: 0
    auto: yes
    compare_threshold: 0
    ifempty: no
    quality: 0
chroma:
    auto: yes
acousticbrainz:
    auto: yes
    force: no
    tags: []
edit:
    albumfields: album albumartist
    itemfields: track title artist album
    ignore_fields: id path
duplicates:
    album: no
    checksum: ''
    copy: ''
    count: no
    delete: no
    format: ''
    full: no
    keys: []
    merge: no
    move: ''
    path: no
    tiebreak: {}
    strict: no
    tag: ''
spotify:
    source_weight: 0.5
    mode: list
    tiebreak: popularity
    show_failures: no
    artist_field: albumartist
    album_field: album
    track_field: title
    region_filter:
    regex: []
    client_id: 4e414367a1d14c75a5c5129a627fcab8
    client_secret: REDACTED
    tokenfile: spotify_token.json
fetchart:
    auto: yes
    minwidth: 0
    maxwidth: 0
    quality: 0
    max_filesize: 0
    enforce_ratio: no
    cautious: no
    cover_names:
    - cover
    - front
    - art
    - album
    - folder
    sources:
    - filesystem
    - coverart
    - itunes
    - amazon
    - albumart
    google_key: REDACTED
    google_engine: 001442825323518660753:hrh5ch1gjzm
    fanarttv_key: REDACTED
    lastfm_key: REDACTED
    store_source: no
    high_resolution: no
    deinterlace: no
    cover_format:
discogs:
    apikey: REDACTED
    apisecret: REDACTED
    tokenfile: discogs_token.json
    source_weight: 0.5
    user_token: REDACTED
    separator: ', '
    index_tracks: no

dmountainwolf avatar Sep 03 '23 16:09 dmountainwolf

I have seen this before, but I am unable to reliably reproduce it. I tried the album you posted and was able to import it without any errors:

image

arsaboo avatar Sep 04 '23 13:09 arsaboo

Hmm… can you please clarify whether the importer crashes when this happens? Looking at the code, it looks like things are set up to just log the error and move on: https://github.com/beetbox/beets/blob/b31ddf4f03a8bc04f26c73f7061b812bdc880c0b/beetsplug/spotify.py#L406-L408

…which should let you continue importing other stuff, without you needing to disable the plugin manually to continue. Is that not happening?

sampsyo avatar Sep 08 '23 20:09 sampsyo

@sampsyo yes, batch importing crashes every time - I feel it is crashing midway on the batch with some in-progress folders left partially imported, but I have not yet proven it to myself.

Another example track / album that causes a reproducible crash for me, only when I enable the spotify plugin is at https://music.youtube.com/playlist?list=OLAK5uy_mBO2QZjMoVCSZ5piW8zP8cJRVUY-rc4Aw

Log from that request looks like this, note the extremely long list of artists that is being sent:

❯ beet import .
error: Spotify API error:
{
  "error" : {
    "status" : 400,
    "message" : "Bad request."
  }
}
URL:
https://api.spotify.com/v1/search
params:
{'q': 'album:Think About (feat. Yung Miami) artist:DAMANTE, Malu Trevejo, Yung Miami, Andrea Damante, Patrick Jordan Patrikios, Hanni Ibrahim, Alexandra Shungudzo Govere, Patrick Jordan Patrikios, Hanni Ibrahim, Alexandra Shungudzo Govere, Maria Luisa Trevejo, Caresha Romeka Brownlee', 'type': 'album'}

dmountainwolf avatar Sep 10 '23 18:09 dmountainwolf

Perhaps it will help if I show the yt-dlp command I'm using to get that metadata filled in?

Here's the cli command I'm using to get that album down to my folder:

yt-dlp --parse-metadata "playlist_index:%(track_number)s" --add-metadata -x --audio-format mp3 --audio-quality 1 --embed-thumbnail --postprocessor-args "-write_id3v1 1 -id3v2_version 3" "https://music.youtube.com/playlist?list=OLAK5uy_mBO2QZjMoVCSZ5piW8zP8cJRVUY-rc4Aw"

dmountainwolf avatar Sep 10 '23 18:09 dmountainwolf

Yep, I can confirm it is the number of artists which is causing the crash. I edited the ID3 tags to only leave Malu Trevejo in the list and then it matched and imported fine with Spotify. 👍

dmountainwolf avatar Sep 10 '23 19:09 dmountainwolf

The trouble I'm having here is that it's easy to see in the code where the error is being printed, but I don't see anything there that would terminate beets and exit immediately. Beets is also not printing a stacktrace when you use -vv. Are you sure that the import is being fully terminated at this point, or is it just printing this error and not returning any Spotify matches for this album?

If it's the latter, I'm concerned that there may not be much we can do about this. The Spotify API is producing an error, and I don't know how to work around that error. We could just truncate the artist string when we search, maybe? But it's not clear what the limit should be, and it could yield unpredictable results if we chop off artists' names partway through, for example… any bright ideas about what would avoid the error on Spotify's end?

sampsyo avatar Sep 10 '23 20:09 sampsyo

I'd like to help debug this: Can you paste a full CURL request to the Spotify API (with all headers) that I can run at my end? I'm able to run from Postman also if that's preferable. I can try and figure out a limit or what their problem is with too many artist names, specifically. Perhaps there's an alternate way of encoding artist names, or something else we can do, I haven't used the Spotify API myself yet, so I'm not sure.

I'm unsure if beets is crashing, to be honest, though it does feel that way - there were 10 folders I asked it to import and this was the 3rd folder which kept failing (and the rest of the folders don't get attempted, after this error breaks it).

dmountainwolf avatar Sep 10 '23 20:09 dmountainwolf

@sampsyo truncating the artist name may not be a bad idea. I'll submit a bug fix for @dmountainwolf to try. We can then decide.

arsaboo avatar Sep 11 '23 03:09 arsaboo

@dmountainwolf can you see if #4901 fixes your issues.

arsaboo avatar Sep 11 '23 15:09 arsaboo

@dmountainwolf you found time to test @arsaboo's fix?

JOJ0 avatar Jan 24 '24 10:01 JOJ0