mirror of
https://github.com/AAndyProgram/SCrawler.git
synced 2026-11-10 05:35:25 +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:
@@ -13,8 +13,7 @@ Namespace DownloadObjects
|
||||
Friend Class DownloadProgress : Implements IDisposable
|
||||
#Region "Events"
|
||||
Friend Event DownloadDone As NotificationEventHandler
|
||||
Friend Event ProgressMaximumChanged()
|
||||
Friend Event ProgressMaximum0Changed()
|
||||
Friend Event ProgressChanged(ByVal Main As Boolean, ByVal IsMaxValue As Boolean, ByVal IsDone As Boolean)
|
||||
#End Region
|
||||
#Region "Declarations"
|
||||
#Region "Controls"
|
||||
@@ -127,6 +126,8 @@ Namespace DownloadObjects
|
||||
AddHandler .MaximumChanged, AddressOf JobProgress_MaximumChanged
|
||||
AddHandler .Maximum0Changed, AddressOf JobProgress_Maximum0Changed
|
||||
AddHandler .Progress0Changed, AddressOf JobProgress_Progress0Changed
|
||||
AddHandler .ProgressCompleted, AddressOf JobProgress_Done
|
||||
AddHandler .Progress0Completed, AddressOf JobProgress_Done0
|
||||
End With
|
||||
End With
|
||||
|
||||
@@ -190,22 +191,22 @@ Namespace DownloadObjects
|
||||
#End Region
|
||||
#Region "Progress, Jobs count"
|
||||
Private Sub JobProgress_MaximumChanged(ByVal Sender As Object, ByVal e As ProgressEventArgs)
|
||||
RaiseEvent ProgressMaximumChanged()
|
||||
If Not Job.Type = Download.SavedPosts Then RaiseEvent ProgressChanged(True, True, False)
|
||||
End Sub
|
||||
Private Sub JobProgress_Maximum0Changed(ByVal Sender As Object, ByVal e As ProgressEventArgs)
|
||||
RaiseEvent ProgressMaximum0Changed()
|
||||
If Not Job.Type = Download.SavedPosts Then RaiseEvent ProgressChanged(False, True, False)
|
||||
End Sub
|
||||
Private Sub JobProgress_ProgressChanged(ByVal Sender As Object, ByVal e As ProgressEventArgs)
|
||||
If Not Job.Type = Download.SavedPosts Then
|
||||
MainProgress.Value = DirectCast(Sender, MyProgressExt).Value
|
||||
MainProgress.Perform(0)
|
||||
End If
|
||||
If Not Job.Type = Download.SavedPosts Then MainProgress.Perform()
|
||||
End Sub
|
||||
Private Sub JobProgress_Progress0Changed(ByVal Sender As Object, ByVal e As ProgressEventArgs)
|
||||
If Not Job.Type = Download.SavedPosts Then
|
||||
MainProgress.Value0 = DirectCast(Job.Progress, MyProgressExt).Value0
|
||||
MainProgress.Perform0(0)
|
||||
End If
|
||||
If Not Job.Type = Download.SavedPosts Then MainProgress.Perform0()
|
||||
End Sub
|
||||
Private Sub JobProgress_Done(ByVal Sender As Object, ByVal e As ProgressEventArgs)
|
||||
If Not Job.Type = Download.SavedPosts Then RaiseEvent ProgressChanged(True, False, True)
|
||||
End Sub
|
||||
Private Sub JobProgress_Done0(ByVal Sender As Object, ByVal e As ProgressEventArgs)
|
||||
If Not Job.Type = Download.SavedPosts Then RaiseEvent ProgressChanged(False, False, True)
|
||||
End Sub
|
||||
#End Region
|
||||
#Region "IDisposable Support"
|
||||
|
||||
Reference in New Issue
Block a user