mirror of
https://github.com/AAndyProgram/SCrawler.git
synced 2026-03-14 15:52:18 +00:00
YT YouTubeSettings: add 'DefaultVideoHighlightFPS_H' and 'DefaultVideoHighlightFPS_L' properties VideoOption: highlight frame rates higher/lower than this value SCrawler SiteSettingsBase: add 'UserAgentDefault' property API.Facebook, API.Instagram, API.Mastodon, API.OnlyFans, API.ThreadsNet, API.Twitter: add categories API.Instagram.SiteSettings: add 'DownDetector' validation; remove wrong header API.Instagram.UserData: fix incorrect definition of pinned posts; add 'DefaultParser_Pinned' and 'DefaultParser_SkipPost' func (for Threads) API.Threads: fix pinned posts processing API.Reddit: add 429 bypass; change the naming method of video files (hosted on Reddit) to the 'YYYYMMDD_HHMMSS' pattern; add 'UserAgent' property API.RedGifs: hide credential controls API.Twitter: add 'Likes' downloading; change domain from twitter.com to x.com; API.OnlyFans: set '_AllowUserAgentUpdate' to false SiteEditorForm: group options by category GroupListForm: enable 'OK' if it is filter DownloadGroup: add 'FilterShowAllUsers' property PropertyValueHost: add 'Category' property MainFrame: the 'ALL' filter isn't unchecked when loading a filter from a saved one Update user paths when global paths change Scheduler: add the ability to clone the scheduler PluginProvider PropertyOption attribute: set category name when `IsAuth = True` ISiteSettings: add 'UserAgentDefault' property
62 lines
2.6 KiB
VB.net
62 lines
2.6 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 System.Drawing
|
|
Namespace Plugin
|
|
Public Interface ISiteSettings : Inherits IDisposable
|
|
Enum Download As Integer
|
|
Main = 0
|
|
SavedPosts = 1
|
|
SingleObject = 2
|
|
End Enum
|
|
ReadOnly Property Icon As Icon
|
|
ReadOnly Property Image As Image
|
|
ReadOnly Property Site As String
|
|
Property CMDEncoding As String
|
|
Property EnvironmentPrograms As IEnumerable(Of String)
|
|
Property UserAgentDefault As String
|
|
Sub EnvironmentProgramsUpdated()
|
|
Property AccountName As String
|
|
Property Temporary As Boolean
|
|
Property DefaultInstance As ISiteSettings
|
|
ReadOnly Property SubscriptionsAllowed As Boolean
|
|
Property Logger As ILogProvider
|
|
Function GetUserUrl(ByVal User As IPluginContentProvider) As String
|
|
Function IsMyUser(ByVal UserURL As String) As ExchangeOptions
|
|
Function IsMyImageVideo(ByVal URL As String) As ExchangeOptions
|
|
Function GetInstance(ByVal What As Download) As IPluginContentProvider
|
|
Function GetSingleMediaInstance(ByVal URL As String, ByVal OutputFile As String) As IDownloadableMedia
|
|
Function GetUserPostUrl(ByVal User As IPluginContentProvider, ByVal Media As IUserMedia) As String
|
|
#Region "Initialization"
|
|
Sub BeginInit()
|
|
Sub EndInit()
|
|
Sub BeginUpdate()
|
|
Sub EndUpdate()
|
|
Sub BeginEdit()
|
|
Sub EndEdit()
|
|
#End Region
|
|
#Region "Site availability"
|
|
Property AvailableText As String
|
|
Function Available(ByVal What As Download, ByVal Silent As Boolean) As Boolean
|
|
Function ReadyToDownload(ByVal What As Download) As Boolean
|
|
#End Region
|
|
#Region "Downloading"
|
|
Sub DownloadStarted(ByVal What As Download)
|
|
Sub BeforeStartDownload(ByVal User As Object, ByVal What As Download)
|
|
Sub AfterDownload(ByVal User As Object, ByVal What As Download)
|
|
Sub DownloadDone(ByVal What As Download)
|
|
#End Region
|
|
Function Clone(ByVal Full As Boolean) As ISiteSettings
|
|
Sub Delete()
|
|
Overloads Sub Update()
|
|
Overloads Sub Update(ByVal Source As ISiteSettings)
|
|
Sub Reset()
|
|
Sub OpenSettingsForm()
|
|
Sub UserOptions(ByRef Options As Object, ByVal OpenForm As Boolean)
|
|
End Interface
|
|
End Namespace |