mirror of
https://github.com/hama3254/Crunchyroll-Downloader-v3.0.git
synced 2024-12-25 15:41:48 +01:00
fix 2nd item
fix for add the second item as double entry if the first one was canceled
This commit is contained in:
parent
76361b266b
commit
38e0180dc3
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -205,6 +205,18 @@ Public Class Main
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Sub ListAdd(ByVal NameKomplett As String, ByVal NameP1 As String, ByVal NameP2 As String, ByVal Reso As String, ByVal HardSub As String, ByVal SoftSubs As String, ByVal ThumbnialURL As String, ByVal VideoURL As String)
|
Public Sub ListAdd(ByVal NameKomplett As String, ByVal NameP1 As String, ByVal NameP2 As String, ByVal Reso As String, ByVal HardSub As String, ByVal SoftSubs As String, ByVal ThumbnialURL As String, ByVal VideoURL As String)
|
||||||
|
Dim ReDl As Boolean = False
|
||||||
|
Dim index As Integer = 0
|
||||||
|
For i As Integer = 0 To PB_list.Count - 1
|
||||||
|
If PB_list.Item(i).Name = NameKomplett Then
|
||||||
|
ReDl = True
|
||||||
|
index = i
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
If ReDl = True Then
|
||||||
|
Dim PB As PictureBox = bt_dl.Item(index)
|
||||||
|
PB.Enabled = True
|
||||||
|
Else
|
||||||
Dim b As New Bitmap(838, 142, System.Drawing.Imaging.PixelFormat.Format24bppRgb)
|
Dim b As New Bitmap(838, 142, System.Drawing.Imaging.PixelFormat.Format24bppRgb)
|
||||||
Dim g As Graphics = Graphics.FromImage(b)
|
Dim g As Graphics = Graphics.FromImage(b)
|
||||||
Dim ZeroPoint As Point = New Point(0, 0)
|
Dim ZeroPoint As Point = New Point(0, 0)
|
||||||
@ -248,6 +260,7 @@ Public Class Main
|
|||||||
LVPictureBox(ListView1, gIndexH, b, "Softsubs: " + SoftSubs, NameKomplett)
|
LVPictureBox(ListView1, gIndexH, b, "Softsubs: " + SoftSubs, NameKomplett)
|
||||||
bt_del(ListView1, gIndexH, NameKomplett)
|
bt_del(ListView1, gIndexH, NameKomplett)
|
||||||
End With
|
End With
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Function bt_del(ByVal pListView As ListView, ByVal ItemIndex As Integer, ByVal NameKomplett As String) As PictureBox
|
Public Function bt_del(ByVal pListView As ListView, ByVal ItemIndex As Integer, ByVal NameKomplett As String) As PictureBox
|
||||||
@ -673,7 +686,7 @@ Public Class Main
|
|||||||
CR_Anime_Folge = CR_Name_Staffel0_Folge1(1).Trim()
|
CR_Anime_Folge = CR_Name_Staffel0_Folge1(1).Trim()
|
||||||
CR_Anime_Folge = System.Text.RegularExpressions.Regex.Replace(CR_Anime_Folge, "[^\w\\-]", " ")
|
CR_Anime_Folge = System.Text.RegularExpressions.Regex.Replace(CR_Anime_Folge, "[^\w\\-]", " ")
|
||||||
Else
|
Else
|
||||||
CR_Anime_Staffel = ""
|
CR_Anime_Staffel = Nothing
|
||||||
CR_Anime_Folge = CR_Name_2(0).Trim()
|
CR_Anime_Folge = CR_Name_2(0).Trim()
|
||||||
CR_Anime_Folge = System.Text.RegularExpressions.Regex.Replace(CR_Anime_Folge, "[^\w\\-]", " ")
|
CR_Anime_Folge = System.Text.RegularExpressions.Regex.Replace(CR_Anime_Folge, "[^\w\\-]", " ")
|
||||||
End If
|
End If
|
||||||
@ -941,8 +954,13 @@ Public Class Main
|
|||||||
ResoHTMLDisplay = ResoHTML(0) + "p"
|
ResoHTMLDisplay = ResoHTML(0) + "p"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
Dim L2Name As String = CR_Anime_Staffel + " " + CR_Anime_Folge
|
||||||
|
|
||||||
|
If CR_Anime_Staffel = Nothing Then
|
||||||
|
L2Name = CR_Anime_Folge
|
||||||
|
End If
|
||||||
Me.Invoke(New Action(Function()
|
Me.Invoke(New Action(Function()
|
||||||
ListAdd(CR_FilenName, CR_Anime_Titel, CR_Anime_Staffel + " " + CR_Anime_Folge, ResoHTMLDisplay, Subsprache3, SubValuesToDisplay(), thumbnail3, URL_DL)
|
ListAdd(CR_FilenName, CR_Anime_Titel, L2Name, ResoHTMLDisplay, Subsprache3, SubValuesToDisplay(), thumbnail3, URL_DL)
|
||||||
Return Nothing
|
Return Nothing
|
||||||
End Function))
|
End Function))
|
||||||
' liList.Add(My.Resources.htmlvorThumbnail + thumbnail3 + My.Resources.htmlnachTumbnail + CR_Anime_Titel + " <br> " + CR_Anime_Staffel + " " + CR_Anime_Folge + My.Resources.htmlvorAufloesung + ResoHTMLDisplay + My.Resources.htmlvorSoftSubs + vbNewLine + SubValuesToDisplay() + My.Resources.htmlvorHardSubs + Subsprache3 + My.Resources.htmlnachHardSubs + "<!-- " + CR_FilenName + "-->")
|
' liList.Add(My.Resources.htmlvorThumbnail + thumbnail3 + My.Resources.htmlnachTumbnail + CR_Anime_Titel + " <br> " + CR_Anime_Staffel + " " + CR_Anime_Folge + My.Resources.htmlvorAufloesung + ResoHTMLDisplay + My.Resources.htmlvorSoftSubs + vbNewLine + SubValuesToDisplay() + My.Resources.htmlvorHardSubs + Subsprache3 + My.Resources.htmlnachHardSubs + "<!-- " + CR_FilenName + "-->")
|
||||||
@ -1126,6 +1144,7 @@ Public Class Main
|
|||||||
Dim brGradient As Brush = New SolidBrush(Color.FromArgb(125, 0, 0))
|
Dim brGradient As Brush = New SolidBrush(Color.FromArgb(125, 0, 0))
|
||||||
g.FillRectangle(brGradient, ProgressbarPoint.X + 1, ProgressbarPoint.Y + 1, 600, 19)
|
g.FillRectangle(brGradient, ProgressbarPoint.X + 1, ProgressbarPoint.Y + 1, 600, 19)
|
||||||
g.Dispose()
|
g.Dispose()
|
||||||
|
AbourtList.Remove(sender)
|
||||||
Else
|
Else
|
||||||
Dim p As PictureBox = PB_list(i)
|
Dim p As PictureBox = PB_list(i)
|
||||||
Dim c As Integer = CInt(ListView1.Items.Item(i).Text)
|
Dim c As Integer = CInt(ListView1.Items.Item(i).Text)
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user