Skip to content

Commit

Permalink
处理本地通信进行输入提示时,rss存在文件夹的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
Nriver committed Apr 24, 2023
1 parent a21644f commit 74cb36d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions QBRssManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,11 +448,12 @@ def load_type_hints(self, row):
# 读取qb feed json数据
feed_uid = None
with open(g.config['feeds_json_path'], 'r', encoding='utf-8') as f:
feeds_json = json.loads(f.read())
logger.info(f'feeds_json {feeds_json}')
for x in feeds_json:
if feeds_json[x]['url'] in feed_list:
feed_uid = feeds_json[x]['uid'].replace('-', '')[1:-1]
rss_feeds = json.loads(f.read())
logger.info(f'rss_feeds {rss_feeds}')
server_rss_feeds = convert_feeds_to_one_level_dict(rss_feeds)
for x in server_rss_feeds:
if server_rss_feeds[x]['url'] in feed_list:
feed_uid = server_rss_feeds[x]['uid'].replace('-', '')[1:-1]
logger.info(f'feed_uid {feed_uid}')

if feed_uid:
Expand Down

0 comments on commit 74cb36d

Please sign in to comment.