@@ -3,7 +3,6 @@ import { SiteInject } from '../base';
33import { logger } from '@/lib/logger' ;
44import { SankakuApi , type SankakuPool } from './api' ;
55import { SankakuParser } from './parser' ;
6- import { SankakuDownloadConfig } from './downloadConfig' ;
76import { downloadSetting } from '@/lib/store/downloadSetting.svelte' ;
87import { downloader } from '@/lib/downloader' ;
98import { historyDb } from '@/lib/db' ;
@@ -14,6 +13,7 @@ import { ArtworkButton } from '@/lib/components/Button/artworkButton';
1413import { regexp } from '@/lib/regExp' ;
1514import { t } from '@/lib/i18n.svelte' ;
1615import { PostValidState } from '../base/parser' ;
16+ import { BooruDownloadConfig } from '../base/downloadConfig' ;
1717
1818/** @default query */
1919type SelectorMatchStrategy = 'query' | 'match' | 'both' ;
@@ -103,7 +103,7 @@ export class SankakuApp extends SiteInject {
103103 }
104104
105105 protected getSupportedTemplate ( ) {
106- return SankakuDownloadConfig . supportedTemplate ;
106+ return BooruDownloadConfig . supportedTemplate ;
107107 }
108108
109109 static get hostname ( ) : string [ ] {
@@ -140,7 +140,7 @@ export class SankakuApp extends SiteInject {
140140
141141 const mediaMeta = this . parser . buildMeta ( postData , postUrl , tagDetail ) ;
142142
143- const downloadConfig = new SankakuDownloadConfig ( mediaMeta ) . create ( {
143+ const downloadConfig = new BooruDownloadConfig ( mediaMeta ) . create ( {
144144 ...downloadSetting ,
145145 setProgress : ( progress : number ) => {
146146 btn . setProgress ( progress ) ;
@@ -334,7 +334,7 @@ export class SankakuApp extends SiteInject {
334334 downloadArtworkByMeta : async ( meta , signal ) => {
335335 if ( this . parser . isURLExpired ( meta . src ) ) throw new Error ( 'URL is expired.' ) ;
336336
337- const downloadConfig = new SankakuDownloadConfig ( meta ) . create ( {
337+ const downloadConfig = new BooruDownloadConfig ( meta ) . create ( {
338338 ...downloadSetting
339339 } ) ;
340340
0 commit comments