Ejemplo n.º 1
0
        private async Task RenameEpisodes()
        {
            var folder       = tvwFolder.SelectedNode.Tag.ToString();
            var seriesFolder = new DirectoryInfo(folder).Parent.FullName;
            var seriesName   = SeriesIOHelper.GetSeriesMetadata(seriesFolder).Series.Title;

            await SeasonHelper.RenameFiles(api : _tvdb, seriesName : seriesName, seasonPath : folder);

            LoadAllFiles(folder);
        }
Ejemplo n.º 2
0
        private async Task <bool> RenameEpisodesUI()
        {
            using var renamer = new EpisodeRenameForm();
            var folder   = tvwFolder.SelectedNode.Tag.ToString();
            var episodes = await SeasonHelper.GetEpisodes(_tvdb, folder);

            var seriesFolder = new DirectoryInfo(folder).Parent.FullName;
            var seriesName   = SeriesIOHelper.GetSeriesMetadata(seriesFolder).Series.Title;

            renamer.ShowDialog(seriesName, folder, episodes);
            LoadAllFiles(folder);
            return(renamer.GetSeasonData);
        }