feat: SkebetterおよびHentaiPawのRSS生成処理を追加
- Skebetter (漫画・イラスト急上昇) の直接取得と元投稿日時 (Snowflake ID) の反映 - 複数ページつながっている連作漫画を同一記事内で連結表示する機能を追加 - HentaiPaw (エロモフ) の最新同人誌・漫画のRSS生成処理を追加 - CmnUtil.ExportXMLFileAsync に filter24Hours パラメータを追加
This commit is contained in:
1 parent
2f3ac958bf
commit
a0158db108
5 files changed
+1090
-3
No files matched your search
@@ -391,10 +391,11 @@ public class CmnUtil
|
||||
/// <param name="client">画像ダウンロード用 HttpClient</param>
|
||||
/// <param name="addDir">サブディレクトリ</param>
|
||||
/// <param name="embedBase64">画像を Base64 変換するかどうか(Pixiv 以外は false)</param>
|
||||
public static async Task ExportXMLFileAsync(string fileName, SyndicationFeed feed, HttpClient? client = null, string addDir = "", bool embedBase64 = false)
|
||||
/// <param name="filter24Hours">24時間以上前の古い記事を除外するかどうか(デフォルト: true)</param>
|
||||
public static async Task ExportXMLFileAsync(string fileName, SyndicationFeed feed, HttpClient? client = null, string addDir = "", bool embedBase64 = false, bool filter24Hours = true)
|
||||
{
|
||||
// 24時間以上前の古い記事を除外
|
||||
if (feed.Items != null)
|
||||
if (filter24Hours && feed.Items != null)
|
||||
{
|
||||
feed.Items = FilterItemsWithinHours(feed.Items, 24);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using rss_generator.Class.AuraHentai;
|
||||
using rss_generator.Class.Danbooru;
|
||||
using rss_generator.Class.HentaiPaw;
|
||||
using rss_generator.Class.HitomiLa;
|
||||
using rss_generator.Class.MissAV;
|
||||
using rss_generator.Class.MissAV123;
|
||||
@@ -110,6 +111,16 @@ internal static class FlareSolverrFeedManager
|
||||
{
|
||||
LogManager.AddLog($"[エラー] [FlareSolverrFeedManager] spankbang 実行失敗: {ex.Message}");
|
||||
}
|
||||
|
||||
// hentaipaw (エロモフ)
|
||||
try
|
||||
{
|
||||
await hentaipaw.CreateRSSAsync(client, sessionId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogManager.AddLog($"[エラー] [FlareSolverrFeedManager] hentaipaw 実行失敗: {ex.Message}");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user