View Single Post
Old 08-22-2020, 05:29 AM   #9
likekindle
Member
likekindle began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Apr 2019
Device: Kindle
@davidfor
that's clever, i've tried the plugins, and they work for me, i could get rating from goodreads and store the value into a custom column.
Then I have to modify my douban plugin just like the goodreads, right?
maybe something like this:
Code:
        if rating:
            try:
                #print(float(rating['average']))
                my_rate = float(rating['average'])
                print(title + " ----: " + str(my_rate))
                if not(mi.rating==None):
				    mi.publisher+="#PrB.rating#"+ str(my_rate)
				    print ('mi.publisher:', mi.publisher)
                
                mi.rating = float(rating['average']) / 2.0
            except:
                log.exception('Failed to parse rating')
                mi.rating = 0
likekindle is offline   Reply With Quote