mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Fix scene scraping (#3569)
This commit is contained in:
@@ -256,7 +256,6 @@ export const SceneEditPanel: React.FC<IProps> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function onSave(input: InputValues) {
|
async function onSave(input: InputValues) {
|
||||||
console.log("onSave", input);
|
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
try {
|
try {
|
||||||
if (!isNew) {
|
if (!isNew) {
|
||||||
@@ -352,7 +351,17 @@ export const SceneEditPanel: React.FC<IProps> = ({
|
|||||||
) {
|
) {
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
try {
|
try {
|
||||||
const result = await queryScrapeSceneQueryFragment(s, fragment);
|
const input: GQL.ScrapedSceneInput = {
|
||||||
|
date: fragment.date,
|
||||||
|
code: fragment.code,
|
||||||
|
details: fragment.details,
|
||||||
|
director: fragment.director,
|
||||||
|
remote_site_id: fragment.remote_site_id,
|
||||||
|
title: fragment.title,
|
||||||
|
url: fragment.url,
|
||||||
|
};
|
||||||
|
|
||||||
|
const result = await queryScrapeSceneQueryFragment(s, input);
|
||||||
if (!result.data || !result.data.scrapeSingleScene?.length) {
|
if (!result.data || !result.data.scrapeSingleScene?.length) {
|
||||||
Toast.success({
|
Toast.success({
|
||||||
content: "No scenes found",
|
content: "No scenes found",
|
||||||
|
|||||||
Reference in New Issue
Block a user