From b04e8cdb2eedb53d9c82c84bdef7dd8318390725 Mon Sep 17 00:00:00 2001 From: Michael DiCarlo Date: Wed, 2 Nov 2022 06:11:40 -0400 Subject: [PATCH] Start v2.3.44 + Fix Pixiv new option --- electron/package.json | 2 +- package.json | 2 +- .../pixiv-submission-form/pixiv-submission-form.component.html | 1 + .../pixiv-submission-form/pixiv-submission-form.component.ts | 3 ++- src/app/websites/website-services/pixiv/pixiv.service.ts | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/electron/package.json b/electron/package.json index dbac3c799..7f4f0ecbe 100644 --- a/electron/package.json +++ b/electron/package.json @@ -1,6 +1,6 @@ { "name": "postybirb", - "version": "2.3.43", + "version": "2.3.44", "description": "PostyBirb is an application that helps artists post art and other multimedia to multiple websites more quickly.", "main": "main.js", "scripts": { diff --git a/package.json b/package.json index 2209b4f36..3456fa85d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "postybirb", - "version": "2.3.43", + "version": "2.3.44", "scripts": { "ng": "ng", "compile": "ng build --vendor-chunk=false", diff --git a/src/app/websites/website-services/pixiv/components/pixiv-submission-form/pixiv-submission-form.component.html b/src/app/websites/website-services/pixiv/components/pixiv-submission-form/pixiv-submission-form.component.html index f6e18f211..bf745d99c 100644 --- a/src/app/websites/website-services/pixiv/components/pixiv-submission-form/pixiv-submission-form.component.html +++ b/src/app/websites/website-services/pixiv/components/pixiv-submission-form/pixiv-submission-form.component.html @@ -30,6 +30,7 @@
{{ 'Tags' | translate }}
+ {{'AI Generated' | translate}} {{'Allow Community Tags' | translate}} {{'Original Work' | translate}} {{'Sexual Content' | translate}} diff --git a/src/app/websites/website-services/pixiv/components/pixiv-submission-form/pixiv-submission-form.component.ts b/src/app/websites/website-services/pixiv/components/pixiv-submission-form/pixiv-submission-form.component.ts index ecdbc5415..73b49c6b6 100644 --- a/src/app/websites/website-services/pixiv/components/pixiv-submission-form/pixiv-submission-form.component.ts +++ b/src/app/websites/website-services/pixiv/components/pixiv-submission-form/pixiv-submission-form.component.ts @@ -17,7 +17,8 @@ export class PixivSubmissionForm extends BaseWebsiteSubmissionForm implements O content: [], original: [false], sexual: [false], - sexualTypes: [] + sexualTypes: [], + aiGenerated: [false] }; public tagConfig: TagConfig = { diff --git a/src/app/websites/website-services/pixiv/pixiv.service.ts b/src/app/websites/website-services/pixiv/pixiv.service.ts index 03092d207..101e528f8 100644 --- a/src/app/websites/website-services/pixiv/pixiv.service.ts +++ b/src/app/websites/website-services/pixiv/pixiv.service.ts @@ -11,7 +11,6 @@ import { WebsiteStatus, LoginStatus, SubmissionPostData, PostResult } from '../. import { PixivSubmissionForm } from './components/pixiv-submission-form/pixiv-submission-form.component'; import { HTMLParser } from 'src/app/utils/helpers/html-parser.helper'; import { SubmissionRating } from 'src/app/database/tables/submission.table'; -import { BrowserWindowHelper } from 'src/app/utils/helpers/browser-window.helper'; const ACCEPTED_FILES = ['png', 'jpeg', 'jpg', 'gif']; @@ -114,6 +113,7 @@ export class Pixiv extends BaseWebsiteService { 'quality[]': '', quality_text: '', qropen: '', + ai_type: postData.options.aiGenerated ? '2' : '1', 'files[]': filesToPost.map(f => fileAsFormDataObject(f)), 'file_info[]': filesToPost.map(f => JSON.stringify(f.fileInfo)), };