Mixonomer.NET/Mixonomer.CLI/Program.cs

29 lines
875 B
C#
Raw Normal View History

2022-08-03 22:51:39 +01:00
using System;
2023-10-12 19:51:29 +01:00
using System.Linq;
2022-08-07 13:54:29 +01:00
using Mixonomer.Fire;
2022-08-03 22:51:39 +01:00
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
2023-10-12 19:51:29 +01:00
using Mixonomer.Fire.Extensions;
using Mixonomer;
using Mixonomer.Playlist;
2022-08-03 22:51:39 +01:00
namespace Mixonomer.CLI;
class Program
2022-08-03 22:51:39 +01:00
{
static async Task Main(string[] args)
2022-08-03 22:51:39 +01:00
{
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");
2022-08-03 22:51:39 +01:00
}
}