mirror of
https://github.com/AAndyProgram/SCrawler.git
synced 2026-03-24 04:32:17 +00:00
UserDataBase: move GLD functions from 'Twitter' Instagram: add 'Reposts' and 'Likes' to the 'Sections' enum OnlyFans: update the regex in 'DynamicRulesEnv'; handling error 502 PornHub: fix videos aren't downloading ThreadsNet: add user name and description extraction TikTok: fix downloading new videos; add downloading 'Stories' and 'Reposts' Twitter: move GLD functions to 'UserDataBase' Xhamster: fix a bug when adding new users; fix incorrect cache location Download groups: add excluded groups MainFrame: fix the 'Feed' tooltip
62 lines
3.1 KiB
VB.net
62 lines
3.1 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
|
|
Imports SCrawler.Plugin.Attributes
|
|
Namespace API.TikTok
|
|
Friend Class UserExchangeOptions : Inherits Base.EditorExchangeOptionsBase
|
|
<PSetting(NameOf(SiteSettings.GetTimeline), NameOf(MySettings))>
|
|
Friend Property GetTimeline As Boolean
|
|
<PSetting(NameOf(SiteSettings.GetStoriesUser), NameOf(MySettings))>
|
|
Friend Property GetStoriesUser As Boolean
|
|
<PSetting(NameOf(SiteSettings.GetReposts), NameOf(MySettings))>
|
|
Friend Property GetReposts As Boolean
|
|
<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
|
|
<PSetting(Address:=SettingAddress.None)> Friend Overrides Property UserName As String
|
|
Private ReadOnly MySettings As SiteSettings
|
|
Friend Sub New(ByVal u As UserData)
|
|
MyBase.New(u)
|
|
_ApplyBase_Name = False
|
|
MySettings = u.HOST.Source
|
|
GetTimeline = u.GetTimeline
|
|
GetStoriesUser = u.GetStoriesUser
|
|
GetReposts = u.GetReposts
|
|
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)
|
|
MyBase.New(s)
|
|
_ApplyBase_Name = False
|
|
MySettings = s
|
|
GetTimeline = s.GetTimeline.Value
|
|
GetStoriesUser = s.GetStoriesUser.Value
|
|
GetReposts = s.GetReposts.Value
|
|
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
|