Fixed scanning issue. Updated worker.
This commit is contained in:
@@ -32,9 +32,9 @@ public class DLSiteClientTests
|
||||
var logger = Substitute.For<ILogger<DLSiteClient>>();
|
||||
var client = new DLSiteClient(httpService, logger);
|
||||
|
||||
var result = await client.GetVoiceWorkDetailsAsync(["RJ01230163"], CancellationToken.None);
|
||||
var result = await client.GetVoiceWorkDetailsAsync(["RJ01230163", "RJ01536422"], CancellationToken.None);
|
||||
|
||||
result.Count.ShouldBe(1);
|
||||
result.Count.ShouldBe(2);
|
||||
|
||||
result.ShouldContainKey("RJ01230163");
|
||||
result["RJ01230163"].HasTrial.ShouldBeTrue();
|
||||
@@ -44,6 +44,9 @@ public class DLSiteClientTests
|
||||
result["RJ01230163"].SupportedLanguages.Select(x => x.Language).ShouldContain(Language.English);
|
||||
result["RJ01230163"].DownloadCount.ShouldBe(659);
|
||||
result["RJ01230163"].WishlistCount.ShouldBe(380);
|
||||
|
||||
// Testing this one for empty array of prices
|
||||
result.ShouldContainKey("RJ01536422");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -219,5 +219,94 @@
|
||||
}
|
||||
],
|
||||
"default_point_str": "150"
|
||||
},
|
||||
"RJ01536422": {
|
||||
"site_id": "home",
|
||||
"site_id_touch": "hometouch",
|
||||
"maker_id": "RG36156",
|
||||
"age_category": 1,
|
||||
"affiliate_deny": 0,
|
||||
"dl_count": null,
|
||||
"wishlist_count": 94,
|
||||
"dl_format": 0,
|
||||
"rank": [],
|
||||
"rate_average": null,
|
||||
"rate_average_2dp": null,
|
||||
"rate_average_star": null,
|
||||
"rate_count": null,
|
||||
"rate_count_detail": [],
|
||||
"review_count": 0,
|
||||
"price": null,
|
||||
"price_without_tax": null,
|
||||
"price_str": "0",
|
||||
"default_point_rate": 5,
|
||||
"default_point": 0,
|
||||
"product_point_rate": null,
|
||||
"dlsiteplay_work": false,
|
||||
"is_ana": true,
|
||||
"is_sale": true,
|
||||
"on_sale": 0,
|
||||
"is_discount": false,
|
||||
"is_pointup": false,
|
||||
"gift": [],
|
||||
"is_rental": false,
|
||||
"work_rentals": [],
|
||||
"upgrade_min_price": 110,
|
||||
"down_url": "https:\/\/www.dlsite.com\/maniax\/download\/=\/product_id\/RJ01536422.html",
|
||||
"is_tartget": null,
|
||||
"title_id": null,
|
||||
"title_name": null,
|
||||
"title_name_masked": null,
|
||||
"title_volumn": null,
|
||||
"title_work_count": null,
|
||||
"is_title_completed": false,
|
||||
"bulkbuy_key": null,
|
||||
"bonuses": [],
|
||||
"is_limit_work": false,
|
||||
"is_sold_out": false,
|
||||
"limit_stock": 0,
|
||||
"is_reserve_work": false,
|
||||
"is_reservable": false,
|
||||
"is_timesale": false,
|
||||
"timesale_stock": 0,
|
||||
"is_free": false,
|
||||
"is_oly": false,
|
||||
"is_led": false,
|
||||
"is_noreduction": false,
|
||||
"is_wcc": false,
|
||||
"translation_info": {
|
||||
"is_translation_agree": false,
|
||||
"is_volunteer": false,
|
||||
"is_original": true,
|
||||
"is_parent": false,
|
||||
"is_child": false,
|
||||
"is_translation_bonus_child": false,
|
||||
"original_workno": null,
|
||||
"parent_workno": null,
|
||||
"child_worknos": [],
|
||||
"lang": null,
|
||||
"production_trade_price_rate": 0,
|
||||
"translation_bonus_langs": [],
|
||||
"translation_status_for_translator": []
|
||||
},
|
||||
"work_name": "\u73c8\u7432\u5c4b \u7db4 \/ \u3044\u3064\u3082\u3044\u3064\u3067\u3082\u301cAlone with you\u301c",
|
||||
"work_name_masked": "\u73c8\u7432\u5c4b \u7db4 \/ \u3044\u3064\u3082\u3044\u3064\u3067\u3082\u301cAlone with you\u301c",
|
||||
"work_image": "\/\/img.dlsite.jp\/modpub\/images2\/ana\/doujin\/RJ01537000\/RJ01536422_ana_img_main.jpg",
|
||||
"sales_end_info": null,
|
||||
"voice_pack": null,
|
||||
"regist_date": "2026-01-01 00:00:00",
|
||||
"locale_price": [],
|
||||
"locale_price_str": [],
|
||||
"currency_price": null,
|
||||
"work_type": "SOU",
|
||||
"book_type": null,
|
||||
"discount_calc_type": null,
|
||||
"is_garumani_general": false,
|
||||
"is_pack_work": false,
|
||||
"limited_free_terms": [],
|
||||
"official_price": null,
|
||||
"options": "JPN#SND",
|
||||
"custom_genres": [],
|
||||
"default_point_str": "0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user