mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-14 15:09:23 +00:00
remove developer name in iOS app link
This commit is contained in:
@@ -42,12 +42,14 @@ def gen_headers(cc=''):
|
||||
|
||||
def parse(post):
|
||||
item = {}
|
||||
subtitle = post['name'] + ': ' + 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['description'] = subtitle + '</br></br>开发者: ' + '<a href="' + post['artistUrl'] + '">' + post['artistName'] + '</a> ' \
|
||||
+ '</br></br>Rating: ' + str( post['userRating']['value'] ) \
|
||||
+ ',数量:' + str( post['userRating']['ratingCount'] )
|
||||
item['link'] = post['shortUrl']
|
||||
url_paths = post['shortUrl'].split('/')
|
||||
del url_paths[-2]
|
||||
item['link'] = '/'.join(url_paths)
|
||||
return item
|
||||
|
||||
def ctx(cc='', genreid=''):
|
||||
|
||||
@@ -19,7 +19,6 @@ def parse(post):
|
||||
|
||||
|
||||
def ctx(category='', type=''):
|
||||
# category = unquote(category, encoding='utf-8')
|
||||
category1 = category.encode("utf-8").decode("latin-1")
|
||||
referer = f'{domain}/search/c=0/k={category1}/t={type}'
|
||||
DEFAULT_HEADERS.update({'Referer': referer})
|
||||
|
||||
Reference in New Issue
Block a user