Files
SCrawler/SCrawler/API/YouTube/UserExchangeOptions.vb
Andy d99243ce46 2023.12.5.0
YT
VideoListForm: add a check of adding a URL if it has already been downloaded ('ValidateContainerURL')
YouTubeMediaContainerBase: add 'GetUrls' and 'GetFiles' functions; make 'Files' protected friend; update 'CreateUrlFile' function

SCrawler
Add downloaded saved posts to the feed
API.ProfileSaved: add token verification for multi-acc
API.SiteSettingsBase: update 'UpdateResponserFile' and 'CLONE_PROPERTIES.filterUC' functions
API.UserDataBase: add a null host check before request a new key; update 'OpenFolder' function (for saved posts)
API.YouTube: add the ability to download YouTube user community feeds
DownloadProgress: add 'KeyClickEventArgs' to download saved posts excluding from feed; add 'FeedFilesChanged' event; update 'Start' function
DownloadSavedPostsForm: add 'FeedFilesChanged' event and handler; update 'Start' function
Feed.FeedMedia: make the class compatible to work with saved posts
StandaloneDownloader.VideoDownloaderForm: add a check of adding a URL if it has already been downloaded ('ValidateContainerURL')
TDownloader: add the 'IsSavedPosts' field to the 'UserMediaD' structure; update 'UserMediaD.New(EContainer)' function (for saved posts); update 'UserMediaD.ToEContainer' function; add 'SessionSavedPosts' property
MainFrame: add 'Alt+A' hotkey to show scheduler; add 'Alt+P' hotkey to show progress form
Hosts.DownloadableMediaHost: add URL file to files list
2023-12-05 12:05:20 +03:00

44 lines
2.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.Attributes
Namespace API.YouTube
Friend Class UserExchangeOptions
<PSetting(Caption:="Download videos")>
Friend Property DownloadVideos As Boolean
<PSetting(Caption:="Download shorts")>
Friend Property DownloadShorts As Boolean
<PSetting(Caption:="Download playlists")>
Friend Property DownloadPlaylists As Boolean
<PSetting(Caption:="Download community images")>
Friend Property DownloadCommunityImages As Boolean
<PSetting(Caption:="Download community videos")>
Friend Property DownloadCommunityVideos As Boolean
<PSetting(Caption:="Use cookies", ToolTip:="Use cookies when downloading data.")>
Friend Property UseCookies As Boolean
<PSetting(Caption:="Channel ID", Address:=SettingAddress.User)>
Friend Property ChannelID As String
Friend Sub New(ByVal u As UserData)
DownloadVideos = u.DownloadYTVideos
DownloadShorts = u.DownloadYTShorts
DownloadPlaylists = u.DownloadYTPlaylists
DownloadCommunityImages = u.DownloadYTCommunityImages
DownloadCommunityVideos = u.DownloadYTCommunityVideos
UseCookies = u.YTUseCookies
ChannelID = u.ChannelID
End Sub
Friend Sub New(ByVal s As SiteSettings)
DownloadVideos = s.DownloadVideos.Value
DownloadShorts = s.DownloadShorts.Value
DownloadPlaylists = s.DownloadPlaylists.Value
DownloadCommunityImages = s.DownloadCommunityImages.Value
DownloadCommunityVideos = s.DownloadCommunityVideos.Value
UseCookies = s.UseCookies.Value
End Sub
End Class
End Namespace