-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #369 from ddirty830/feat/per-creator-config
feat: Add the ability to define filename formats per creator
- Loading branch information
Showing
12 changed files
with
731 additions
and
595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace OF_DL.Entities | ||
{ | ||
public class FileNameFormatConfig : IFileNameFormatConfig | ||
{ | ||
public string? PaidPostFileNameFormat { get; set; } | ||
public string? PostFileNameFormat { get; set; } | ||
public string? PaidMessageFileNameFormat { get; set; } | ||
public string? MessageFileNameFormat { get; set; } | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using OF_DL.Enumerations; | ||
|
||
namespace OF_DL.Entities | ||
{ | ||
public interface IDownloadConfig | ||
{ | ||
bool DownloadAvatarHeaderPhoto { get; set; } | ||
bool DownloadPaidPosts { get; set; } | ||
bool DownloadPosts { get; set; } | ||
bool DownloadArchived { get; set; } | ||
bool DownloadStreams { get; set; } | ||
bool DownloadStories { get; set; } | ||
bool DownloadHighlights { get; set; } | ||
bool DownloadMessages { get; set; } | ||
bool DownloadPaidMessages { get; set; } | ||
bool DownloadImages { get; set; } | ||
bool DownloadVideos { get; set; } | ||
bool DownloadAudios { get; set; } | ||
|
||
int? Timeout { get; set; } | ||
bool FolderPerPaidPost { get; set; } | ||
bool FolderPerPost { get; set; } | ||
bool FolderPerPaidMessage { get; set; } | ||
bool FolderPerMessage { get; set; } | ||
|
||
bool RenameExistingFilesWhenCustomFormatIsSelected { get; set; } | ||
bool ShowScrapeSize { get; set; } | ||
bool LimitDownloadRate { get; set; } | ||
int DownloadLimitInMbPerSec { get; set; } | ||
string? FFmpegPath { get; set; } | ||
|
||
bool SkipAds { get; set; } | ||
|
||
#region Download Date Configurations | ||
|
||
bool DownloadOnlySpecificDates { get; set; } | ||
|
||
// This enum will define if we want data from before or after the CustomDate. | ||
DownloadDateSelection DownloadDateSelection { get; set; } | ||
|
||
// This is the specific date used in combination with the above enum. | ||
DateTime? CustomDate { get; set; } | ||
#endregion | ||
|
||
bool DownloadPostsIncrementally { get; set; } | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace OF_DL.Entities | ||
{ | ||
public interface IFileNameFormatConfig | ||
{ | ||
string? PaidPostFileNameFormat { get; set; } | ||
string? PostFileNameFormat { get; set; } | ||
string? PaidMessageFileNameFormat { get; set; } | ||
string? MessageFileNameFormat { get; set; } | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace OF_DL.Entities | ||
{ | ||
[AttributeUsage(AttributeTargets.Property)] | ||
internal class ToggleableConfigAttribute : Attribute | ||
{ | ||
} | ||
|
||
} |
Oops, something went wrong.