data

package
v0.2.32 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BookTypeText    = "текст"
	BookTypePDF     = "pdf"
	BookTypeAudio   = "аудио"
	BookTypeUnknown = "unknown"
)
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"
	DownloadTitlesProperty    = "download-titles"
	SequenceNameProperty      = "sequence-name"
	SequenceNumberProperty    = "sequence-number"
	DateReleasedProperty      = "date-released"
	DateTranslatedProperty    = "date-translated"
	DateCreatedProperty       = "date-created"
	AgeRatingProperty         = "age-rating"
	VolumeProperty            = "volume"
	DurationProperty          = "duration"
	ISBNProperty              = "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"
	ImageProperty             = "image"
	LanguageProperty          = "language"
	// aggregate
	AnyTextProperty = "any-text"
	// sorting
	SortProperty       = "sort"
	DescendingProperty = "desc"
	// sync events
	SyncCompletedProperty = "sync-completed"
	// imported
	ImportedProperty   = "imported"
	DataSourceProperty = "data-source"
	// my-books-order
	MyBooksOrderProperty = "my-books-order"
	// dehydrated images
	DehydratedListImageProperty         = "dehydrated-list-image"
	DehydratedListImageModifiedProperty = "dehydrated-list-image-modified"
	DehydratedItemImageProperty         = "dehydrated-item-image"
	DehydratedItemImageModifiedProperty = "dehydrated-item-image-modified"
)
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:":                                    ISBNProperty,
	"Переводчики:":                             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 AbsBackupDir added in v0.1.85

func AbsBackupDir() string

func AbsCookiesFilename

func AbsCookiesFilename() string

func AbsCoverDir

func AbsCoverDir() string

func AbsCoverPath added in v0.1.50

func AbsCoverPath(id int64, size litres_integration.CoverSize) string

func AbsDownloadPath

func AbsDownloadPath(id int64, file string) string

func AbsDownloadsDir

func AbsDownloadsDir() string

func AbsExportFilename added in v0.1.73

func AbsExportFilename() string

func AbsImportFilename added in v0.1.73

func AbsImportFilename() string

func AbsImportedDir added in v0.1.85

func AbsImportedDir() string

func AbsLitResMyBooksDetailsDir added in v0.2.6

func AbsLitResMyBooksDetailsDir() string

func AbsLitResMyBooksFreshDir added in v0.2.6

func AbsLitResMyBooksFreshDir() string

func AbsLiveLibDetailsDir added in v0.2.6

func AbsLiveLibDetailsDir() string

func AbsReduxDir

func AbsReduxDir() string

func AnyTextProperties added in v0.1.22

func AnyTextProperties() []string

func ChRoot

func ChRoot(d string)

func FormatBookType added in v0.2.9

func FormatBookType(format string) 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

func RelCoverFilename added in v0.1.88

func RelCoverFilename(id string, size litres_integration.CoverSize) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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