-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
34 lines (27 loc) · 879 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.IO;
using System.Threading.Tasks;
namespace get_audio
{
class Program
{
public static string[] links = File.ReadAllLines("C:\\Users\\Owner\\Programming\\audio_scraper\\src\\doowoplinks.txt");
public static string path = "C:\\Users\\Owner\\Music\\Scraper\\DooWop\\";
static void Main(string[] args)
{
run();
Console.Write("Enter 'q' to finish");
while (Console.ReadLine() != "q") ;
}
static async Task run()
{
for (int i = 25; i < 36; i++)
{
Console.WriteLine("Calling API...");
string link = await YTHelper.ConvertToLink(links[i]);
Console.WriteLine(links[i]);
await YTHelper.DownloadFromLink(link, Program.path);
}
}
}
}