2022-12-29 11:45:55 +01:00
|
|
|
|
Public Class CRD_Classes
|
|
|
|
|
|
2023-02-21 14:17:59 +01:00
|
|
|
|
Public Enum DownloadScopeEnum
|
|
|
|
|
OldDefault = 0
|
|
|
|
|
MergeAudio = 1
|
|
|
|
|
SubsOnly = 2
|
|
|
|
|
AudioOnly = 3
|
|
|
|
|
End Enum
|
|
|
|
|
|
2023-09-10 16:28:23 +02:00
|
|
|
|
Public Enum ConvertSubsEnum
|
|
|
|
|
DisplayText = 0
|
|
|
|
|
MP4CC_ISO_639_2 = 1
|
|
|
|
|
Both = 2
|
|
|
|
|
End Enum
|
2023-02-21 14:17:59 +01:00
|
|
|
|
|
2022-12-29 11:45:55 +01:00
|
|
|
|
End Class
|
|
|
|
|
|
|
|
|
|
#Region "funimation"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Public Class FunimationOverview
|
|
|
|
|
Public ID As String
|
|
|
|
|
Public Title As String
|
|
|
|
|
Public Slug As String
|
|
|
|
|
Public Sub New(ByVal Slug As String, ByVal ID As String, ByVal Title As String)
|
|
|
|
|
Me.ID = ID
|
|
|
|
|
Me.Title = Title
|
|
|
|
|
Me.Slug = Slug
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
Public Overrides Function ToString() As String
|
|
|
|
|
Return String.Format("{0}, {1}, {2}", Me.Slug, Me.ID, Me.Title)
|
|
|
|
|
End Function
|
|
|
|
|
End Class
|
|
|
|
|
|
|
|
|
|
Public Class FunimationSubs
|
|
|
|
|
Public LangugageCode As String
|
|
|
|
|
Public Url As String
|
|
|
|
|
Public Format As String
|
|
|
|
|
Public Sub New(ByVal LangugageCode As String, ByVal Format As String, ByVal Url As String)
|
|
|
|
|
Me.Url = Url
|
|
|
|
|
Me.LangugageCode = LangugageCode
|
|
|
|
|
Me.Format = Format
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
Public Overrides Function ToString() As String
|
|
|
|
|
Return String.Format("{0}, {1}, {2}", Me.LangugageCode, Me.Format, Me.Url)
|
|
|
|
|
End Function
|
|
|
|
|
End Class
|
|
|
|
|
|
|
|
|
|
Public Class FunimationStream
|
|
|
|
|
Public audioLanguage As String
|
|
|
|
|
Public Url As String
|
|
|
|
|
Public version As String
|
|
|
|
|
Public Primary As Boolean
|
|
|
|
|
Public Sub New(ByVal audioLanguage As String, ByVal version As String, ByVal Url As String, ByVal Primary As Boolean)
|
|
|
|
|
Me.Primary = Primary
|
|
|
|
|
Me.Url = Url
|
|
|
|
|
Me.audioLanguage = audioLanguage
|
|
|
|
|
Me.version = version
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
Public Overrides Function ToString() As String
|
|
|
|
|
Return String.Format("{0}, {1}, {2}", Me.audioLanguage, Me.version, Me.Url)
|
|
|
|
|
End Function
|
|
|
|
|
End Class
|
|
|
|
|
#End Region
|
|
|
|
|
#Region "CR"
|
|
|
|
|
Public Class CR_Beta_Stream
|
|
|
|
|
'Public audioLanguage As String
|
|
|
|
|
Public Url As String
|
|
|
|
|
Public subLang As String
|
|
|
|
|
Public Format As String
|
|
|
|
|
'ByVal audioLanguage As String,
|
|
|
|
|
Public Sub New(ByVal subLang As String, ByVal Format As String, ByVal Url As String)
|
|
|
|
|
Me.subLang = subLang
|
2023-01-13 14:05:30 +01:00
|
|
|
|
Me.Url = Url.Replace("&", "&").Replace("/u0026", "&").Replace("\u002F", "/").Replace("\u0026", "&")
|
2022-12-29 11:45:55 +01:00
|
|
|
|
Me.Format = Format
|
|
|
|
|
End Sub
|
|
|
|
|
'Me.audioLanguage,
|
|
|
|
|
Public Overrides Function ToString() As String
|
|
|
|
|
Return String.Format("{0}, {1}, {2}", Me.subLang, Me.Format, Me.Url)
|
|
|
|
|
End Function
|
|
|
|
|
|
2023-01-01 16:34:18 +01:00
|
|
|
|
End Class
|
|
|
|
|
|
2023-12-15 19:05:33 +01:00
|
|
|
|
Public Class CR_MediaVersion
|
|
|
|
|
|
|
|
|
|
Public AudioLang As String
|
|
|
|
|
Public media_guid As String
|
|
|
|
|
|
|
|
|
|
Public Sub New(ByVal AudioLang As String, ByVal media_guid As String)
|
|
|
|
|
Me.AudioLang = AudioLang
|
|
|
|
|
Me.media_guid = media_guid
|
|
|
|
|
End Sub
|
|
|
|
|
'Me.audioLanguage,
|
|
|
|
|
Public Overrides Function ToString() As String
|
|
|
|
|
Return String.Format("{0}, {1}", Me.AudioLang, Me.media_guid)
|
|
|
|
|
End Function
|
|
|
|
|
|
|
|
|
|
End Class
|
|
|
|
|
|
2023-01-01 16:34:18 +01:00
|
|
|
|
Public Class CR_Subtiles
|
|
|
|
|
Public Url As String
|
|
|
|
|
Public SubLangValue As String
|
|
|
|
|
Public SubLangName As String
|
|
|
|
|
Public DefaultSub As Boolean
|
|
|
|
|
Public Index As String
|
|
|
|
|
Public Sub New(ByVal SubLangValue As String, ByVal SubLangName As String, ByVal Url As String, ByVal Index As String, ByVal DefaultSub As Boolean)
|
|
|
|
|
Me.SubLangValue = SubLangValue
|
|
|
|
|
Me.SubLangName = SubLangName
|
|
|
|
|
Me.Url = Url
|
|
|
|
|
Me.Index = Index
|
|
|
|
|
Me.DefaultSub = DefaultSub
|
|
|
|
|
End Sub
|
|
|
|
|
Public Overrides Function ToString() As String
|
|
|
|
|
Return String.Format("{0}, {1}, {2}", Me.SubLangValue, Me.SubLangName, Me.Url, Me.Index, Me.DefaultSub.ToString)
|
|
|
|
|
End Function
|
|
|
|
|
|
2022-12-29 11:45:55 +01:00
|
|
|
|
End Class
|
|
|
|
|
Public Class UrlJson
|
|
|
|
|
|
|
|
|
|
Public Url As String
|
|
|
|
|
Public Content As String
|
|
|
|
|
Public Sub New(ByVal Url As String, ByVal Content As String)
|
|
|
|
|
Me.Url = Url
|
|
|
|
|
Me.Content = Content
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
Public Overrides Function ToString() As String
|
|
|
|
|
Return String.Format("{0}, {1}", Me.Url, Me.Content)
|
|
|
|
|
End Function
|
|
|
|
|
End Class
|
|
|
|
|
|
2023-01-21 11:21:39 +01:00
|
|
|
|
Public Class CR_Seasons
|
|
|
|
|
|
2024-01-06 14:35:22 +01:00
|
|
|
|
Public Season As String
|
2023-01-21 11:21:39 +01:00
|
|
|
|
Public guid As String
|
|
|
|
|
Public audio_locale As String
|
|
|
|
|
Public Auth As String
|
2024-01-06 14:35:22 +01:00
|
|
|
|
Public Sub New(ByVal guid As String, ByVal audio_locale As String, ByVal Auth As String, ByVal Season As String)
|
|
|
|
|
Me.Season = Season
|
2023-01-21 11:21:39 +01:00
|
|
|
|
Me.guid = guid
|
|
|
|
|
Me.audio_locale = audio_locale
|
|
|
|
|
Me.Auth = Auth
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
Public Overrides Function ToString() As String
|
2024-01-06 14:35:22 +01:00
|
|
|
|
Return String.Format("{0}, {1}", Me.guid, Me.audio_locale, Me.Season)
|
2023-01-21 11:21:39 +01:00
|
|
|
|
End Function
|
|
|
|
|
End Class
|
|
|
|
|
|
2022-12-29 11:45:55 +01:00
|
|
|
|
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Public Class ServerResponse
|
|
|
|
|
|
|
|
|
|
Public Type As String
|
|
|
|
|
Public Content As String
|
|
|
|
|
Public Sub New(ByVal Content As String, ByVal Type As String)
|
|
|
|
|
Me.Content = Content
|
|
|
|
|
Me.Type = Type
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
Public Overrides Function ToString() As String
|
|
|
|
|
Return String.Format("{0}, {1}", Me.Content, Me.Type)
|
|
|
|
|
End Function
|
|
|
|
|
End Class
|
|
|
|
|
|
2023-02-16 20:56:58 +01:00
|
|
|
|
|
2022-12-29 11:45:55 +01:00
|
|
|
|
Public Class NameValuePair
|
|
|
|
|
|
2023-09-10 16:28:23 +02:00
|
|
|
|
Public DisplayText As String
|
|
|
|
|
Public MP4CC As String
|
2022-12-29 11:45:55 +01:00
|
|
|
|
Public CR_Value As String
|
|
|
|
|
Public FM_Value As String
|
2023-09-10 16:28:23 +02:00
|
|
|
|
Public Sub New(ByVal DisplayText As String, ByVal MP4CC As String, ByVal CR_Value As String, ByVal FM_Value As String)
|
|
|
|
|
Me.MP4CC = MP4CC
|
|
|
|
|
Me.DisplayText = DisplayText
|
2022-12-29 11:45:55 +01:00
|
|
|
|
Me.CR_Value = CR_Value
|
|
|
|
|
Me.FM_Value = FM_Value
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
Public Overrides Function ToString() As String
|
2023-09-10 16:28:23 +02:00
|
|
|
|
Return String.Format("{0}, {1}", Me.DisplayText, Me.MP4CC, Me.CR_Value, Me.FM_Value)
|
2022-12-29 11:45:55 +01:00
|
|
|
|
End Function
|
|
|
|
|
End Class
|