Skip to content

Commit

Permalink
Start v2.3.44 + Fix Pixiv new option
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdicarlo committed Nov 2, 2022
1 parent 6021208 commit b04e8cd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postybirb",
"version": "2.3.43",
"version": "2.3.44",
"scripts": {
"ng": "ng",
"compile": "ng build --vendor-chunk=false",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ <h6>{{ 'Tags' | translate }}</h6>

<div formGroupName="options" class="row no-gutters section">
<div class="col-md col-lg col-xl">
<mat-checkbox formControlName="aiGenerated">{{'AI Generated' | translate}}</mat-checkbox>
<mat-checkbox formControlName="communityTags">{{'Allow Community Tags' | translate}}</mat-checkbox>
<mat-checkbox formControlName="original">{{'Original Work' | translate}}</mat-checkbox>
<mat-checkbox formControlName="sexual" *ngIf="formGroup.controls.options.value.restrictSexual === '0'">{{'Sexual Content' | translate}}</mat-checkbox>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export class PixivSubmissionForm extends BaseWebsiteSubmissionForm implements O
content: [],
original: [false],
sexual: [false],
sexualTypes: []
sexualTypes: [],
aiGenerated: [false]
};

public tagConfig: TagConfig = {
Expand Down
2 changes: 1 addition & 1 deletion src/app/websites/website-services/pixiv/pixiv.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];

Expand Down Expand Up @@ -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)),
};
Expand Down

0 comments on commit b04e8cd

Please sign in to comment.