fix movie issues

fix issues with movie names
This commit is contained in:
hama3254 2022-05-04 18:04:52 +02:00
parent 9147ce543c
commit c49cbc0be3
11 changed files with 106 additions and 62 deletions

Binary file not shown.

View File

@ -1204,6 +1204,18 @@ Public Class Main
CR_Anime_Name = String.Join(" ", CR_Name_2(0).Split(invalids, StringSplitOptions.RemoveEmptyEntries)).TrimEnd("."c).Replace(Chr(34), "").Replace("\", "").Replace("/", "") 'System.Text.RegularExpressions.Regex.Replace(CR_Name_2(0), "[^\w\\-]", " ")
CR_Anime_Name = RemoveExtraSpaces(CR_Anime_Name)
End If
If CR_Anime_Titel = Nothing Then 'it's a movie??
Dim CR_Name_1 As String() = WebbrowserText.Split(New String() {My.Resources.CR_MovieTop}, System.StringSplitOptions.RemoveEmptyEntries)
Dim CR_Name_2 As String() = CR_Name_1(2).Split(New String() {My.Resources.CR_MovieBT}, System.StringSplitOptions.RemoveEmptyEntries) '(New [Char]() {"-"})
CR_Anime_Titel = String.Join(" ", CR_Name_2(0).Split(invalids, StringSplitOptions.RemoveEmptyEntries)).TrimEnd("."c).Replace(Chr(34), "").Replace("\", "").Replace("/", "") 'System.Text.RegularExpressions.Regex.Replace(CR_Name_2(0), "[^\w\\-]", " ")
CR_Anime_Titel = RemoveExtraSpaces(CR_Anime_Titel)
End If
If Season_Prefix = "[default season prefix]" Then
Else
If CR_Anime_Staffel_int = "0" Then
@ -1212,10 +1224,18 @@ Public Class Main
End If
End If
If Episode_Prefix = "[default episode prefix]" Then
If CR_Anime_Folge_int = Nothing Then
Else
CR_Anime_Folge = CR_Anime_Folge.Replace(CR_Anime_Folge_int, AddLeadingZeros(CR_Anime_Folge_int))
End If
Else
If CR_Anime_Folge_int = Nothing Then
Else
CR_Anime_Folge = Episode_Prefix + AddLeadingZeros(CR_Anime_Folge_int)
End If
End If
If CR_Anime_Titel = Nothing Then
CR_FilenName = CR_Anime_Name
ElseIf CR_NameMethode = 0 Then

View File

@ -178,6 +178,24 @@ Namespace My.Resources
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die &lt;/span&gt; ähnelt.
'''</summary>
Friend ReadOnly Property CR_MovieBT() As String
Get
Return ResourceManager.GetString("CR_MovieBT", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die &lt;span itemprop=&quot;name&quot;&gt; ähnelt.
'''</summary>
Friend ReadOnly Property CR_MovieTop() As String
Get
Return ResourceManager.GetString("CR_MovieTop", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die seasonNumber&quot;:&quot; ähnelt.
'''</summary>

View File

@ -513,4 +513,10 @@ Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,,some ideas on how tem
<data name="main_mini_dark_hover" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\main-mini_dark_hover.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="CR_MovieBT" xml:space="preserve">
<value>&lt;/span&gt;</value>
</data>
<data name="CR_MovieTop" xml:space="preserve">
<value>&lt;span itemprop="name"&gt;</value>
</data>
</root>