mirror of
https://github.com/AAndyProgram/SCrawler.git
synced 2026-03-14 15:52:18 +00:00
Add sites: PornHub, XHamster Add saved xvideos posts downloading PluginProvider: added TaskGroup attribute; added IUserMedia inteface; changed PluginUserMedia to IUserMedia in interface declarations; changed 'User' String to IPluginContentProvider in ISiteSettings sinterface Added update the 'LOG' button at the end of the ProfileSaved download function API.Base: added 'IUserMedia' compatibility for 'UserMedia'; moved 'GetImage' from 'UserPost' to 'ChannelsViewForm'; update constants in UserDataBase; updated UserDataBase to new UserInfo environment. API.Instagram.UserData: fixed date issue API.Reddit.SiteSettings: update user patterns API.Twitter.Declarations: moved provider here from MainFrame UserDataBind: updated to new UserInfo environment ActiveDownloadingProgress: updated form rendering AutoDownloader: added SpecialDelay TDownloader: added 'Suspended' option; updated for TaskGroups CollectionEditorForm: fixed order bug LabelsForm: remove old stuff UserEditorForm: added collection editing MainFrame: improve label selection Add import users Added the ability to create a virtual collection and add a virtual user to a real collection SettingsCLS: improve users loading
53 lines
2.2 KiB
VB.net
53 lines
2.2 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
|
|
Enum Download As Integer
|
|
Main = 0
|
|
SavedPosts = 1
|
|
Channel = 2
|
|
End Enum
|
|
ReadOnly Property Icon As Icon
|
|
ReadOnly Property Image As Image
|
|
ReadOnly Property Site As String
|
|
Property Logger As ILogProvider
|
|
Function GetUserUrl(ByVal User As IPluginContentProvider, ByVal Channel As Boolean) As String
|
|
Function IsMyUser(ByVal UserURL As String) As ExchangeOptions
|
|
Function IsMyImageVideo(ByVal URL As String) As ExchangeOptions
|
|
Function GetSpecialData(ByVal URL As String, ByVal Path As String, ByVal AskForPath As Boolean) As IEnumerable
|
|
Function GetInstance(ByVal What As Download) As IPluginContentProvider
|
|
Function GetUserPostUrl(ByVal User As IPluginContentProvider, ByVal Media As IUserMedia) As String
|
|
#Region "XML Support"
|
|
Sub Load(ByVal XMLValues As IEnumerable(Of KeyValuePair(Of String, String)))
|
|
#End Region
|
|
#Region "Initialization"
|
|
Sub BeginInit()
|
|
Sub EndInit()
|
|
Sub BeginUpdate()
|
|
Sub EndUpdate()
|
|
Sub BeginEdit()
|
|
Sub EndEdit()
|
|
#End Region
|
|
#Region "Site availability"
|
|
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
|
|
Sub Update()
|
|
Sub Reset()
|
|
Sub OpenSettingsForm()
|
|
Sub UserOptions(ByRef Options As Object, ByVal OpenForm As Boolean)
|
|
End Interface
|
|
End Namespace |