Skip to content

Commit

Permalink
fix(Deezer) : Fix deezer latence
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-vinz committed May 9, 2023
1 parent e206745 commit b397a79
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions PLogger/MusiQualiAuthAccess_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ INFO [09-05-2023 09:37:49] : [email protected] has been successfully logged in
INFO [09-05-2023 09:38:23] : [email protected] has been successfully logged in
WARNING [09-05-2023 09:38:41] : [email protected] tried to login but provides bad credentials
INFO [09-05-2023 09:38:49] : [email protected] has been successfully logged in
WARNING [09-05-2023 18:25:01] : [email protected] tried to login but provides bad credentials
INFO [09-05-2023 18:25:25] : [email protected] has been successfully logged in
INFO [09-05-2023 18:27:39] : [email protected] has been successfully logged in
INFO [09-05-2023 18:28:57] : [email protected] has been successfully logged in
WARNING [09-05-2023 18:30:58] : [email protected] tried to login but provides bad credentials
INFO [09-05-2023 18:31:06] : [email protected] has been successfully logged in
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ private static Music fetchToMusic(DbMusic music)
Genre genre = DeezerApi.genres.getById(g.getGenreId()).execute();
Set<Music> musics = g.getMusics().stream()//
.map(m -> {
try
{
Thread.sleep(100);
}
catch (InterruptedException e)
{
}

// Gets some informations with Deezer
Track mTrack = DeezerApi.tracks.getById(music.getTrackId()).execute();

Expand Down

0 comments on commit b397a79

Please sign in to comment.