mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-07-08 01:32:41 +08:00
Fix authur name filter not works for app api
This commit is contained in:
@@ -60,7 +60,12 @@ impl PixivData {
|
|||||||
/// Read data from [PixivAppIllust].
|
/// Read data from [PixivAppIllust].
|
||||||
pub fn from_app_illust(&mut self, illust: &PixivAppIllust) {
|
pub fn from_app_illust(&mut self, illust: &PixivAppIllust) {
|
||||||
self.title = illust.title().map(|s| s.to_owned());
|
self.title = illust.title().map(|s| s.to_owned());
|
||||||
self.author = illust.user_name().map(|s| s.to_owned());
|
self.author = illust
|
||||||
|
.user_name()
|
||||||
|
.map(|s| match get_helper().author_name_filters() {
|
||||||
|
Some(l) => l.filter(s),
|
||||||
|
None => s.to_owned(),
|
||||||
|
});
|
||||||
self.description = illust.caption().map(|s| s.to_owned());
|
self.description = illust.caption().map(|s| s.to_owned());
|
||||||
let mut tags = Vec::new();
|
let mut tags = Vec::new();
|
||||||
for i in illust.tags() {
|
for i in illust.tags() {
|
||||||
|
|||||||
Reference in New Issue
Block a user