Patches: Browse | Submit New | Admin

[#28160] Douban.com provider

Date:
2010-04-30 10:25
Priority:
3
Submitted By:
Sun Ning (classicning)
Assigned To:
Cathal Mc Ginley (cathalmagus)
Category:
Provider
State:
Open
Summary:
Douban.com provider

Detailed description
Douban.com is a famous book database in China, containing almost book data in Chinese and some in English.
This provider has dependencies to ruby json module.

Developed and tested on the trunk version.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2010-05-01 00:48
Sender: Cathal Mc Ginley

Thanks for this provider, it works great. I just made a
few changes.

1) removed some stray : characters from for and if statements,
that's your Python programming background showing :^)

2) I managed to do a quick-and-dirty json-to-yaml transform so
that the YAML library in Ruby 1.8.6 can read the incoming JSON
as YAML. That way, we won't need the extra 'json' dependency.

Added in SVN r1138. Should make the 0.6.6 release, which I'm
*finally* putting out soon.
Date: 2010-04-30 10:26
Sender: Sun Ning

And the patch for bookproviders.rb

Attached Files:

Name Description Download
douban.rb Download
book_providers.rb.diff Download

Changes:

Field Old Value Date By
resolution_idNone2010-05-01 00:48cathalmagus
assigned_tonone2010-05-01 00:48cathalmagus
File Added4924: book_providers.rb.diff2010-04-30 10:26classicning
File Added4923: douban.rb2010-04-30 10:25classicning