mirror of
https://github.com/AAndyProgram/SCrawler.git
synced 2026-03-14 15:52:18 +00:00
2023.6.19.0
YT.Progress: make the playlists parsing progress more informative; change form display method YT.YouTubeMediaContainerBase: fix sort algo YT.Tray: add 'Add' button; add 'Ctrl+Click' on tray icon to add download YT.Settings: add setting 'Download on click in tray: show form' LPSG: some files didn't download (encoding) Twitter: hide cache deletion errors Mastogon: fixed bug in 'ReparseMissing' function Reddit: downloaded gifs are static XHamster: videos are not downloading or downloading incorrectly Progress: fix bugs; minor improvements
This commit is contained in:
@@ -82,7 +82,6 @@ Namespace API.YouTube.Controls
|
||||
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
||||
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
|
||||
Me.Text = "Parsing progress"
|
||||
Me.TopMost = True
|
||||
TP_MAIN.ResumeLayout(False)
|
||||
TP_MAIN.PerformLayout()
|
||||
Me.ResumeLayout(False)
|
||||
|
||||
@@ -17,9 +17,27 @@ Namespace API.YouTube.Controls
|
||||
Return TokenSource.Token
|
||||
End Get
|
||||
End Property
|
||||
Public Sub New()
|
||||
Private ReadOnly CountMax As Integer
|
||||
Private CountCurrent As Integer = 1
|
||||
Friend Sub NextPlaylist()
|
||||
CountCurrent += 1
|
||||
MyProgress.InformationTemporary(True) = InfoStr
|
||||
MyProgress.Information = InfoStr
|
||||
End Sub
|
||||
Private ReadOnly Property InfoStr As String
|
||||
Get
|
||||
Const MainMsg$ = "Data parsing in progress"
|
||||
If CountMax > 1 Then
|
||||
Return $"{MainMsg} [{CountCurrent - 1}/{CountMax}]"
|
||||
Else
|
||||
Return MainMsg
|
||||
End If
|
||||
End Get
|
||||
End Property
|
||||
Public Sub New(Optional ByVal _Count As Integer = 1)
|
||||
InitializeComponent()
|
||||
MyProgress = New MyProgress(PR_MAIN, LBL_MAIN, "Data parsing in progress") With {.ResetProgressOnMaximumChanges = False}
|
||||
CountMax = _Count
|
||||
MyProgress = New MyProgress(PR_MAIN, LBL_MAIN, InfoStr) With {.ResetProgressOnMaximumChanges = False}
|
||||
TokenSource = New CancellationTokenSource
|
||||
End Sub
|
||||
Public Sub SetInitialValues(ByVal Count As Integer, ByVal Info As String)
|
||||
|
||||
Reference in New Issue
Block a user