mirror of
https://github.com/hama3254/Crunchyroll-Downloader-v3.0.git
synced 2024-11-15 04:35:06 +01:00
* changed `Hybrid Mode` from checkbox to drop down menu * moved `Hybrid Mode` to `Output` page * moved `redirect mult-download` to output page * added `Naming` page * moved all filenname option to `Naming` page * added subfile naming options for `ISO639-2` and `Crunchyroll name + ISO639-2` #426
This commit is contained in:
parent
b7a505958c
commit
c798a52556
Binary file not shown.
@ -97,6 +97,7 @@ Public Class Main
|
|||||||
Public SubSprache As String
|
Public SubSprache As String
|
||||||
Public SoftSubs As New List(Of String)
|
Public SoftSubs As New List(Of String)
|
||||||
Public IncludeLangName As Boolean = False
|
Public IncludeLangName As Boolean = False
|
||||||
|
Public LangNameType As Integer = 0
|
||||||
Public TempSoftSubs As New List(Of String)
|
Public TempSoftSubs As New List(Of String)
|
||||||
Public AbourtList As New List(Of String)
|
Public AbourtList As New List(Of String)
|
||||||
Public watingList As New List(Of String)
|
Public watingList As New List(Of String)
|
||||||
@ -566,6 +567,13 @@ Public Class Main
|
|||||||
IncludeLangName = CBool(Integer.Parse(rkg.GetValue("IncludeLangName").ToString))
|
IncludeLangName = CBool(Integer.Parse(rkg.GetValue("IncludeLangName").ToString))
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
|
Try
|
||||||
|
Dim rkg As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\CRDownloader")
|
||||||
|
LangNameType = Integer.Parse(rkg.GetValue("LangNameType").ToString)
|
||||||
|
Catch ex As Exception
|
||||||
|
End Try
|
||||||
|
|
||||||
Try
|
Try
|
||||||
Dim rkg As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\CRDownloader")
|
Dim rkg As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\CRDownloader")
|
||||||
IgnoreS1 = CBool(Integer.Parse(rkg.GetValue("IgnoreS1").ToString))
|
IgnoreS1 = CBool(Integer.Parse(rkg.GetValue("IgnoreS1").ToString))
|
||||||
@ -1031,6 +1039,22 @@ Public Class Main
|
|||||||
Return Nothing
|
Return Nothing
|
||||||
End Try
|
End Try
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function GetSubFileLangName(ByVal HardSub As String) As String
|
||||||
|
|
||||||
|
HardSub = HardSub.Replace(Chr(34), "")
|
||||||
|
|
||||||
|
If LangNameType = 1 Then
|
||||||
|
Return CCtoMP4CC(HardSub)
|
||||||
|
ElseIf LangNameType = 2 Then
|
||||||
|
Dim RS As String = HardSubValuesToDisplay(HardSub) + "." + CCtoMP4CC(HardSub)
|
||||||
|
Return RS
|
||||||
|
Else
|
||||||
|
Return HardSubValuesToDisplay(HardSub)
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
End Function
|
||||||
Public Function HardSubValuesToDisplay(ByVal HardSub As String) As String
|
Public Function HardSubValuesToDisplay(ByVal HardSub As String) As String
|
||||||
Try
|
Try
|
||||||
HardSub = HardSub.Replace(Chr(34), "")
|
HardSub = HardSub.Replace(Chr(34), "")
|
||||||
@ -1425,7 +1449,7 @@ Public Class Main
|
|||||||
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) + "." + HardSubValuesToDisplay(SoftSubs2(i)) + Path.GetExtension(Pfad3)), "ass")
|
Dim FN As String = Path.ChangeExtension(Path.Combine(Path.GetFileNameWithoutExtension(Pfad3) + "." + GetSubFileLangName(SoftSubs2(i)) + Path.GetExtension(Pfad3)), "ass")
|
||||||
'MsgBox(FN)
|
'MsgBox(FN)
|
||||||
If i = 0 And IncludeLangName = False Then
|
If i = 0 And IncludeLangName = False Then
|
||||||
FN = Path.ChangeExtension(Path.GetFileName(Pfad3), "ass")
|
FN = Path.ChangeExtension(Path.GetFileName(Pfad3), "ass")
|
||||||
@ -1956,7 +1980,7 @@ Public Class Main
|
|||||||
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) + "." + HardSubValuesToDisplay(SoftSubs2(i)) + Path.GetExtension(Pfad3)), "ass")
|
Dim FN As String = Path.ChangeExtension(Path.Combine(Path.GetFileNameWithoutExtension(Pfad3) + "." + GetSubFileLangName(SoftSubs2(i)) + Path.GetExtension(Pfad3)), "ass")
|
||||||
'MsgBox(FN)
|
'MsgBox(FN)
|
||||||
If i = 0 And IncludeLangName = False Then
|
If i = 0 And IncludeLangName = False Then
|
||||||
FN = Path.ChangeExtension(Path.GetFileName(Pfad3), "ass")
|
FN = Path.ChangeExtension(Path.GetFileName(Pfad3), "ass")
|
||||||
@ -2468,7 +2492,7 @@ Public Class Main
|
|||||||
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) + "." + HardSubValuesToDisplay(SoftSubs2(i)) + Path.GetExtension(Pfad3)), "ass")
|
Dim FN As String = Path.ChangeExtension(Path.Combine(Path.GetFileNameWithoutExtension(Pfad3) + "." + GetSubFileLangName(SoftSubs2(i)) + Path.GetExtension(Pfad3)), "ass")
|
||||||
'MsgBox(FN)
|
'MsgBox(FN)
|
||||||
If i = 0 And IncludeLangName = False Then
|
If i = 0 And IncludeLangName = False Then
|
||||||
FN = Path.ChangeExtension(Path.GetFileName(Pfad3), "ass")
|
FN = Path.ChangeExtension(Path.GetFileName(Pfad3), "ass")
|
||||||
|
@ -32,6 +32,6 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("3.8.2.0")>
|
<Assembly: AssemblyVersion("3.8.3.0")>
|
||||||
<Assembly: AssemblyFileVersion("3.8.2.0")>
|
<Assembly: AssemblyFileVersion("3.8.3.0")>
|
||||||
<Assembly: NeutralResourcesLanguage("en")>
|
<Assembly: NeutralResourcesLanguage("en")>
|
||||||
|
Binary file not shown.
Binary file not shown.
923
Crunchyroll Downloader/einstellungen.Designer.vb
generated
923
Crunchyroll Downloader/einstellungen.Designer.vb
generated
File diff suppressed because it is too large
Load Diff
@ -18,7 +18,7 @@ Public Class Einstellungen
|
|||||||
|
|
||||||
Private Sub Einstellungen_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
Private Sub Einstellungen_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||||
|
|
||||||
Label6.Text = "You have: v" + Application.ProductVersion.ToString + " Chromium-U11-LongPathTest"
|
Label6.Text = "You have: v" + Application.ProductVersion.ToString + " Chromium-U12"
|
||||||
|
|
||||||
BackgroundWorker1.RunWorkerAsync()
|
BackgroundWorker1.RunWorkerAsync()
|
||||||
|
|
||||||
@ -46,6 +46,14 @@ Public Class Einstellungen
|
|||||||
CB_SoftSubSettings.SelectedIndex = 0
|
CB_SoftSubSettings.SelectedIndex = 0
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If Main.LangNameType = 1 Then
|
||||||
|
LangNameType_DD.SelectedIndex = 1
|
||||||
|
ElseIf Main.LangNameType = 2 Then
|
||||||
|
LangNameType_DD.SelectedIndex = 2
|
||||||
|
Else
|
||||||
|
LangNameType_DD.SelectedIndex = 0
|
||||||
|
End If
|
||||||
|
|
||||||
If Main.KodiNaming = True Then
|
If Main.KodiNaming = True Then
|
||||||
KodiSupport.Checked = True
|
KodiSupport.Checked = True
|
||||||
End If
|
End If
|
||||||
@ -119,8 +127,13 @@ Public Class Einstellungen
|
|||||||
If Main.MergeSubs = True Then
|
If Main.MergeSubs = True Then
|
||||||
MergeMP4.Checked = True
|
MergeMP4.Checked = True
|
||||||
End If
|
End If
|
||||||
If Main.HybridMode = True Then
|
|
||||||
HybridMode_CB.Checked = True
|
If Main.HybridMode = True And Main.KeepCache = True Then
|
||||||
|
DD_DLMode.SelectedIndex = 2
|
||||||
|
ElseIf Main.HybridMode = True Then
|
||||||
|
DD_DLMode.SelectedIndex = 1
|
||||||
|
Else
|
||||||
|
DD_DLMode.SelectedIndex = 0
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Main.Funimation_srt = True Then
|
If Main.Funimation_srt = True Then
|
||||||
@ -364,11 +377,7 @@ Public Class Einstellungen
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If Main.KeepCache = True Then
|
|
||||||
rk.SetValue("Keep_Cache", 1, RegistryValueKind.String)
|
|
||||||
Else
|
|
||||||
rk.SetValue("Keep_Cache", 0, RegistryValueKind.String)
|
|
||||||
End If
|
|
||||||
|
|
||||||
If IgnoreS1.Checked = True Then
|
If IgnoreS1.Checked = True Then
|
||||||
|
|
||||||
@ -550,13 +559,28 @@ Public Class Einstellungen
|
|||||||
Main.MergeSubs = False
|
Main.MergeSubs = False
|
||||||
rk.SetValue("MergeSubs", "0", RegistryValueKind.String)
|
rk.SetValue("MergeSubs", "0", RegistryValueKind.String)
|
||||||
End If
|
End If
|
||||||
If HybridMode_CB.Checked = True Then
|
|
||||||
|
|
||||||
|
If DD_DLMode.SelectedIndex = 2 Then
|
||||||
Main.HybridMode = True
|
Main.HybridMode = True
|
||||||
|
Main.KeepCache = True
|
||||||
|
rk.SetValue("HybridMode", "1", RegistryValueKind.String)
|
||||||
|
ElseIf DD_DLMode.SelectedIndex = 1 Then
|
||||||
|
Main.HybridMode = True
|
||||||
|
Main.KeepCache = False
|
||||||
rk.SetValue("HybridMode", "1", RegistryValueKind.String)
|
rk.SetValue("HybridMode", "1", RegistryValueKind.String)
|
||||||
Else
|
Else
|
||||||
Main.HybridMode = False
|
Main.HybridMode = False
|
||||||
|
Main.KeepCache = False
|
||||||
rk.SetValue("HybridMode", "0", RegistryValueKind.String)
|
rk.SetValue("HybridMode", "0", RegistryValueKind.String)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If Main.KeepCache = True Then
|
||||||
|
rk.SetValue("Keep_Cache", 1, RegistryValueKind.String)
|
||||||
|
Else
|
||||||
|
rk.SetValue("Keep_Cache", 0, RegistryValueKind.String)
|
||||||
|
End If
|
||||||
|
|
||||||
#Region "funimation"
|
#Region "funimation"
|
||||||
|
|
||||||
|
|
||||||
@ -749,6 +773,19 @@ Public Class Einstellungen
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If LangNameType_DD.SelectedIndex = 1 Then
|
||||||
|
Main.LangNameType = 1
|
||||||
|
rk.SetValue("LangNameType", "1", RegistryValueKind.String)
|
||||||
|
ElseIf LangNameType_DD.SelectedIndex = 2 Then
|
||||||
|
Main.LangNameType = 2
|
||||||
|
rk.SetValue("LangNameType", "2", RegistryValueKind.String)
|
||||||
|
Else
|
||||||
|
Main.LangNameType = 0
|
||||||
|
rk.SetValue("LangNameType", "0", RegistryValueKind.String)
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Me.Close()
|
Me.Close()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@ -791,7 +828,7 @@ Public Class Einstellungen
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
Private Sub ComboBox1_DrawItem(sender As Object, e As DrawItemEventArgs) Handles ComboBox1.DrawItem, CB_Fun_HardSubs.DrawItem, Fun_Dub_Over.DrawItem, CR_Filename.DrawItem
|
Private Sub ComboBox1_DrawItem(sender As Object, e As DrawItemEventArgs) Handles ComboBox1.DrawItem, CB_Fun_HardSubs.DrawItem, Fun_Dub_Over.DrawItem
|
||||||
Dim CB As ComboBox = CType(sender, ComboBox)
|
Dim CB As ComboBox = CType(sender, ComboBox)
|
||||||
CB.BackColor = Color.White
|
CB.BackColor = Color.White
|
||||||
If e.Index >= 0 Then
|
If e.Index >= 0 Then
|
||||||
@ -820,12 +857,12 @@ Public Class Einstellungen
|
|||||||
A360p.Checked = True
|
A360p.Checked = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
ElseIf HybridMode_CB.Checked = True Then
|
'ElseIf HybridMode_CB.Checked = True Then
|
||||||
If AAuto.Checked = True Then
|
' If AAuto.Checked = True Then
|
||||||
MsgBox("Resolution '[Auto]' and 'Hybride Mode' does not work together", MsgBoxStyle.Information)
|
' MsgBox("Resolution '[Auto]' and 'Hybride Mode' does not work together", MsgBoxStyle.Information)
|
||||||
AAuto.Checked = False
|
' AAuto.Checked = False
|
||||||
A1080p.Checked = True
|
' A1080p.Checked = True
|
||||||
End If
|
' End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@ -911,6 +948,7 @@ Public Class Einstellungen
|
|||||||
GroupBox1.ForeColor = color
|
GroupBox1.ForeColor = color
|
||||||
GroupBox2.ForeColor = color
|
GroupBox2.ForeColor = color
|
||||||
GroupBox3.ForeColor = color
|
GroupBox3.ForeColor = color
|
||||||
|
GroupBox4.ForeColor = color
|
||||||
GroupBox5.ForeColor = color
|
GroupBox5.ForeColor = color
|
||||||
GroupBox6.ForeColor = color
|
GroupBox6.ForeColor = color
|
||||||
GroupBox7.ForeColor = color
|
GroupBox7.ForeColor = color
|
||||||
@ -922,6 +960,9 @@ Public Class Einstellungen
|
|||||||
GroupBox13.ForeColor = color
|
GroupBox13.ForeColor = color
|
||||||
GroupBox14.ForeColor = color
|
GroupBox14.ForeColor = color
|
||||||
GroupBox15.ForeColor = color
|
GroupBox15.ForeColor = color
|
||||||
|
GroupBox16.ForeColor = color
|
||||||
|
GroupBox17.ForeColor = color
|
||||||
|
GroupBox18.ForeColor = color
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
@ -1150,21 +1191,21 @@ Public Class Einstellungen
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
Private Sub HybridMode_CB_Click(sender As Object, e As EventArgs) Handles HybridMode_CB.Click
|
'Private Sub HybridMode_CB_Click(sender As Object, e As EventArgs)
|
||||||
If HybridMode_CB.Checked = True Then
|
' If HybridMode_CB.Checked = True Then
|
||||||
|
|
||||||
If MessageBox.Show("Should the cached data be kept?" + vbNewLine + "Press 'No' to free the space after downloading.", "Keep cached files?", MessageBoxButtons.YesNo) = DialogResult.Yes Then
|
' If MessageBox.Show("Should the cached data be kept?" + vbNewLine + "Press 'No' to free the space after downloading.", "Keep cached files?", MessageBoxButtons.YesNo) = DialogResult.Yes Then
|
||||||
Main.KeepCache = True
|
' Main.KeepCache = True
|
||||||
Else
|
' Else
|
||||||
Main.KeepCache = False
|
' Main.KeepCache = False
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
If AAuto.Checked = True Then
|
' If AAuto.Checked = True Then
|
||||||
MsgBox("Resolution '[Auto]' and 'Hybride Mode' does not work together", MsgBoxStyle.Information)
|
' MsgBox("Resolution '[Auto]' and 'Hybride Mode' does not work together", MsgBoxStyle.Information)
|
||||||
HybridMode_CB.Checked = False
|
' HybridMode_CB.Checked = False
|
||||||
End If
|
' End If
|
||||||
End If
|
' End If
|
||||||
End Sub
|
'End Sub
|
||||||
|
|
||||||
Private Sub MetroLink1_Click(sender As Object, e As EventArgs)
|
Private Sub MetroLink1_Click(sender As Object, e As EventArgs)
|
||||||
Process.Start("https://github.com/hama3254/Crunchyroll-Downloader-v3.0/discussions/276")
|
Process.Start("https://github.com/hama3254/Crunchyroll-Downloader-v3.0/discussions/276")
|
||||||
|
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