mirror of
https://github.com/hama3254/Crunchyroll-Downloader-v3.0.git
synced 2024-12-26 16:11:49 +01:00
minor fixes
fix hybrid mode 'keep cache' (keyfile false positive) #946 removed Browser dependency (browser no longer open in the background)
This commit is contained in:
parent
3d0467ed8a
commit
afd5f06a17
Binary file not shown.
2
Crunchyroll Downloader/Anime_Add.Designer.vb
generated
2
Crunchyroll Downloader/Anime_Add.Designer.vb
generated
@ -364,8 +364,8 @@ Partial Class Anime_Add
|
|||||||
Me.Controls.Add(Me.btn_dl)
|
Me.Controls.Add(Me.btn_dl)
|
||||||
Me.Controls.Add(Me.Btn_min)
|
Me.Controls.Add(Me.Btn_min)
|
||||||
Me.Controls.Add(Me.Btn_Close)
|
Me.Controls.Add(Me.Btn_Close)
|
||||||
Me.Controls.Add(Me.groupBox1)
|
|
||||||
Me.Controls.Add(Me.groupBox2)
|
Me.Controls.Add(Me.groupBox2)
|
||||||
|
Me.Controls.Add(Me.groupBox1)
|
||||||
Me.Font = New System.Drawing.Font("Arial", 24.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.Font = New System.Drawing.Font("Arial", 24.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.Name = "Anime_Add"
|
Me.Name = "Anime_Add"
|
||||||
Me.Padding = New System.Windows.Forms.Padding(10, 60, 20, 20)
|
Me.Padding = New System.Windows.Forms.Padding(10, 60, 20, 20)
|
||||||
|
@ -164,6 +164,8 @@ Public Class Anime_Add
|
|||||||
End Try
|
End Try
|
||||||
|
|
||||||
'Timer3.Enabled = True
|
'Timer3.Enabled = True
|
||||||
|
btn_dl.Cursor = Cursors.Default
|
||||||
|
btn_dl.BackgroundImage = My.Resources.main_button_download_default
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@ -458,17 +460,19 @@ Public Class Anime_Add
|
|||||||
Dim JsonUrl As String = "https://www.crunchyroll.com/content/v2/cms/seasons/" + guid + "/episodes?preferred_audio_language=" + Main.DubSprache.CR_Value + "&locale=" + Main.locale
|
Dim JsonUrl As String = "https://www.crunchyroll.com/content/v2/cms/seasons/" + guid + "/episodes?preferred_audio_language=" + Main.DubSprache.CR_Value + "&locale=" + Main.locale
|
||||||
|
|
||||||
|
|
||||||
Dim Loc_CR_Cookies = " -H " + Chr(34) + Main.CR_Cookies.Replace(Chr(34), "").Replace(" -H ", "") + Chr(34)
|
Dim Loc_CR_Cookies = "" 'No more cookies " -H " + Chr(34) + Main.CR_Cookies.Replace(Chr(34), "").Replace(" -H ", "") + Chr(34)
|
||||||
|
|
||||||
|
|
||||||
Dim EpisodeJson As String = Nothing 'CurlAuth(JsonUrl, Loc_CR_Cookies, Main.CR_MassSeasons.Item(ComboBox1.SelectedIndex).Auth) '
|
Dim EpisodeJson As String = Nothing 'CurlAuth(JsonUrl, Loc_CR_Cookies, Main.CR_MassSeasons.Item(ComboBox1.SelectedIndex).Auth) '
|
||||||
|
|
||||||
|
Debug.WriteLine("TEST")
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|
||||||
EpisodeJson = CurlAuthNew(JsonUrl, Loc_CR_Cookies, Main.CR_MassSeasons.Item(CB_Season.SelectedIndex).Auth) '
|
EpisodeJson = CurlAuthNew(JsonUrl, Loc_CR_Cookies, Main.CR_MassSeasons.Item(CB_Season.SelectedIndex).Auth) '
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
|
Debug.WriteLine("TEST Failed" + ex.ToString)
|
||||||
If CBool(InStr(ex.ToString, "Error - Getting")) Then
|
If CBool(InStr(ex.ToString, "Error - Getting")) Then
|
||||||
MsgBox("Error invalid CR respone")
|
MsgBox("Error invalid CR respone")
|
||||||
Exit Sub
|
Exit Sub
|
||||||
|
@ -69,10 +69,10 @@ Public Class Browser
|
|||||||
|
|
||||||
Main.BowserWasOpen = True
|
Main.BowserWasOpen = True
|
||||||
|
|
||||||
If Application.OpenForms().OfType(Of Anime_Add).Any = True Then
|
'If Application.OpenForms().OfType(Of Anime_Add).Any = True Then
|
||||||
Anime_Add.btn_dl.Cursor = Cursors.Default
|
' Anime_Add.btn_dl.Cursor = Cursors.Default
|
||||||
Anime_Add.btn_dl.BackgroundImage = My.Resources.main_button_download_default
|
' Anime_Add.btn_dl.BackgroundImage = My.Resources.main_button_download_default
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
If Main.Startseite IsNot My.Settings.Startseite Then
|
If Main.Startseite IsNot My.Settings.Startseite Then
|
||||||
Main.LoadBrowser(Main.Startseite, 1)
|
Main.LoadBrowser(Main.Startseite, 1)
|
||||||
|
@ -991,12 +991,12 @@ Public Class CRD_List_Item
|
|||||||
KeyLine = KeyFileUri(0) + "URI=" + Chr(34) + KeyFileCache + Chr(34)
|
KeyLine = KeyFileUri(0) + "URI=" + Chr(34) + KeyFileCache + Chr(34)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If KeepCacheFiles = True Then
|
'If KeepCacheFiles = True Then
|
||||||
'Dim Bytes() As Byte = File.ReadAllBytes(Application.StartupPath + "\" + KeyFile)
|
' 'Dim Bytes() As Byte = File.ReadAllBytes(Application.StartupPath + "\" + KeyFile)
|
||||||
'File.WriteAllBytes(Folder + "\" + KeyFile, Bytes)
|
' 'File.WriteAllBytes(Folder + "\" + KeyFile, Bytes)
|
||||||
Dim Evaluator2 = New Thread(Sub() Me.TS_DownloadAsync(KeyFileUri3, Folder + "\" + KeyFile))
|
' Dim Evaluator2 = New Thread(Sub() Me.TS_DownloadAsync(KeyFileUri3, Folder + "\" + KeyFile))
|
||||||
Evaluator2.Start()
|
' Evaluator2.Start()
|
||||||
End If
|
'End If
|
||||||
End If
|
End If
|
||||||
m3u8FileContent = m3u8FileContent + KeyLine + vbLf
|
m3u8FileContent = m3u8FileContent + KeyLine + vbLf
|
||||||
|
|
||||||
|
@ -2122,13 +2122,13 @@ Public Class Main
|
|||||||
|
|
||||||
Private Sub Btn_add_Click(sender As Object, e As EventArgs) Handles Btn_add.Click
|
Private Sub Btn_add_Click(sender As Object, e As EventArgs) Handles Btn_add.Click
|
||||||
|
|
||||||
If File.Exists("cookies.txt") = False Then
|
'If File.Exists("cookies.txt") = False Then
|
||||||
If Application.OpenForms().OfType(Of Browser).Any = True Then
|
' If Application.OpenForms().OfType(Of Browser).Any = True Then
|
||||||
Else
|
' Else
|
||||||
UserBowser = False
|
' UserBowser = False
|
||||||
Browser.Show()
|
' Browser.Show()
|
||||||
End If
|
' End If
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
If Anime_Add.WindowState = System.Windows.Forms.FormWindowState.Minimized Then
|
If Anime_Add.WindowState = System.Windows.Forms.FormWindowState.Minimized Then
|
||||||
Anime_Add.WindowState = System.Windows.Forms.FormWindowState.Normal
|
Anime_Add.WindowState = System.Windows.Forms.FormWindowState.Normal
|
||||||
@ -2897,7 +2897,7 @@ Public Class Main
|
|||||||
LoadingUrl = Url
|
LoadingUrl = Url
|
||||||
LoadedUrls.Clear()
|
LoadedUrls.Clear()
|
||||||
Dim NoBrowser As Boolean = False
|
Dim NoBrowser As Boolean = False
|
||||||
|
WebbrowserURL = Url
|
||||||
|
|
||||||
'CR_v1Token = "Get"
|
'CR_v1Token = "Get"
|
||||||
'Browser.WebView2.Source = New Uri(Url)
|
'Browser.WebView2.Source = New Uri(Url)
|
||||||
|
Loading…
Reference in New Issue
Block a user