mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Identify task (#1839)
* Add identify task * Change type naming * Debounce folder select text input * Add generic slice comparison function
This commit is contained in:
@@ -212,6 +212,16 @@ func (c Cache) ListMovieScrapers() []*models.Scraper {
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetScraper returns the scraper matching the provided id.
|
||||
func (c Cache) GetScraper(scraperID string) *models.Scraper {
|
||||
ret := c.findScraper(scraperID)
|
||||
if ret != nil {
|
||||
return ret.Spec
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c Cache) findScraper(scraperID string) *scraper {
|
||||
for _, s := range c.scrapers {
|
||||
if s.ID == scraperID {
|
||||
|
||||
Reference in New Issue
Block a user