Add stash scraper type (#269)

* Add stash scraper type

* Add graphql client to vendor

* Embed stash credentials in URL

* Fill URL from scraped scene

* Nil IDs returned from remote stash

* Nil check
This commit is contained in:
WithoutPants
2019-12-21 11:13:23 +11:00
committed by Leopere
parent e58088b057
commit f52db4f58b
21 changed files with 1526 additions and 52 deletions

View File

@@ -216,9 +216,11 @@ func ScrapeScene(scraperID string, scene models.SceneUpdateInput) (*models.Scrap
return nil, err
}
err = postScrapeScene(ret)
if err != nil {
return nil, err
if ret != nil {
err = postScrapeScene(ret)
if err != nil {
return nil, err
}
}
return ret, nil