29 lines
875 B
C#
29 lines
875 B
C#
using System;
|
|
using System.Linq;
|
|
using Mixonomer.Fire;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.Extensions.Logging;
|
|
using Microsoft.Extensions.Logging.Abstractions;
|
|
using Mixonomer.Fire.Extensions;
|
|
using Mixonomer;
|
|
using Mixonomer.Playlist;
|
|
|
|
namespace Mixonomer.CLI;
|
|
|
|
class Program
|
|
{
|
|
static async Task Main(string[] args)
|
|
{
|
|
var repo = new UserRepo(projectId: System.Environment.GetEnvironmentVariable("GOOGLE_CLOUD_PROJECT"));
|
|
|
|
var walker = new PartTreeWalker(repo);
|
|
// var partPlaylists = await walker.GetPlaylistParts("andy", "RAP");
|
|
|
|
var spotifyNetwork = new SpotifyNetworkProvider(repo, null, NullLogger<SpotifyNetworkProvider>.Instance);
|
|
|
|
var generator = new PlaylistGenerator(repo, spotifyNetwork, walker, NullLogger<PlaylistGenerator>.Instance);
|
|
|
|
await generator.GeneratePlaylist("POP", "andy");
|
|
}
|
|
}
|