mirror of
https://github.com/AAndyProgram/SCrawler.git
synced 2026-03-16 00:32: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:
@@ -585,12 +585,32 @@ Namespace API.Reddit
|
||||
End If
|
||||
End If
|
||||
If Not added And e.Contains("preview") Then
|
||||
tmpUrl = If(e.ItemF({"preview", "images", eCount, "source", "url"})?.Value, String.Empty)
|
||||
If Not tmpUrl.IsEmptyString Then
|
||||
_TempMediaList.ListAddValue(MediaFromData(UTypes.Picture, tmpUrl, PostID, PostDate, UserID), LNC)
|
||||
_TotalPostsDownloaded += 1
|
||||
added = True
|
||||
End If
|
||||
With e.ItemF({"preview", "images", eCount})
|
||||
If .ListExists Then
|
||||
tmpType = UTypes.Undefined
|
||||
tmpUrl = String.Empty
|
||||
Dim sv$ = .Value({"source"}, "url")
|
||||
If Not sv.IsEmptyString AndAlso sv.Contains(".gif") Then
|
||||
tmpUrl = .Value({"variants", "gif", "source"}, "url")
|
||||
If Not tmpUrl.IsEmptyString Then tmpType = UTypes.GIF
|
||||
End If
|
||||
If tmpUrl.IsEmptyString Then
|
||||
tmpUrl = .Value({"variants", "mp4", "source"}, "url")
|
||||
If Not tmpUrl.IsEmptyString Then tmpType = UTypes.Video
|
||||
End If
|
||||
If tmpUrl.IsEmptyString Then
|
||||
tmpUrl = .Value({"source"}, "url")
|
||||
If Not tmpUrl.IsEmptyString Then tmpType = UTypes.Picture
|
||||
End If
|
||||
If Not tmpUrl.IsEmptyString And Not tmpType = UTypes.Undefined Then
|
||||
Dim m As UserMedia = MediaFromData(tmpType, tmpUrl, PostID, PostDate, UserID)
|
||||
If tmpType = UTypes.Video Then m.File.Extension = "mp4"
|
||||
_TempMediaList.ListAddValue(m, LNC)
|
||||
_TotalPostsDownloaded += 1
|
||||
added = True
|
||||
End If
|
||||
End If
|
||||
End With
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user