javlibrary

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedLanguages = []string{"en", "ja", "cn", "tw"}

SupportedLanguages lists the language codes supported by JavLibrary. en = English, ja = Japanese, cn = Chinese (Simplified), tw = Chinese (Traditional)

Functions

This section is empty.

Types

type Scraper

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

Scraper implements the models.Scraper interface for JavLibrary

func New

func New(cfg *config.JavLibraryConfig, proxyConfig *config.ProxyConfig, globalUserAgent ...string) (*Scraper, error)

New creates a new JavLibrary scraper. globalUserAgent is optional for backward compatibility with existing callers.

func (*Scraper) GetURL

func (s *Scraper) GetURL(id string) (string, error)

GetURL returns the search URL for a given ID

func (*Scraper) IsEnabled

func (s *Scraper) IsEnabled() bool

IsEnabled returns whether the scraper is enabled

func (*Scraper) Name

func (s *Scraper) Name() string

Name returns the scraper name

func (*Scraper) ResolveDownloadProxyForHost

func (s *Scraper) ResolveDownloadProxyForHost(host string) (*config.ProxyConfig, *config.ProxyConfig, bool)

ResolveDownloadProxyForHost declares JavLibrary-owned media hosts for downloader proxy routing.

func (*Scraper) Search

func (s *Scraper) Search(id string) (*models.ScraperResult, error)

Search searches for a movie by ID

Jump to

Keyboard shortcuts

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