mirror of
https://github.com/AAndyProgram/SCrawler.git
synced 2026-03-14 15:52:18 +00:00
2023.10.4.0
YT: file name is missing when destination is changed by selecting one of the saved locations; missing files still appear in the list API.UserDataBase: hide 'OperationCanceledException' and 'ObjectDisposedException' API.Reddit: unable to save settings without OAuth data TDownloader: 'ReconfPool' MainFrame: replace 'DownloadQueue.FormShow' with 'ShowDownloadQueueForm' SettingsHost: add a notification if the user has disabled downloading from the site
This commit is contained in:
@@ -433,6 +433,27 @@ Namespace API.YouTube.Controls
|
||||
End Sub
|
||||
#End Region
|
||||
#Region "Footer"
|
||||
Private _FilePathBeforeItemChange As SFile = Nothing
|
||||
Private Sub TXT_FILE_ActionSelectedItemBeforeChanged(ByVal Sender As Object, ByVal e As EventArgs, ByVal Item As ListViewItem) Handles TXT_FILE.ActionSelectedItemBeforeChanged
|
||||
If Not TXT_FILE.Text.IsEmptyString Then _FilePathBeforeItemChange = TXT_FILE.Text Else _FilePathBeforeItemChange = Nothing
|
||||
End Sub
|
||||
Private Sub TXT_FILE_ActionSelectedItemChanged(ByVal Sender As Object, ByVal e As EventArgs, ByVal Item As ListViewItem) Handles TXT_FILE.ActionSelectedItemChanged
|
||||
Try
|
||||
If Not MyContainer.HasElements Then
|
||||
Dim currentPath As SFile = _FilePathBeforeItemChange
|
||||
Dim newPath As SFile = TXT_FILE.Text.CSFileP
|
||||
If Not currentPath.File.IsEmptyString Then
|
||||
newPath.Name = currentPath.Name
|
||||
newPath.Extension = currentPath.Extension
|
||||
TXT_FILE.Text = newPath
|
||||
End If
|
||||
End If
|
||||
Catch ex As Exception
|
||||
ErrorsDescriber.Execute(EDP.SendToLog, ex, "[API.YouTube.Controls.VideoOptionsForm.ChangeDestinationPath]")
|
||||
Finally
|
||||
_FilePathBeforeItemChange = Nothing
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub BTT_BROWSE_MouseDown(sender As Object, e As MouseEventArgs) Handles BTT_BROWSE.MouseDown
|
||||
Dim f As SFile
|
||||
#Disable Warning BC40000
|
||||
|
||||
@@ -1060,7 +1060,11 @@ Namespace API.YouTube.Objects
|
||||
If fc.Exists(SFO.Path, False) AndAlso SFile.GetFiles(fc, "*.json",, EDP.ReturnValue).Count > 0 Then Parse(Nothing, fc, IsMusic)
|
||||
XMLPopulateData(Me, x)
|
||||
_MediaStateOnLoad = _MediaState
|
||||
_Exists = True
|
||||
If Me.MediaState = UMStates.Downloaded Then
|
||||
_Exists = File.Exists(IIf(ObjectType = YouTubeMediaType.Single, SFO.File, SFO.Path), False)
|
||||
Else
|
||||
_Exists = True
|
||||
End If
|
||||
If If(x(Name_CheckedElements)?.Count, 0) > 0 Then ApplyElementCheckedValue(x(Name_CheckedElements))
|
||||
If ArrayMaxResolution <> -10 Then SetMaxResolution(ArrayMaxResolution)
|
||||
End Using
|
||||
|
||||
Reference in New Issue
Block a user