railwayutil

package
v1.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIBase = "https://sites-api-production.up.railway.app"

Functions

func ExtractPerformer

func ExtractPerformer(name string) string

func ParseDuration

func ParseDuration(s string) int

func ParseFilter

func ParseFilter(studioURL string) string

func RunLiveTest

func RunLiveTest(t *testing.T, s scraper.StudioScraper, studioURL string, limit int)

Types

type APIVideo

type APIVideo struct {
	ID       string `json:"_id"`
	Name     string `json:"name"`
	Site     string `json:"site"`
	Group    int    `json:"group"`
	Video4K  bool   `json:"video4K"`
	Duration string `json:"duration"`
}

type Scraper

type Scraper struct {
	// contains filtered or unexported fields
}

func New

func New(cfg SiteConfig) *Scraper

func (*Scraper) ID

func (s *Scraper) ID() string

func (*Scraper) ListScenes

func (s *Scraper) ListScenes(ctx context.Context, studioURL string, opts scraper.ListOpts) (<-chan scraper.SceneResult, error)

func (*Scraper) MatchesURL

func (s *Scraper) MatchesURL(u string) bool

func (*Scraper) Patterns

func (s *Scraper) Patterns() []string

type SiteConfig

type SiteConfig struct {
	ID       string
	SiteCode string
	Studio   string
	SiteBase string
	Patterns []string
	MatchRe  *regexp.Regexp
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL