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

@@ -56,3 +56,14 @@ func (s Scene) GetTitle() string {
return filepath.Base(s.Path)
}
type SceneFileType struct {
Size *string `graphql:"size" json:"size"`
Duration *float64 `graphql:"duration" json:"duration"`
VideoCodec *string `graphql:"video_codec" json:"video_codec"`
AudioCodec *string `graphql:"audio_codec" json:"audio_codec"`
Width *int `graphql:"width" json:"width"`
Height *int `graphql:"height" json:"height"`
Framerate *float64 `graphql:"framerate" json:"framerate"`
Bitrate *int `graphql:"bitrate" json:"bitrate"`
}