From 1d0e46b537c0320799647a8b94cf2d2b077cfb06 Mon Sep 17 00:00:00 2001 From: mpiva Date: Tue, 8 Sep 2015 02:08:57 -0300 Subject: [PATCH] Fixed Daisuki bugs. --- ADBaseLibrary/AdobeHDS/FlashWrapper/DecryptForm.cs | 4 ++-- Plugins/DaiSukiPlugin/DaiSuki.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ADBaseLibrary/AdobeHDS/FlashWrapper/DecryptForm.cs b/ADBaseLibrary/AdobeHDS/FlashWrapper/DecryptForm.cs index 67a94fb..77ef29c 100644 --- a/ADBaseLibrary/AdobeHDS/FlashWrapper/DecryptForm.cs +++ b/ADBaseLibrary/AdobeHDS/FlashWrapper/DecryptForm.cs @@ -60,10 +60,10 @@ private static void CreateComponent(object obj) string swf = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "loader.swf"); if (File.Exists(swf)) form.axShock.LoadMovie(0, swf); - form.axShock.Stop(); - form.axShock.Dispose(); thscheduler= TaskScheduler.FromCurrentSynchronizationContext(); Application.Run(); + form.axShock.Stop(); + form.axShock.Dispose(); } public DecryptForm() { diff --git a/Plugins/DaiSukiPlugin/DaiSuki.cs b/Plugins/DaiSukiPlugin/DaiSuki.cs index 31087f0..eaa1636 100644 --- a/Plugins/DaiSukiPlugin/DaiSuki.cs +++ b/Plugins/DaiSukiPlugin/DaiSuki.cs @@ -598,7 +598,7 @@ public async Task Download(ISession session, Episode episode, string t token.ThrowIfCancellationRequested(); progress.Report(dp); string intermediatefile = dp.FullPath+ ".tm1"; - FragmentProcessor frag =new FragmentProcessor(ws.Cookies,headers, LibSet[UserAgentS], SocketTimeout, "http://img.daisuki.net/common2/pages/anime/swf/bngn_player_001.swf",null,3,5,intermediatefile); + FragmentProcessor frag =new FragmentProcessor(ws.Cookies,headers, LibSet[UserAgentS], SocketTimeout, "http://img.daisuki.net/common2/pages/anime/swf/bngn_player_001.swf", _info.ProxyFromGlobalRequirements(_global), 3,5,intermediatefile); double dbl = 91; IProgress d = new Progress((val) => {