From b2e945ba5fc599bf73e21bf2482ca9e07b7578d0 Mon Sep 17 00:00:00 2001 From: hama3254 Date: Mon, 27 Mar 2023 18:19:02 +0200 Subject: [PATCH] added sub filter for season selection added sub filter for season selection --- .vs/Crunchyroll Downloader/v17/.suo | Bin 200192 -> 192000 bytes Crunchyroll Downloader/Anime_Add.vb | 16 ++++++++++++++++ .../My Project/AssemblyInfo.vb | 4 ++-- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.vs/Crunchyroll Downloader/v17/.suo b/.vs/Crunchyroll Downloader/v17/.suo index a8a34d3a04f16fad41ca1b6da96dbe0f15d4750a..80931ef6edc23bd922e97db2feee06891c0a5a74 100644 GIT binary patch delta 8574 zcmeI14OrAwzQ^ZxW_WeP0TGb^0g1>^2PIVUWh7GamCDT23`i&yUqGhJ(D_q7wW+l_ zNBFsBWUP$+-UO6J_}83wY{?AG?&=ec+PJfAr) z|MT)Y=X}r0|DdffYag{)+%IO9!C>$QmpmR19D@;b1%tpeSA6vva*E+}lZ+RggI10o z$2)RAphu-$IH*`Q;`cdeH#*u{$zV7!5?SyBOEPtInBcR6a1aWHgLHsuJV9`y!7ZRa z7yx>MV$cq#G#%jvf(O7@a1)3DeZkEj4)g?lz$K6bhJgOCq`Sf3Fq}u=1~3Y=0pFs~ zPH>aoC|2+}|}GTi}JrMVk!EC>Ugffc9@Qh5f#y&c>JHiAr`;??sF{B1!t=z{tU zXW*F*ZUxOrJf6GYPX?)A3>XIf0Y-y+z>T0imIKI~$AyIbaSb11jw+a07rmPosUx zSX}b^t1H8CxiVB{^#micGC*lg=|sg{O)F~rl~z)~wX~x2VFs!U^^AqTMJot8JQ;|H z13w~`R;_qTz)y=-l-QJhlvdQc%eA7ySJR3g(ki_*YXv&ETr5g(s_^fN<=R^5hV;Kk zD-Kk4J+X8^CBK$dEG=Sz9p1+oJeoYNdxO_fZTFRAQWB7>dZds??(5OxDpAgmY?E4( zxW0rErB#^xyepOK@sMXoYGDbkgs>w#DfHo2vq!y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d%08$e2BmEOz=V258 diff --git a/Crunchyroll Downloader/Anime_Add.vb b/Crunchyroll Downloader/Anime_Add.vb index d91899e..f07ce67 100644 --- a/Crunchyroll Downloader/Anime_Add.vb +++ b/Crunchyroll Downloader/Anime_Add.vb @@ -377,9 +377,13 @@ Public Class Anime_Add Public Sub FillCREpisodes(ByVal EpisodeJson As String) + + EpisodeJson = CleanJSON(EpisodeJson) Main.CR_MassEpisodes.Clear() + Dim audio_locale_filter As String = Nothing + Dim EpisodeJObject As JObject = JObject.Parse(EpisodeJson) Dim EpisodeData As List(Of JToken) = EpisodeJObject.Children().ToList @@ -388,6 +392,15 @@ Public Class Anime_Add Select Case item.Name Case "data" 'each record is inside the entries array For Each Entry As JObject In item.Values + + Dim audio_locale As String = Entry.GetValue("audio_locale").ToString + If audio_locale_filter = Nothing Then + audio_locale_filter = audio_locale + ElseIf CBool(InStr(audio_locale_filter, audio_locale)) = False Then + 'MsgBox(audio_locale + vbNewLine + audio_locale_filter) + Continue For + End If + Dim episode_number As String = Entry.GetValue("episode_number").ToString Dim episode_id As String = Entry.GetValue("id").ToString Dim slug_title As String = Entry.GetValue("slug_title").ToString @@ -395,6 +408,7 @@ Public Class Anime_Add comboBox3.Items.Add("Episode " + episode_number) comboBox4.Items.Add("Episode " + episode_number) Main.CR_MassEpisodes.Add(New CR_Seasons(episode_id, slug_title, Main.CR_MassSeasons.Item(ComboBox1.SelectedIndex).Auth)) + Next End Select Next @@ -425,6 +439,8 @@ Public Class Anime_Add Dim EpisodeJson As String = Main.CurlAuth(JsonUrl, Loc_CR_Cookies, Main.CR_MassSeasons.Item(ComboBox1.SelectedIndex).Auth) ' + 'My.Computer.Clipboard.SetText(EpisodeJson) + FillCREpisodes(EpisodeJson) diff --git a/Crunchyroll Downloader/My Project/AssemblyInfo.vb b/Crunchyroll Downloader/My Project/AssemblyInfo.vb index 5d4bd76..52fb94f 100644 --- a/Crunchyroll Downloader/My Project/AssemblyInfo.vb +++ b/Crunchyroll Downloader/My Project/AssemblyInfo.vb @@ -32,6 +32,6 @@ Imports System.Runtime.InteropServices ' übernehmen, indem Sie "*" eingeben: ' - - + +