Skip to content

Commit 93ea2a5

Browse files
committed
2024.6.6.0
YT VideoOptionsForm: file path is cleared when the cancel button is clicked (browse button); remove the context menu when the right clicking on browse button; add 'ButtonRC' class SCrawler API.OnlyFans: add check config to the SiteSettings; update config; add 'Keydb_Api' property; reset 'LastDateUpdated' when rules change; add support 'prefix/suffix' and 'start/end' to support other rules formats DownloadFeedForm: update 'BTT_CURR_SESSION_SET_Click' function TDownloader: update 'FilesLoadLastSession' function
1 parent 2ae8c3a commit 93ea2a5

16 files changed

Lines changed: 144 additions & 39 deletions

File tree

Changelog.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# 2024.6.6.0
2+
3+
*2024-06-06*
4+
5+
**ATTENTION!**
6+
1. **To support downloading of DRM protected videos (OnlyFans), please update OF-Scraper to version [3.10](https://github.com/datawhores/OF-Scraper/releases/tag/3.10) (download `zip`, not `exe`).**
7+
2. **If there is a `OFScraperConfigPattern.json` file in the SCrawler settings folder, replace the text of the file with [this text](https://github.com/AAndyProgram/SCrawler/blob/main/SCrawler/API/OnlyFans/OFScraperConfigPattern.json).**
8+
3. **Set the value to `Dynamic rules` (in the site settings) = `https://raw.githubusercontent.com/Growik/onlyfans-dynamic-rules/main/rules.json`.**
9+
10+
- Added
11+
- OnlyFans: new OF-Scraper option (`keydb_api`)
12+
- Minor improvements
13+
- Fixed
14+
- OnlyFans: **data is not downloading**
15+
- Minor bugs
16+
117
# 2024.6.4.0
218

319
*2024-06-04*
988 Bytes
Loading
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
' Copyright (C) Andy https://github.com/AAndyProgram
2+
' This program is free software: you can redistribute it and/or modify
3+
' it under the terms of the GNU General Public License as published by
4+
' the Free Software Foundation, either version 3 of the License, or
5+
' (at your option) any later version.
6+
'
7+
' This program is distributed in the hope that it will be useful,
8+
' but WITHOUT ANY WARRANTY
9+
Namespace API.YouTube.Controls
10+
Public Class ButtonRC : Inherits Button
11+
Private Const WM_CONTEXTMENU As Integer = 123 '&H7B
12+
Private Const WM_CANCELMODE As Integer = 31 '&H1F
13+
Private Const WM_INITMENUPOPUP As Integer = 279 '&H117
14+
Private Const SMTO_NOTIMEOUTIFNOTHUNG As Integer = 8
15+
Protected Overrides Sub WndProc(ByRef m As Message)
16+
If m.Msg = WM_CONTEXTMENU Or m.Msg = WM_CANCELMODE Or m.Msg = WM_INITMENUPOPUP Or m.Msg = SMTO_NOTIMEOUTIFNOTHUNG Then
17+
m.Result = IntPtr.Zero
18+
Else
19+
MyBase.WndProc(m)
20+
End If
21+
End Sub
22+
End Class
23+
End Namespace

SCrawler.YouTube/Controls/VideoOptionsForm.Designer.vb

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SCrawler.YouTube/Controls/VideoOptionsForm.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ Namespace API.YouTube.Controls
610610
$"Video|{AvailableVideoFormats.Select(Function(vf) $"*.{vf.ToLower}").ListToString(";")}" &
611611
$"|Audio|{AvailableAudioFormats.Select(Function(af) $"*.{af.ToLower}").ListToString(";")}"
612612
f = SFile.SaveAs(f, "Select the destination of the video file",, ext, sPattern, EDP.ReturnValue)
613-
f.Extension = ext
613+
If Not f.IsEmptyString Then f.Extension = ext
614614
End If
615615
#Enable Warning
616616
f = CleanFileName(f)

SCrawler.YouTube/My Project/AssemblyInfo.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ Imports System.Runtime.InteropServices
3232
' by using the '*' as shown below:
3333
' <Assembly: AssemblyVersion("1.0.*")>
3434

35-
<Assembly: AssemblyVersion("2024.6.4.0")>
36-
<Assembly: AssemblyFileVersion("2024.6.4.0")>
35+
<Assembly: AssemblyVersion("2024.6.6.0")>
36+
<Assembly: AssemblyFileVersion("2024.6.6.0")>
3737
<Assembly: NeutralResourcesLanguage("en")>

SCrawler.YouTube/SCrawler.YouTube.vbproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@
115115
<ItemGroup>
116116
<Compile Include="Attributes\GridVisibleAttribute.vb" />
117117
<Compile Include="Base\TableControlsProcessor.vb" />
118+
<Compile Include="Controls\ButtonRC.vb">
119+
<SubType>Component</SubType>
120+
</Compile>
118121
<Compile Include="Controls\ChannelTabsChooserForm.Designer.vb">
119122
<DependentUpon>ChannelTabsChooserForm.vb</DependentUpon>
120123
</Compile>

SCrawler.YouTubeDownloader/My Project/AssemblyInfo.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ Imports System.Runtime.InteropServices
3232
' by using the '*' as shown below:
3333
' <Assembly: AssemblyVersion("1.0.*")>
3434

35-
<Assembly: AssemblyVersion("2024.6.4.0")>
36-
<Assembly: AssemblyFileVersion("2024.6.4.0")>
35+
<Assembly: AssemblyVersion("2024.6.6.0")>
36+
<Assembly: AssemblyFileVersion("2024.6.6.0")>
3737
<Assembly: NeutralResourcesLanguage("en")>

SCrawler/API/OnlyFans/Declarations.vb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,15 @@ Namespace API.OnlyFans
1111
Friend Module Declarations
1212
Friend ReadOnly DateProvider As New ADateTime("O")
1313
Friend ReadOnly RegExPostID As RParams = RParams.DM("(?<=onlyfans\.com/)(\d+)", 0, EDP.ReturnValue)
14+
Friend ReadOnly OFScraperConfigPatternFile As SFile = $"{SettingsFolderName}\OFScraperConfigPattern.json"
15+
Friend Function CheckOFSConfig() As Boolean
16+
If Not OFScraperConfigPatternFile.Exists Then
17+
Dim t$ = Text.Encoding.UTF8.GetString(My.Resources.OFResources.OFScraperConfigPattern)
18+
TextSaver.SaveTextToFile(t, OFScraperConfigPatternFile, True)
19+
Return OFScraperConfigPatternFile.Exists
20+
Else
21+
Return True
22+
End If
23+
End Function
1424
End Module
1525
End Namespace

SCrawler/API/OnlyFans/OFScraperConfigPattern.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,18 @@
3838
},
3939
"advanced_options": {
4040
"code-execution": false,
41-
"dynamic-mode-default": "deviint",
41+
"dynamic-mode-default": "sneaky",
4242
"backend": "aio",
4343
"downloadbars": false,
4444
"cache-mode": "sqlite",
4545
"appendlog": true,
4646
"custom": null,
4747
"sanitize_text": false,
48-
"avatar": true
48+
"avatar": true,
49+
"custom_values": {
50+
"SNEAKY": "https://raw.githubusercontent.com/Growik/onlyfans-dynamic-rules/main/rules.json",
51+
"CDRM": "https://old.cdrm-project.com/wv"
52+
}
4953
},
5054
"responsetype": {
5155
"timeline": "Posts",

0 commit comments

Comments
 (0)