re-enabled soft subs

re-enabled soft subs
This commit is contained in:
hama3254 2020-01-31 16:30:08 +01:00
parent 8cc084d729
commit 929740cf97
11 changed files with 62 additions and 60 deletions

Binary file not shown.

View File

@ -211,19 +211,19 @@ Public Class Main
End Try End Try
#Region "removed softsubtitle" #Region "removed softsubtitle"
'Try Try
'Dim rkg As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\CRDownloader") Dim rkg As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\CRDownloader")
'SoftSubsString = rkg.GetValue("AddedSubs").ToString SoftSubsString = rkg.GetValue("AddedSubs").ToString
'If SoftSubsString = "none" Then If SoftSubsString = "none" Then
'Else Else
' Dim SoftSubsStringSplit() As String = SoftSubsString.Split(New String() {","}, System.StringSplitOptions.RemoveEmptyEntries) Dim SoftSubsStringSplit() As String = SoftSubsString.Split(New String() {","}, System.StringSplitOptions.RemoveEmptyEntries)
' For i As Integer = 0 To SoftSubsStringSplit.Count - 1 For i As Integer = 0 To SoftSubsStringSplit.Count - 1
' SoftSubs.Add(SoftSubsStringSplit(i)) SoftSubs.Add(SoftSubsStringSplit(i))
' Next Next
'End If End If
'Catch ex As Exception Catch ex As Exception
'End Try End Try
#End Region #End Region
@ -291,7 +291,8 @@ Public Class Main
gIndexH = gIndexH + 1 gIndexH = gIndexH + 1
With ListView1.Items.Add(0) With ListView1.Items.Add(0)
LVPictureBox(ListView1, gIndexH, b, "", NameKomplett) ' removed softsubs LVPictureBox(ListView1, gIndexH, b, "Softsubs: " + SoftSubs, NameKomplett) LVPictureBox(ListView1, gIndexH, b, "Softsubs: " + SoftSubs, NameKomplett) ' removed softsubs LVPictureBox(ListView1, gIndexH, b, "Softsubs: " + SoftSubs, NameKomplett)
Bt_del(ListView1, gIndexH, NameKomplett) Bt_del(ListView1, gIndexH, NameKomplett)
End With End With
End If End If
@ -789,17 +790,17 @@ Public Class Main
#End Region #End Region
#Region "Subs" #Region "Subs"
'Dim SoftSubs2 As New List(Of String) Dim SoftSubs2 As New List(Of String)
'If SoftSubs.Count > 0 Then If SoftSubs.Count > 0 Then
' For i As Integer = 0 To SoftSubs.Count - 1 For i As Integer = 0 To SoftSubs.Count - 1
' If CBool(InStr(WebbrowserText, Chr(34) + "language" + Chr(34) + ":" + Chr(34) + SoftSubs(i) + Chr(34) + ",")) Then If CBool(InStr(WebbrowserText, Chr(34) + "language" + Chr(34) + ":" + Chr(34) + SoftSubs(i) + Chr(34) + ",")) Then
' SoftSubs2.Add(SoftSubs(i)) SoftSubs2.Add(SoftSubs(i))
' Else Else
' 'MsgBox("Softsubtitle for " + SoftSubs(i) + " is not avalible.", MsgBoxStyle.Information) 'MsgBox("Softsubtitle for " + SoftSubs(i) + " is not avalible.", MsgBoxStyle.Information)
' End If End If
' Next Next
'End If End If
If SubSprache = "None" Then If SubSprache = "None" Then
If CBool(InStr(WebbrowserText, Chr(34) + "hardsub_lang" + Chr(34) + ":null")) Then If CBool(InStr(WebbrowserText, Chr(34) + "hardsub_lang" + Chr(34) + ":null")) Then
SubSprache2 = "null" SubSprache2 = "null"
@ -826,13 +827,13 @@ Public Class Main
If CBool(InStr(WebbrowserText, Chr(34) + "hardsub_lang" + Chr(34) + ":" + Chr(34) + SubSprache + Chr(34) + ",")) Then If CBool(InStr(WebbrowserText, Chr(34) + "hardsub_lang" + Chr(34) + ":" + Chr(34) + SubSprache + Chr(34) + ",")) Then
SubSprache2 = Chr(34) + SubSprache + Chr(34) SubSprache2 = Chr(34) + SubSprache + Chr(34)
'ElseIf CBool(InStr(WebbrowserText, Chr(34) + "language" + Chr(34) + ":" + Chr(34) + SubSprache + Chr(34) + ",")) Then ElseIf CBool(InStr(WebbrowserText, Chr(34) + "language" + Chr(34) + ":" + Chr(34) + SubSprache + Chr(34) + ",")) Then
' If MessageBox.Show("It look like only Softsubtitle are avalibe." + vbNewLine + "Are you want to use Softsubtitle this time instead?", "No Hardsubtitle", MessageBoxButtons.YesNo) = DialogResult.Yes Then If MessageBox.Show("It look like only Softsubtitle are avalibe." + vbNewLine + "Are you want to use Softsubtitle this time instead?", "No Hardsubtitle", MessageBoxButtons.YesNo) = DialogResult.Yes Then
' SubSprache2 = "null" SubSprache2 = "null"
' SoftSubs2.Add(SubSprache) SoftSubs2.Add(SubSprache)
' Else Else
' Throw New System.Exception("Could not find the sub language") Throw New System.Exception("Could not find the sub language")
' End If End If
Else Else
@ -895,31 +896,31 @@ Public Class Main
#End Region #End Region
#Region "Download softsub file" #Region "Download softsub file"
'If SoftSubs2.Count > 0 Then If SoftSubs2.Count > 0 Then
' For i As Integer = 0 To SoftSubs2.Count - 1 For i As Integer = 0 To SoftSubs2.Count - 1
' 'EpisodeLabel.Text = SoftSubs2(i) 'EpisodeLabel.Text = SoftSubs2(i)
' 'StatusLabel.Text = "Status: downloading subtitle file" 'StatusLabel.Text = "Status: downloading subtitle file"
' LabelUpdate = "Status: downloading subtitle file" LabelUpdate = "Status: downloading subtitle file"
' LabelEpisode = SoftSubs2(i) LabelEpisode = SoftSubs2(i)
' Dim SoftSub As String() = WebbrowserText.Split(New String() {Chr(34) + "language" + Chr(34) + ":" + Chr(34) + SoftSubs2(i) + Chr(34) + "," + Chr(34) + "url" + Chr(34) + ":" + Chr(34)}, System.StringSplitOptions.RemoveEmptyEntries) Dim SoftSub As String() = WebbrowserText.Split(New String() {Chr(34) + "language" + Chr(34) + ":" + Chr(34) + SoftSubs2(i) + Chr(34) + "," + Chr(34) + "url" + Chr(34) + ":" + Chr(34)}, System.StringSplitOptions.RemoveEmptyEntries)
' Dim SoftSub_2 As String() = SoftSub(1).Split(New [Char]() {Chr(34)}) Dim SoftSub_2 As String() = SoftSub(1).Split(New [Char]() {Chr(34)})
' Dim SoftSub_3 As String = SoftSub_2(0).Replace("\/", "/") Dim SoftSub_3 As String = SoftSub_2(0).Replace("\/", "/")
' Dim client0 As New WebClient Dim client0 As New WebClient
' client0.Encoding = Encoding.UTF8 client0.Encoding = Encoding.UTF8
' Dim str0 As String = client0.DownloadString(SoftSub_3) Dim str0 As String = client0.DownloadString(SoftSub_3)
' Dim Pfad3 As String = Pfad2.Replace(Chr(34), "") Dim Pfad3 As String = Pfad2.Replace(Chr(34), "")
' Dim FN As String = Path.ChangeExtension(Path.Combine(Path.GetFileNameWithoutExtension(Pfad3) + " " + SoftSubs2(i) + Path.GetExtension(Pfad3)), "ass") Dim FN As String = Path.ChangeExtension(Path.Combine(Path.GetFileNameWithoutExtension(Pfad3) + " " + SoftSubs2(i) + Path.GetExtension(Pfad3)), "ass")
' 'MsgBox(FN) 'MsgBox(FN)
' If i = 0 Then If i = 0 Then
' FN = Path.ChangeExtension(Path.GetFileName(Pfad3), "ass") FN = Path.ChangeExtension(Path.GetFileName(Pfad3), "ass")
' 'MsgBox(FN) 'MsgBox(FN)
' End If End If
' Dim Pfad4 As String = Path.Combine(Path.GetDirectoryName(Pfad3), FN) Dim Pfad4 As String = Path.Combine(Path.GetDirectoryName(Pfad3), FN)
' 'MsgBox(Pfad4) 'MsgBox(Pfad4)
' File.WriteAllText(Pfad4, str0, Encoding.UTF8) File.WriteAllText(Pfad4, str0, Encoding.UTF8)
' Pause(1) Pause(1)
' Next Next
'End If End If
#End Region #End Region
#Region "lösche doppel download" #Region "lösche doppel download"

View File

@ -120,7 +120,4 @@
<metadata name="ToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="ToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<metadata name="ToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root> </root>

View File

@ -336,8 +336,8 @@ Public Class einstellungen
End Sub End Sub
Private Sub PictureBox5_Click(sender As Object, e As EventArgs) Handles PictureBox5.Click Private Sub PictureBox5_Click(sender As Object, e As EventArgs) Handles PictureBox5.Click
MsgBox("Crunchyroll removed the softsubs, there are not available anymore.", MsgBoxStyle.OkOnly) 'MsgBox("Crunchyroll removed the softsubs, there are not available anymore.", MsgBoxStyle.OkOnly)
'SoftSub.ShowDialog() SoftSub.ShowDialog()
End Sub End Sub
Private Sub PictureBox5_MouseEnter(sender As Object, e As EventArgs) Handles PictureBox5.MouseEnter Private Sub PictureBox5_MouseEnter(sender As Object, e As EventArgs) Handles PictureBox5.MouseEnter
@ -370,6 +370,10 @@ Public Class einstellungen
End Sub End Sub
Private Sub GB_SubLanguage_Enter(sender As Object, e As EventArgs) Handles GB_SubLanguage.Enter
End Sub