Esempio n. 1
0
        public void TestCreateRecording()
        {
            ITvHeadend tvHeadEnd = new TvHeadendLib.TvHeadend(Url, true);

            if (!DateTime.TryParse("18.04.2019 13:37:30", out var start) || !DateTime.TryParse("18.04.2019 16:15:00", out var stop))
            {
                return;
            }

            var recordingToCreate = new Recording
            {
                Channel  = "f1351106ed1b6872d85bbf2eab0e93c9",
                Comment  = "Created by Tv-Browser",
                Priority = 2,
                Start    = start,
                Stop     = stop,
                Title    = "Die Prinzessin von Montpensier",
                SubTitle = "(2009)"
            };

            var recording = tvHeadEnd.CreateRecording(recordingToCreate);

            Assert.IsFalse(string.IsNullOrWhiteSpace(recording.Uuid));
            Console.WriteLine(recording.Uuid);

            var success = tvHeadEnd.RemoveRecordingSchedule(recordingToCreate);

            Assert.IsTrue(success);
        }
Esempio n. 2
0
        public void TestRecordings()
        {
            ITvHeadend tvHeadEnd = new TvHeadendLib.TvHeadend(Url, true);

            Assert.IsTrue(tvHeadEnd.GetRecordings().Count > 0);

            foreach (var recording in tvHeadEnd.GetRecordings())
            {
                Console.WriteLine(recording);
            }
        }
Esempio n. 3
0
        public void TestChannels()
        {
            ITvHeadend tvHeadEnd = new TvHeadendLib.TvHeadend(Url, true);

            Assert.IsTrue(tvHeadEnd.GetChannels().Count > 0);

            foreach (var channel in tvHeadEnd.GetChannels())
            {
                Console.WriteLine(channel);
            }
        }