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:
@@ -22,17 +22,8 @@ Imports UMStates = SCrawler.Plugin.UserMediaStates
|
||||
Imports CollectionModes = PersonalUtilities.Functions.XML.Objects.IXMLValuesCollection.Modes
|
||||
Namespace API.YouTube.Objects
|
||||
Public Class ContainerDateComparer : Implements IComparer(Of IYouTubeMediaContainer)
|
||||
Private ReadOnly NullDateValue As New Date
|
||||
Public Function Compare(ByVal x As IYouTubeMediaContainer, ByVal y As IYouTubeMediaContainer) As Integer Implements IComparer(Of IYouTubeMediaContainer).Compare
|
||||
If x.DateDownloaded = NullDateValue And y.DateDownloaded = NullDateValue Then
|
||||
Return x.DateCreated.CompareTo(y.DateCreated) * -1
|
||||
ElseIf x.DateDownloaded = NullDateValue Then
|
||||
Return -1
|
||||
ElseIf y.DateDownloaded = NullDateValue Then
|
||||
Return 1
|
||||
Else
|
||||
Return x.DateDownloaded.CompareTo(y.DateDownloaded) * -1
|
||||
End If
|
||||
Return x.DateCreated.CompareTo(y.DateCreated) * -1
|
||||
End Function
|
||||
End Class
|
||||
Public MustInherit Class YouTubeMediaContainerBase : Implements IYouTubeMediaContainer
|
||||
|
||||
Reference in New Issue
Block a user