mirror of
https://github.com/AAndyProgram/SCrawler.git
synced 2026-03-15 16:22:17 +00:00
YT YouTubeSettings: add property DefaultVideoFPS VideoOptionsForm, YouTubeMediaContainerBase: add FPS reduction SCrawler API.Instagram: change back aspect ratio determining API.TikTok: add the ability to use a regex to clean the title API.YouTube: add the ability to ignore community errors
44 lines
2.3 KiB
VB.net
44 lines
2.3 KiB
VB.net
' Copyright (C) 2023 Andy https://github.com/AAndyProgram
|
|
' This program is free software: you can redistribute it and/or modify
|
|
' it under the terms of the GNU General Public License as published by
|
|
' the Free Software Foundation, either version 3 of the License, or
|
|
' (at your option) any later version.
|
|
'
|
|
' This program is distributed in the hope that it will be useful,
|
|
' but WITHOUT ANY WARRANTY
|
|
Imports SCrawler.Plugin.Attributes
|
|
Namespace API.TikTok
|
|
Friend Class UserExchangeOptions
|
|
<PSetting(NameOf(SiteSettings.RemoveTagsFromTitle), NameOf(MySettings))>
|
|
Friend Property RemoveTagsFromTitle As Boolean
|
|
<PSetting(NameOf(SiteSettings.TitleUseNative), NameOf(MySettings))>
|
|
Friend Property TitleUseNative As Boolean
|
|
<PSetting(NameOf(SiteSettings.TitleAddVideoID), NameOf(MySettings))>
|
|
Friend Property TitleAddVideoID As Boolean
|
|
<PSetting(NameOf(SiteSettings.TitleUseRegexForTitle), NameOf(MySettings))>
|
|
Friend Property TitleUseRegexForTitle As Boolean
|
|
<PSetting(NameOf(SiteSettings.TitleUseRegexForTitle_Value), NameOf(MySettings))>
|
|
Friend Property TitleUseRegexForTitle_Value As String
|
|
<PSetting(Caption:="Use global regex", ToolTip:="Use the global regex from the site settings to clean the video title")>
|
|
Friend Property TitleUseGlobalRegexOptions As Boolean = True
|
|
Private ReadOnly MySettings As SiteSettings
|
|
Friend Sub New(ByVal u As UserData)
|
|
MySettings = u.HOST.Source
|
|
RemoveTagsFromTitle = u.RemoveTagsFromTitle
|
|
TitleUseNative = u.TitleUseNative
|
|
TitleAddVideoID = u.TitleAddVideoID
|
|
TitleUseRegexForTitle = u.TitleUseRegexForTitle
|
|
TitleUseRegexForTitle_Value = u.TitleUseRegexForTitle_Value
|
|
TitleUseGlobalRegexOptions = u.TitleUseGlobalRegexOptions
|
|
End Sub
|
|
Friend Sub New(ByVal s As SiteSettings)
|
|
MySettings = s
|
|
RemoveTagsFromTitle = s.RemoveTagsFromTitle.Value
|
|
TitleUseNative = s.TitleUseNative.Value
|
|
TitleAddVideoID = s.TitleAddVideoID.Value
|
|
TitleUseRegexForTitle = s.TitleUseRegexForTitle.Value
|
|
TitleUseRegexForTitle_Value = s.TitleUseRegexForTitle_Value.Value
|
|
End Sub
|
|
End Class
|
|
End Namespace
|