Skip to content

Commit

Permalink
Fixed provider playlist retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlendea committed Jun 4, 2019
1 parent 6defee3 commit 772d62e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Service/PlaylistFetcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.IO;
using System.Linq;
using System.Net;
using System.Threading.Tasks;

using NuciLog.Core;

Expand Down Expand Up @@ -47,7 +46,7 @@ public IEnumerable<Playlist> FetchProviderPlaylists(IEnumerable<PlaylistProvider

logger.Info(MyOperation.PlaylistFetching, OperationStatus.Started, "Fetching provider playlists");

Parallel.ForEach(providers, provider =>
foreach (PlaylistProvider provider in providers)
{
Playlist playlist = FetchProviderPlaylist(provider);

Expand All @@ -58,7 +57,7 @@ public IEnumerable<Playlist> FetchProviderPlaylists(IEnumerable<PlaylistProvider
playlist,
(key, oldValue) => playlist);
}
});
}

return playlists
.OrderBy(x => x.Key)
Expand Down

0 comments on commit 772d62e

Please sign in to comment.