Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
liber
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ale
liber
Commits
3cf5b6c2
Commit
3cf5b6c2
authored
Apr 02, 2016
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
export default metadata providers
parent
9a1fabfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
update.go
update.go
+8
-4
No files found.
update.go
View file @
3cf5b6c2
...
...
@@ -290,6 +290,13 @@ func (uc *updateContext) dbwriter(ch chan fileAndBook) {
}
}
func
DefaultMetadataProviders
()
[]
MetadataProvider
{
return
[]
MetadataProvider
{
&
opfProvider
{},
&
fileProvider
{},
}
}
func
(
db
*
Database
)
Update
(
dir
string
,
chooser
MetadataChooserFunc
)
{
// Parallelize metadata extraction, serialize database updates
// (so that index-based de-duplication works).
...
...
@@ -300,10 +307,7 @@ func (db *Database) Update(dir string, chooser MetadataChooserFunc) {
// Calibre/OPF must be first, so we don't attempt to
// parse the file itself.
providers
:
[]
MetadataProvider
{
&
opfProvider
{},
&
fileProvider
{},
},
providers
:
DefaultMetadataProviders
(),
// Check Google Books when the metadata is not
// sufficient to fully describe the book.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment