mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
Merge pull request #4012 from fanrongbin/v2
This commit is contained in:
@@ -301,6 +301,8 @@ class RssHelper:
|
|||||||
if pubdate:
|
if pubdate:
|
||||||
# 转换为时间
|
# 转换为时间
|
||||||
pubdate = StringUtils.get_time(pubdate)
|
pubdate = StringUtils.get_time(pubdate)
|
||||||
|
# 获取豆瓣昵称
|
||||||
|
nickname = DomUtils.tag_value(item, "dc:createor", default="")
|
||||||
# 返回对象
|
# 返回对象
|
||||||
tmp_dict = {'title': title,
|
tmp_dict = {'title': title,
|
||||||
'enclosure': enclosure,
|
'enclosure': enclosure,
|
||||||
@@ -308,6 +310,9 @@ class RssHelper:
|
|||||||
'description': description,
|
'description': description,
|
||||||
'link': link,
|
'link': link,
|
||||||
'pubdate': pubdate}
|
'pubdate': pubdate}
|
||||||
|
# 如果豆瓣昵称不为空,返回数据增加豆瓣昵称,供doubansync插件获取
|
||||||
|
if nickname:
|
||||||
|
tmp_dict['nickname'] = nickname
|
||||||
ret_array.append(tmp_dict)
|
ret_array.append(tmp_dict)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
logger.debug(f"解析RSS失败:{str(e1)} - {traceback.format_exc()}")
|
logger.debug(f"解析RSS失败:{str(e1)} - {traceback.format_exc()}")
|
||||||
|
|||||||
Reference in New Issue
Block a user