Documentation ¶
Index ¶
- Constants
- func SetConfig(cfg Config)
- type Config
- type Connection
- type Scraper
- func (m *Scraper) ChapterTitles() ([]string, *logging.ScraperError)
- func (m *Scraper) Chapters() ([]manga.Chapter, *logging.ScraperError)
- func (m *Scraper) Download(dl *downloader.Downloader, directoryMapping, downloadType string) []manga.Chapter
- func (m *Scraper) EnforceChapterDuration() bool
- func (m *Scraper) FilterGroups(groups []string) *logging.ScraperError
- func (m *Scraper) GroupNames() ([]string, *logging.ScraperError)
- func (m *Scraper) MangaID() string
- func (m *Scraper) MangaTitle() string
- func (m *Scraper) Registrable() bool
- func (m *Scraper) ScraperName() string
- func (m *Scraper) Search(query string) ([]string, *logging.ScraperError)
- func (m *Scraper) SearchByID(id, title string) *logging.ScraperError
- func (m *Scraper) SelectChapters(titles []string) *logging.ScraperError
- func (m *Scraper) SelectManga(name string) *logging.ScraperError
- func (m *Scraper) SelectNewChapters(chapterIDs []string) ([]manga.Chapter, *logging.ScraperError)
Constants ¶
View Source
const ( SCRAPERNAME = "Mangadex" APIROOT = "https://api.mangadex.org" CHAPTERSPERMIN = 40 // set from API docs ENFORCECHAPTERDURATION = true REGISTRABLE = true )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Connection ¶
type Connection struct { }
func NewConnection ¶
func NewConnection() *Connection
func (*Connection) GetConnectionName ¶
func (c *Connection) GetConnectionName() string
type Scraper ¶
type Scraper struct {
// contains filtered or unexported fields
}
func NewScraper ¶
func NewScraper() *Scraper
func (*Scraper) ChapterTitles ¶
func (m *Scraper) ChapterTitles() ([]string, *logging.ScraperError)
ChapterTitles Returns the full titles of chapters
func (*Scraper) Download ¶
func (m *Scraper) Download(dl *downloader.Downloader, directoryMapping, downloadType string) []manga.Chapter
Download selected chapters. Handles errors itself. Returns array of chapters that succeeded
func (*Scraper) EnforceChapterDuration ¶
func (*Scraper) FilterGroups ¶
func (m *Scraper) FilterGroups(groups []string) *logging.ScraperError
func (*Scraper) GroupNames ¶
func (m *Scraper) GroupNames() ([]string, *logging.ScraperError)
func (*Scraper) MangaTitle ¶
func (*Scraper) Registrable ¶ added in v1.0.2
func (*Scraper) ScraperName ¶
func (*Scraper) Search ¶
func (m *Scraper) Search(query string) ([]string, *logging.ScraperError)
Search for a Manga, will fill searchResults with 0 or more results
func (*Scraper) SearchByID ¶
func (m *Scraper) SearchByID(id, title string) *logging.ScraperError
SearchByID for a Manga, will fill searchResults with ONLY 1 result (first result)
func (*Scraper) SelectChapters ¶
func (m *Scraper) SelectChapters(titles []string) *logging.ScraperError
func (*Scraper) SelectManga ¶
func (m *Scraper) SelectManga(name string) *logging.ScraperError
SelectManga from searchResults list
func (*Scraper) SelectNewChapters ¶
Click to show internal directories.
Click to hide internal directories.