mirror of
https://github.com/Crunchy-DL/Crunchy-Downloader.git
synced 2026-04-21 08:51:59 +00:00
Add - Added **completion sound** when downloads finish, allowing a specified sound to be played Add - Added **changelog** for easier tracking of changes and updates Add - Added **Retry button** to reset all failed downloads, allowing "Auto Download" to restart them Add - Added **dub/sub info** to the Upcoming tab Chg - Changed **history table view** to include missing features from the poster view Chg - Changed and **adjusted error messages** Chg - Changed **chapters formatting** for consistent output across locales Chg - Changed **Clear Queue** button to icon-only Chg - Changed **update button** behavior Chg - Changed some **error messages** for better debugging Chg - Changed **history series access**, now allowing it to open while others are refreshing Chg - Changed **device ID reuse** to fix continuous login emails Chg - Changed **authentication log** to write the full message for better debugging Chg - Updated **dependencies** Fix - Temporary fix for **authentication issues** Fix - Fixed **unable to download movies** [#237](https://github.com/Crunchy-DL/Crunchy-Downloader/issues/237) Fix - Fixed **buggy queue behavior** during active downloads Fix - Fixed **duplicate seasons in history** when adding multiple episodes from the calendar Fix - Fixed crash if **all** subtitles option is selected Fix - Fixed "**Cannot set download directory to Drive**" https://github.com/Crunchy-DL/Crunchy-Downloader/issues/220 Fix - Fixed missing **subtitles and none subs** for some series
19 lines
No EOL
750 B
C#
19 lines
No EOL
750 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using Avalonia.Data.Converters;
|
|
using CRD.Utils.Structs;
|
|
using CRD.Utils.Structs.History;
|
|
|
|
namespace CRD.Utils.UI;
|
|
|
|
public class UiSeriesSeasonConverter : IMultiValueConverter{
|
|
public object Convert(IList<object> values, Type targetType, object parameter, CultureInfo culture){
|
|
var series = values.Count > 0 && values[0] is HistorySeries hs ? hs : null;
|
|
var season = values.Count > 1 && values[1] is HistorySeason hsn ? hsn : null;
|
|
return new SeasonDialogArgs(series, season);
|
|
}
|
|
|
|
public IList<object> ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
|
|
=> throw new NotImplementedException();
|
|
} |