Skip to content

Commit

Permalink
set the default provider as merge for editions
Browse files Browse the repository at this point in the history
  • Loading branch information
xlcnd committed Mar 6, 2016
1 parent 0000919 commit 89c4368
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ Main Functions
``cache`` only allows two values: 'default' or None. You can change the kind of cache by using
``isbnlib.registry.set_cache`` (see below).

``editions(isbn, service='openl')``
``editions(isbn, service='merge')``
Returns the list of ISBNs of editions related with this ISBN. By default
uses 'openl', but other providers are available: 'thingl' (uses the
service ThingISBN from **LibraryThing**), 'merge' (merges 'openl' with 'thingl')
uses 'merge' (merges 'openl' with 'thingl'), but other providers are available:
'openl' users **Open Library**, 'thingl' (uses the service ThingISBN from **LibraryThing**)
and 'any' (first tries 'openl', if no data, tries 'thingl').

``isbn_from_words(words)``
Expand Down
6 changes: 3 additions & 3 deletions docs/devs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ In the namespace ``isbnlib`` you have access to the core methods:
``cache`` only allows two values: 'default' or None. You can change the kind of cache by using
``isbnlib.registry.set_cache`` (see below).

``editions(isbn, service='openl')``
``editions(isbn, service='merge')``
Returns the list of ISBNs of editions related with this ISBN. By default
uses 'openl', but other providers are available: 'thingl' (uses the
service ThingISBN from **LibraryThing**), 'merge' (merges 'openl' with 'thingl')
uses 'merge' (merges 'openl' with 'thingl'), but other providers are available:
'openl' users **Open Library**, 'thingl' (uses the service ThingISBN from **LibraryThing**)
and 'any' (first tries 'openl', if no data, tries 'thingl').

``isbn_from_words(words)``
Expand Down
2 changes: 1 addition & 1 deletion isbnlib/_editions.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def fake_provider_merge(isbn):
return data


def editions(isbn, service='openl'):
def editions(isbn, service='merge'):
"""Return the list of ISBNs of editions related with this ISBN."""
isbn = EAN13(isbn)
if not isbn:
Expand Down

0 comments on commit 89c4368

Please sign in to comment.