Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
dd3b562f
Commit
dd3b562f
authored
May 09, 2020
by
jvoisin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change some links from http to https
parent
189243a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
db.py
cps/db.py
+4
-4
kobo.py
cps/kobo.py
+2
-2
oauth.py
cps/oauth.py
+1
-1
No files found.
cps/db.py
View file @
dd3b562f
...
@@ -103,11 +103,11 @@ class Identifiers(Base):
...
@@ -103,11 +103,11 @@ class Identifiers(Base):
if
self
.
type
==
"amazon"
:
if
self
.
type
==
"amazon"
:
return
u"https://amzn.com/{0}"
.
format
(
self
.
val
)
return
u"https://amzn.com/{0}"
.
format
(
self
.
val
)
elif
self
.
type
==
"isbn"
:
elif
self
.
type
==
"isbn"
:
return
u"http://www.worldcat.org/isbn/{0}"
.
format
(
self
.
val
)
return
u"http
s
://www.worldcat.org/isbn/{0}"
.
format
(
self
.
val
)
elif
self
.
type
==
"doi"
:
elif
self
.
type
==
"doi"
:
return
u"http://dx.doi.org/{0}"
.
format
(
self
.
val
)
return
u"http
s
://dx.doi.org/{0}"
.
format
(
self
.
val
)
elif
self
.
type
==
"goodreads"
:
elif
self
.
type
==
"goodreads"
:
return
u"http://www.goodreads.com/book/show/{0}"
.
format
(
self
.
val
)
return
u"http
s
://www.goodreads.com/book/show/{0}"
.
format
(
self
.
val
)
elif
self
.
type
==
"douban"
:
elif
self
.
type
==
"douban"
:
return
u"https://book.douban.com/subject/{0}"
.
format
(
self
.
val
)
return
u"https://book.douban.com/subject/{0}"
.
format
(
self
.
val
)
elif
self
.
type
==
"google"
:
elif
self
.
type
==
"google"
:
...
@@ -115,7 +115,7 @@ class Identifiers(Base):
...
@@ -115,7 +115,7 @@ class Identifiers(Base):
elif
self
.
type
==
"kobo"
:
elif
self
.
type
==
"kobo"
:
return
u"https://www.kobo.com/ebook/{0}"
.
format
(
self
.
val
)
return
u"https://www.kobo.com/ebook/{0}"
.
format
(
self
.
val
)
elif
self
.
type
==
"lubimyczytac"
:
elif
self
.
type
==
"lubimyczytac"
:
return
u" http://lubimyczytac.pl/ksiazka/{0}"
.
format
(
self
.
val
)
return
u" http
s
://lubimyczytac.pl/ksiazka/{0}"
.
format
(
self
.
val
)
elif
self
.
type
==
"url"
:
elif
self
.
type
==
"url"
:
return
u"{0}"
.
format
(
self
.
val
)
return
u"{0}"
.
format
(
self
.
val
)
else
:
else
:
...
...
cps/kobo.py
View file @
dd3b562f
...
@@ -979,7 +979,7 @@ def NATIVE_KOBO_RESOURCES():
...
@@ -979,7 +979,7 @@ def NATIVE_KOBO_RESOURCES():
"blackstone_header"
:
{
"key"
:
"x-amz-request-payer"
,
"value"
:
"requester"
},
"blackstone_header"
:
{
"key"
:
"x-amz-request-payer"
,
"value"
:
"requester"
},
"book"
:
"https://storeapi.kobo.com/v1/products/books/{ProductId}"
,
"book"
:
"https://storeapi.kobo.com/v1/products/books/{ProductId}"
,
"book_detail_page"
:
"https://store.kobobooks.com/{culture}/ebook/{slug}"
,
"book_detail_page"
:
"https://store.kobobooks.com/{culture}/ebook/{slug}"
,
"book_detail_page_rakuten"
:
"http://books.rakuten.co.jp/rk/{crossrevisionid}"
,
"book_detail_page_rakuten"
:
"http
s
://books.rakuten.co.jp/rk/{crossrevisionid}"
,
"book_landing_page"
:
"https://store.kobobooks.com/ebooks"
,
"book_landing_page"
:
"https://store.kobobooks.com/ebooks"
,
"book_subscription"
:
"https://storeapi.kobo.com/v1/products/books/subscriptions"
,
"book_subscription"
:
"https://storeapi.kobo.com/v1/products/books/subscriptions"
,
"categories"
:
"https://storeapi.kobo.com/v1/categories"
,
"categories"
:
"https://storeapi.kobo.com/v1/categories"
,
...
@@ -1017,7 +1017,7 @@ def NATIVE_KOBO_RESOURCES():
...
@@ -1017,7 +1017,7 @@ def NATIVE_KOBO_RESOURCES():
"get_tests_request"
:
"https://storeapi.kobo.com/v1/analytics/gettests"
,
"get_tests_request"
:
"https://storeapi.kobo.com/v1/analytics/gettests"
,
"giftcard_epd_redeem_url"
:
"https://www.kobo.com/{storefront}/{language}/redeem-ereader"
,
"giftcard_epd_redeem_url"
:
"https://www.kobo.com/{storefront}/{language}/redeem-ereader"
,
"giftcard_redeem_url"
:
"https://www.kobo.com/{storefront}/{language}/redeem"
,
"giftcard_redeem_url"
:
"https://www.kobo.com/{storefront}/{language}/redeem"
,
"help_page"
:
"http://www.kobo.com/help"
,
"help_page"
:
"http
s
://www.kobo.com/help"
,
"kobo_audiobooks_enabled"
:
"False"
,
"kobo_audiobooks_enabled"
:
"False"
,
"kobo_audiobooks_orange_deal_enabled"
:
"False"
,
"kobo_audiobooks_orange_deal_enabled"
:
"False"
,
"kobo_audiobooks_subscriptions_enabled"
:
"False"
,
"kobo_audiobooks_subscriptions_enabled"
:
"False"
,
...
...
cps/oauth.py
View file @
dd3b562f
...
@@ -40,7 +40,7 @@ try:
...
@@ -40,7 +40,7 @@ try:
Stores and retrieves OAuth tokens using a relational database through
Stores and retrieves OAuth tokens using a relational database through
the `SQLAlchemy`_ ORM.
the `SQLAlchemy`_ ORM.
.. _SQLAlchemy: http://www.sqlalchemy.org/
.. _SQLAlchemy: http
s
://www.sqlalchemy.org/
"""
"""
def
__init__
(
self
,
model
,
session
,
provider_id
,
def
__init__
(
self
,
model
,
session
,
provider_id
,
user
=
None
,
user_id
=
None
,
user_required
=
None
,
anon_user
=
None
,
user
=
None
,
user_id
=
None
,
user_required
=
None
,
anon_user
=
None
,
...
...
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