Skip to content

Commit

Permalink
remove animepahe
Browse files Browse the repository at this point in the history
  • Loading branch information
insomniachi committed Jan 20, 2024
1 parent 8de32f2 commit 4f662d7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Totoro.Core/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public static IServiceCollection AddPlugins(this IServiceCollection services)

#if DEBUG
// anime
PluginFactory<AnimeProvider>.Instance.LoadPlugin(new Plugins.Anime.AnimePahe.Plugin());
//PluginFactory<AnimeProvider>.Instance.LoadPlugin(new Plugins.Anime.AnimePahe.Plugin());
PluginFactory<AnimeProvider>.Instance.LoadPlugin(new Plugins.Anime.AllAnime.Plugin());
PluginFactory<AnimeProvider>.Instance.LoadPlugin(new Plugins.Anime.YugenAnime.Plugin());
PluginFactory<AnimeProvider>.Instance.LoadPlugin(new Plugins.Anime.GogoAnime.Plugin());
Expand Down
17 changes: 1 addition & 16 deletions Totoro.WinUI/UserControls/AnimeCard.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public MenuFlyout Flyout
public AnimeCard()
{
InitializeComponent();

this.WhenAnyValue(x => x.Anime)
.WhereNotNull()
.ObserveOn(RxApp.MainThreadScheduler)
Expand Down Expand Up @@ -106,22 +107,6 @@ public Visibility IsRewatchingVisibile(AnimeModel anime)
: Visibility.Collapsed;
}

//public Dictionary<string, string> GetAdditionalInformation(AnimeModel anime)
//{
// if (anime is not AnimeModel fa)
// {
// return [];
// }

// return new Dictionary<string, string>
// {
// ["Episodes"] = $"{(fa.TotalEpisodes is > 0 ? fa.TotalEpisodes.ToString() : "Unknown")}",
// ["Genres"] = $"{string.Join(", ", fa.Genres ?? Enumerable.Empty<string>())}",
// ["Score"] = $"{fa.MeanScore}",
// ["Popularity"] = $"#{fa.Popularity}"
// };
//}

private void ImageEx_Tapped(object sender, Microsoft.UI.Xaml.Input.TappedRoutedEventArgs e)
{
Command?.Execute(Anime);
Expand Down
5 changes: 0 additions & 5 deletions plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
"Version": "2.7.0.0",
"FileName": "Totoro.Plugins.Anime.AllAnime.dll"
},
{
"DisplayName": "Anime Pahe",
"Version": "1.10.0.0",
"FileName": "Totoro.Plugins.Anime.AnimePahe.dll"
},
{
"DisplayName": "Gogo Anime",
"Version": "1.4.0.0",
Expand Down

0 comments on commit 4f662d7

Please sign in to comment.