remove developer name in iOS app link

This commit is contained in:
hillerliao
2022-11-03 22:24:47 +08:00
parent 296287d11b
commit 7ce5209eba
2 changed files with 4 additions and 3 deletions

View File

@@ -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=''):

View File

@@ -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})