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