Documentation
¶
Index ¶
- Constants
- Variables
- func AbsBackupDir() string
- func AbsCookiesFilename() string
- func AbsCoverDir() string
- func AbsCoverPath(id int64, size litres_integration.CoverSize) string
- func AbsDownloadPath(id int64, file string) string
- func AbsDownloadsDir() string
- func AbsExportFilename() string
- func AbsImportFilename() string
- func AbsImportedDir() string
- func AbsLitResMyBooksDetailsDir() string
- func AbsLitResMyBooksFreshDir() string
- func AbsLiveLibDetailsDir() string
- func AbsReduxDir() string
- func AnyTextProperties() []string
- func ChRoot(d string)
- func FormatBookType(format string) string
- func FormatDesc(format string) string
- func LinkFormat(link string) string
- func Pwd() string
- func ReduxProperties() []string
- func RelCoverFilename(id string, size litres_integration.CoverSize) string
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" 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 ( CoverSizesDesc = []litres_integration.CoverSize{litres_integration.SizeMax, litres_integration.Size415, litres_integration.Size330} CoverSizesAsc = []litres_integration.CoverSize{litres_integration.Size330, litres_integration.Size415, litres_integration.SizeMax} )
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, }
View Source
var LiveLibPropertyMap = map[string]string{ livelib_integration.TitleProperty: TitleProperty, livelib_integration.AuthorsProperty: AuthorsProperty, livelib_integration.TranslatorsProperty: TranslatorsProperty, livelib_integration.DescriptionProperty: DescriptionProperty, livelib_integration.ISBNProperty: ISBNProperty, livelib_integration.SequenceNameProperty: SequenceNameProperty, livelib_integration.SequenceNumberProperty: SequenceNumberProperty, livelib_integration.GenresProperty: GenresProperty, livelib_integration.TagsProperty: TagsProperty, livelib_integration.AgeRatingProperty: AgeRatingProperty, livelib_integration.PublishersProperty: PublishersProperty, livelib_integration.YearPublishedProperty: DateCreatedProperty, livelib_integration.LanguageProperty: LanguageProperty, }
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 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 FormatBookType ¶ added in v0.2.9
func FormatDesc ¶ added in v0.1.30
func LinkFormat ¶ added in v0.1.30
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.
Click to show internal directories.
Click to hide internal directories.