mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-15 15:09:25 +00:00
add app developer name as item author
This commit is contained in:
@@ -41,6 +41,7 @@ def gen_headers(cc=''):
|
||||
return headers
|
||||
|
||||
def parse(post):
|
||||
print(post)
|
||||
item = {}
|
||||
subtitle = post['name'] + '</br></br>' + post['subtitle'] if post.__contains__('subtitle') else post['name']
|
||||
item['title'] = post['name']
|
||||
@@ -48,6 +49,7 @@ def parse(post):
|
||||
+ '</br></br>Rating: ' + str( post['userRating']['value'] ) \
|
||||
+ ',数量:' + str( post['userRating']['ratingCount'] )
|
||||
url_paths = post['shortUrl'].split('/')
|
||||
item['author'] = post['copyright']
|
||||
del url_paths[-2]
|
||||
item['link'] = '/'.join(url_paths)
|
||||
return item
|
||||
|
||||
Reference in New Issue
Block a user