Group support and multiple package import.
2 using System.Collections.Generic;
3 using System.ComponentModel;
8 using System.Threading.Tasks;
9 using System.Windows.Forms;
11 using System.Diagnostics;
18 public partial class MainForm : Form
22 InitializeComponent();
25 private void buttonGenerate_Click(object sender, EventArgs e)
27 List<Channel> channels = new List<Channel>();
28 channels.AddRange(KingOfSat.Parse(channels, "http://en.kingofsat.net/pack-skygermany.php", "19.2°E"));
29 channels.AddRange(KingOfSat.Parse(channels, "http://en.kingofsat.net/pack-hdplus.php", "19.2°E"));
30 channels.AddRange(KingOfSat.Parse(channels, "http://en.kingofsat.net/pack-arddigital.php", "19.2°E"));
31 channels.AddRange(KingOfSat.Parse(channels, "http://en.kingofsat.net/pack-zdfvision.php", "19.2°E"));
32 channels.AddRange(KingOfSat.Parse(channels, "http://en.kingofsat.net/pack-tntsat.php", "19.2°E"));
34 //Discard non HD channels we don't need
35 channels = KingOfSat.CleanChannelList(channels);
37 //Declare tuner cards so that we don't need to create mapping manually after import
38 List<string> tuners = new List<string>(){"3","4"};
40 //Export to XML for MediaPortal to import
41 MediaPortal.Export(channels, tuners, "channels.xml", false);