Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
python2 -> python3
Browse files Browse the repository at this point in the history
  • Loading branch information
pwliao committed Sep 27, 2020
1 parent d490b61 commit 09dd458
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@
```
make install
```
## Configure apikey
- Calibre Preferences > Plugins > Douban > Customize Plugin
- Input apikey
4 changes: 2 additions & 2 deletions douban/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from douban import Douban
from .douban import Douban
4 changes: 1 addition & 3 deletions douban/douban.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Douban(Source):

name = 'Douban Books'
author = 'Li Fanxi, xcffl, jnozsc'
version = (3, 1, 0)
version = (3, 1, 1)
minimum_calibre_version = (2, 80, 0)

description = _(
Expand Down Expand Up @@ -194,8 +194,6 @@ def build_term(prefix, parts):
q += ((' ' if q != '' else '') + build_term('author', author_tokens))
t = 'search'
q = q.strip()
if isinstance(q, type(u'')):
q = q.encode('utf-8')
if not q:
return None
url = None
Expand Down

0 comments on commit 09dd458

Please sign in to comment.