data

package
v0.1.69 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Text books
	FormatFB2     = "FB2"
	FormatEPUB    = "EPUB"
	FormatTXTZIP  = "TXT ZIP"
	FormatRTF     = "RTF"
	FormatPDFA4   = "PDF A4"
	FormatMOBI    = "MOBI"
	FormatAZW3    = "AZW3"
	FormatIOSEPUB = "iOS.EPUB"
	FormatPDFA6   = "PDF A6"
	FormatFB3     = "FB3"
	FormatTXT     = "TXT"
	// PDF books
	FormatPDF = "PDF"
	// Audiobooks
	FormatMP3 = "MP3"
	FormatMP4 = "MP4"
	// Other
	FormatZIP     = "ZIP"
	FormatUnknown = "UNKNOWN"
)
View Source
const (
	IdProperty = "id"
	//reduced from the list
	MyBooksIdsProperty = "my-books-ids"
	HrefProperty       = "href"
	// reduced from detail page
	TitleProperty             = "title"
	AuthorsProperty           = "authors"
	CoauthorsProperty         = "coauthors"
	DescriptionProperty       = "description"
	DownloadLinksProperty     = "download-links"
	SequenceNameProperty      = "sequence-name"
	SequenceNumberProperty    = "sequence-number"
	DateReleasedProperty      = "date-released"
	DateTranslatedProperty    = "date-translated"
	DateCreatedProperty       = "date-created"
	AgeRatingProperty         = "age-rating"
	VolumeProperty            = "volume"
	DurationProperty          = "duration"
	ISBNPropertyProperty      = "isbn"
	TranslatorsProperty       = "translators"
	ReadersProperty           = "readers"
	IllustratorsProperty      = "illustrators"
	CopyrightHoldersProperty  = "copyright-holders"
	ComposersProperty         = "composers"
	AdapterProperty           = "adapter"
	PerformersProperty        = "performers"
	DirectorsProperty         = "directors"
	SoundDirectorsProperty    = "sound-directors"
	PublishersProperty        = "publishers"
	TotalSizeProperty         = "total-size"
	TotalPagesProperty        = "total-pages"
	MissingDetailsIdsProperty = "missing-details-ids"
	BookTypeProperty          = "book-type"
	GenresProperty            = "genres"
	TagsProperty              = "tags"
	LocalTagsProperty         = "local-tags"
	BookCompletedProperty     = "book-completed"
	// aggregate
	AnyTextProperty = "any-text"
	// sorting
	SortProperty       = "sort"
	DescendingProperty = "desc"
	// sync events
	SyncCompletedProperty = "sync-completed"
)
View Source
const (
	CoverExt = ".jpg"
)

Variables

View Source
var FormatDescriptors = map[string]string{
	FormatFB2:     "Читается всеми российскими электронными книгами и многими программами",
	FormatEPUB:    "Подходит для Apple Books и большинства приложений для чтения",
	FormatTXTZIP:  "Можно открыть на любом компьютере",
	FormatRTF:     "Можно открыть на любом компьютере",
	FormatPDFA4:   "Открывается в программах Adobe Reader, Preview.app",
	FormatMOBI:    "Подходит для электронных книг Amazon Kindle",
	FormatAZW3:    "Подходит для электронных книг Amazon Kindle",
	FormatIOSEPUB: "EPUB, адаптированный для iPhone и iPad",
	FormatPDFA6:   "Оптимизирован под небольшие экраны",
	FormatFB3:     "Развитие формата FB2",
	FormatTXT:     "Можно открыть почти на любом устройстве",

	FormatPDF: "Скачать в формате PDF",

	FormatMP3: "Скачать книгу в стандартном качестве",
	FormatMP4: "Скачать версию для мобильного телефона",

	FormatZIP:     "Zip архив",
	FormatUnknown: "Неизвестный формат",
}
View Source
var LitResPropertyMap = map[string]string{
	litres_integration.TitleProperty:          TitleProperty,
	litres_integration.TypeProperty:           BookTypeProperty,
	litres_integration.AuthorsProperty:        AuthorsProperty,
	litres_integration.DownloadLinksProperty:  DownloadLinksProperty,
	litres_integration.DescriptionProperty:    DescriptionProperty,
	litres_integration.SequenceNameProperty:   SequenceNameProperty,
	litres_integration.SequenceNumberProperty: SequenceNumberProperty,
	litres_integration.GenresProperty:         GenresProperty,
	litres_integration.TagsProperty:           TagsProperty,
	"Соавтор:":                                CoauthorsProperty,
	"Возрастное ограничение:":                 AgeRatingProperty,
	"Объем:":                                   VolumeProperty,
	"Длительность:":                            DurationProperty,
	"Дата выхода на ЛитРес:":                   DateReleasedProperty,
	"Дата перевода:":                           DateTranslatedProperty,
	"Дата написания:":                          DateCreatedProperty,
	"ISBN:":                                    ISBNPropertyProperty,
	"Переводчики:":                             TranslatorsProperty,
	"Переводчик:":                              TranslatorsProperty,
	"Чтецы:":                                   ReadersProperty,
	"Чтец:":                                    ReadersProperty,
	"Художники:":                               IllustratorsProperty,
	"Художник:":                                IllustratorsProperty,
	"Правообладатели:":                         CopyrightHoldersProperty,
	"Правообладатель:":                         CopyrightHoldersProperty,
	"Композиторы:":                             ComposersProperty,
	"Композитор:":                              ComposersProperty,
	"Адаптация:":                               AdapterProperty,
	"Исполнители:":                             PerformersProperty,
	"Режиссер:":                                DirectorsProperty,
	"Звукорежиссер:":                           SoundDirectorsProperty,
	"Издатели:":                                PublishersProperty,
	"Издатель:":                                PublishersProperty,
	"Общий размер:":                            TotalSizeProperty,
	"Общее кол-во страниц:":                    TotalPagesProperty,
	"Оглавление":                               litres_integration.KnownIrrelevantProperty,
	"Размер страницы:":                         litres_integration.KnownIrrelevantProperty,
	litres_integration.KnownIrrelevantProperty: litres_integration.KnownIrrelevantProperty,
}

Functions

func AbsCookiesFilename

func AbsCookiesFilename() string

func AbsCoverDir

func AbsCoverDir() string

func AbsCoverPath added in v0.1.50

func AbsCoverPath(id int64) string

func AbsDownloadPath

func AbsDownloadPath(id int64, file string) string

func AbsDownloadsDir

func AbsDownloadsDir() string

func AbsMyBooksDetailsDir

func AbsMyBooksDetailsDir() string

func AbsMyBooksFreshDir

func AbsMyBooksFreshDir() string

func AbsReduxDir

func AbsReduxDir() string

func AnyTextProperties added in v0.1.22

func AnyTextProperties() []string

func ChRoot

func ChRoot(d string)

func FormatDesc added in v0.1.30

func FormatDesc(format string) string

func LinkFormat added in v0.1.30

func LinkFormat(link string) string

func Pwd

func Pwd() string

func ReduxProperties

func ReduxProperties() []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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