mirror of
https://github.com/koel/koel.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #1678] Spotify Integration #920
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#920
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andreknieriem on GitHub (May 11, 2023).
Original GitHub issue: https://github.com/koel/koel/issues/1678
Describe the bug
Hey I cannot bring the spotify integration to work. I've created an app at Spotify and I have a client id and a secret which I added to the .env file. At Spotify there is another field required "Redirect URIs". What should I fill in there?
Second: When did the service try to load artist and album covers? I see the SpotifyService and the MediaMetadataService.php but I could not figure out, when this is called. If a add a new song and sync with
php artisan koel:syncit seems, that these services are not called. If I click in the frontend nothing too. So what am I missing here?To reproduce
Add spotify client and secret id, add a song and nothing will be there.
Expected behavior
The service is called and some data gets returned.
Screenshots
Environment
@phanan commented on GitHub (May 12, 2023):
The cover is only fetched when the song is played AND if it was empty before.
@andreknieriem commented on GitHub (May 12, 2023):
Ok. But why not adding this to the initial sync?
Just add to
App\Services\FileSynchronizer
on line 90 for example
and some later
Something like this? It is only needed, if no other image is found and it is a fast method. Or do you thinkt, that in a big sync to many spotify requests are generated?
Maybe additionally an AddSpotifyMetaDataCommand or something like this?
@phanan commented on GitHub (May 12, 2023):
It would create an overhead if you sync a lot of media and greatly slow down the sync process.