Skip to content

fix: undefined error when no magnet & torrent#7745

Merged
DIYgod merged 2 commits intoDIYgod:masterfrom
junfengP:patch-1
Nov 27, 2021
Merged

fix: undefined error when no magnet & torrent#7745
DIYgod merged 2 commits intoDIYgod:masterfrom
junfengP:patch-1

Conversation

@junfengP
Copy link
Copy Markdown
Contributor

该 PR 相关 Issue / Involved issue

Close #7726

完整路由地址 / Example for the proposed route(s)

/dsndsht23

新RSS检查列表 / New RSS Script Checklist

  • 这个PR中包含了新的路由吗? Does this PR add new route?
    • 如果有, 请完成检查列表. If yes, please finish the check list
    • 如果你的PR符合下方某个事项, 也请注明. If any of the checklist item meets your PR, please fill it out.
    • <- 这样打勾
  • 是否提供了文档? Documentation provided?
    • 是否提供了英文文档? EN Documentation provided?
  • 是否支持全文获取? Is this RSS Script support fulltext?
    • 如果全文获取中需要访问文章链接, 是否使用了缓存? If fulltext requires to fetch detail pages, is cache used in the process?
    • 缓存说明 | How to use cache
  • 目标是否有明显的反爬/频率限制? Is there any sign of anti-bot or rate limit?
    • 如果有, 是否有对应的措施? (延长缓存时间, 写文档说明, etc.) If yes, do your code reflect this sign? (e.g. write documentations, use long cache time)
  • 目标是否有提供日期? Is there a date in the source?
    • 如果有,包是否正确解析? If there is, can this script provide this info?
    • 如果有提供解析能力,时区是否正确调整? Is the timezone correctly provided?
    • 如果有提供日期,但是没有提供解析,请说明原因 If there is a date but this script does not parse, please provide your reason.
  • 是否引入的新的包? Any new package introduced?
    • 如果有, 请说明原因. If yes, please state your reason
  • 是否使用了Puppeteer? Make use of Puppeteer?
    • 如果有, 请说明原因. If yes, please state your reason

说明 / Note

@vercel
Copy link
Copy Markdown

vercel bot commented Jun 21, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/diy/rsshub-do-not-use/3q51T2uJKEdbstdU4J2MiLC9TckC
✅ Preview: https://rsshub-do-not-use-git-fork-junfengp-patch-1-diy.vercel.app

@github-actions
Copy link
Copy Markdown
Contributor

Successfully generated as following:

https://rsshub-do-not-use-fsgla12hb-diy.vercel.app/dsndsht23 - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[色花堂 - 高清中文字幕]]></title>
        <link>https://www.sehuatang.net/forum.php?mod=forumdisplay&#38;fid=103</link>
        <atom:link href="https://rsshub-do-not-use-fsgla12hb-diy.vercel.app/dsndsht23" rel="self" type="application/rss+xml" />
        <description><![CDATA[色花堂 - 高清中文字幕 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Mon, 21 Jun 2021 16:06:19 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[[有码高清] 2021-06-21 發行日期: 2021-06-15 [大陆简化字][完美主义控][6000码率纯净版] STARS-381 要不要用我的嘴练习一下来改善早泄 唯井真寻]]></title>
            <description><![CDATA[<i class="pstatus"> 本帖最后由 神屌传说 于 2021-06-22 00:21 编辑 </i><br>
<br>
<p style="line-height:25px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="&quot;">
</font></font></p><div><font style="color:rgb(51, 51, 51)"><font face="&quot;">
<img src="https://www.tucahuand.com/tupian/forum/202106/22/001555bzifcixcfvfsvxez.jpg" referrerpolicy="no-referrer">
</font></font></div><p></p><div class="tip tip_4 aimg_tip" id="aimg_1100274_menu" style="position: absolute; display: none" disautofocus="true"><font style="color:rgb(51, 51, 51)"><font face="&quot;">
<div class="xs0">
<p><strong>8asj_b.jpg</strong> <em class="xg1">(383.08 KB, 下载次数: 0)</em></p>
<p>

@Bimyooo
Copy link
Copy Markdown

Bimyooo commented Jun 22, 2021

现有版本会将没有 magnet 的项目中的 enclosure url 替换成 host。请问能否将其替换成 down.php?module=forum&attachment 的链接。

@github-actions
Copy link
Copy Markdown
Contributor

Successfully generated as following:

https://rsshub-do-not-use-b7qb6vr99-diy.vercel.app/dsndsht23 - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[色花堂 - 高清中文字幕]]></title>
        <link>https://www.sehuatang.net/forum.php?mod=forumdisplay&#38;fid=103</link>
        <atom:link href="https://rsshub-do-not-use-b7qb6vr99-diy.vercel.app/dsndsht23" rel="self" type="application/rss+xml" />
        <description><![CDATA[色花堂 - 高清中文字幕 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Tue, 22 Jun 2021 14:38:25 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[[有码高清] 2021-06-22 發行日期: 2021-06-17 [大陆简化字][完美主义控][6000码率纯净版] VENX-049 夏日比基尼近親相姦 田中ねね]]></title>
            <description><![CDATA[<i class="pstatus"> 本帖最后由 神屌传说 于 2021-06-22 22:58 编辑 </i><br>
<br>
<p style="line-height:25px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="&quot;">
</font></font></p><div><font style="color:rgb(51, 51, 51)"><font face="&quot;">
<img src="https://www.tucahuand.com/tupian/forum/202106/22/224028zk01awhn1aaknawt.jpg" referrerpolicy="no-referrer">
</font></font></div><p></p><div class="tip tip_4 aimg_tip" id="aimg_1101912_menu" style="position: absolute; display: none" disautofocus="true"><font style="color:rgb(51, 51, 51)"><font face="&quot;">
<div class="xs0">
<p><strong>89va_b.jpg</strong> <em class="xg1">(420.79 KB, 下载次数: 0)</em></p>
<p>

@junfengP
Copy link
Copy Markdown
Contributor Author

现有版本会将没有 magnet 的项目中的 enclosure url 替换成 host。请问能否将其替换成 down.php?module=forum&attachment 的链接。

用浏览器访问了一下,down.php?module=forum&attachment,返回404

@ly012
Copy link
Copy Markdown

ly012 commented Aug 9, 2021

还是有些问题,这种有2个磁力的帖子。rss直接把2个磁力合并到一起了。
https://sehuatang.net/forum.php?mod=viewthread&tid=574614
<enclosure url="magnet:?xt=urn:btih:IKINKAPVAHOJ2SDYMAG5LZ7HOO6HLTTVmagnet:?xt=urn:btih:UYFQ4M2DSJ3YSMSEYL4B325LLPVKEGKC" type="application/x-bittorrent"/>

@NeverBehave
Copy link
Copy Markdown
Collaborator

这个可以合并了吗?

@junfengP
Copy link
Copy Markdown
Contributor Author

@NeverBehave 先合了吧

@ly012 最近没有时间修,先搁置着

@DIYgod DIYgod merged commit 604e05b into DIYgod:master Nov 27, 2021
auto-bot-ty added a commit to auto-bot-ty/RSSHub that referenced this pull request Nov 27, 2021
* docs: update sponsor

* feat: add hotukdeals

* feat: hotukdeals radar

* feat: add PS5 stock UK - The Independent

* fix(route): allow preLoginFlow of instagram to fail (DIYgod#8340)

Based on discussion in instragram-private-api repo, we do not need
this function for login.

See:
dilame/instagram-private-api#1411
dilame/instagram-private-api#1417

* style: auto format

* feat: pixiv PIXIV_IMG_PROXY

* fix: douban guid

* feat(route): add Research Gate Publications (DIYgod#7544)

* feat(route): add QuestMobile行业研究报告 (DIYgod#7552)

* chore: remove no-return-await eslint rule

* feat(route): add RSS3 Blog (DIYgod#7566)

Co-authored-by: DIYgod <[email protected]>

* style: auto format

* feat(route): add Odaily星球日报活动 (DIYgod#7666)

* feat: remove toutiao

* chore: format

* feat(route): add fashion network news (DIYgod#7602)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add dbaplus社群活动 (DIYgod#7584)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add 德阳考试中心 (DIYgod#7901)

* feat(route): add 央视网栏目 (DIYgod#7937)

Co-authored-by: DIYgod <[email protected]>

* style: auto format

* fix: infzm timezone (DIYgod#7695)

* fix: undefined error when no magnet & torrent (DIYgod#7745)

* feat(route): add World Health Organization News (DIYgod#8022)

Co-authored-by: DIYgod <[email protected]>

* fix: exclude datanews to prevent `pubDate` error (`/caixin/latest`) (DIYgod#8068)

* feat(route): add World Health Organization Speeches (DIYgod#8048)

Co-authored-by: DIYgod <[email protected]>

* Fix AP News article's title (DIYgod#8086)

* feat(route): add Now 熱門新聞 (DIYgod#8093)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add Uwants (DIYgod#8094)

Co-authored-by: DIYgod <[email protected]>

* fix: lazyloadRouteHandler

* fix: add Lofter话题/标签文章分类 & 视频 (DIYgod#8054)

* feat(route): add yunnan normal university (DIYgod#8097)

* feat(route): add 香港討論區 (DIYgod#8101)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add 香港高登 (DIYgod#8109)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add 华南理工大学教务处学院通知 (DIYgod#8110)

* fix(route): incorrect source links in yuzu emulator (DIYgod#8111)

* fix(route): migrate initium routes to new timezone (DIYgod#8124)

* feat(route): add yahoo japan covid19 news collection 日本疫情消息汇总 (DIYgod#8099)

* feat(route): add Asian to lick (DIYgod#8156)

Co-authored-by: SettingDust <[email protected]>
Co-authored-by: DIYgod <[email protected]>

* feat(route): add "micmicidol" (DIYgod#8070)

Co-authored-by: SettingDust <[email protected]>
Co-authored-by: DIYgod <[email protected]>

* feat(route):add 拷贝漫画 (DIYgod#7896)

Co-authored-by: SettingDust <[email protected]>
Co-authored-by: DIYgod <[email protected]>

* feat(route): add SBS中文 (DIYgod#8149)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add Netflix Newsroom (DIYgod#8135)

Co-authored-by: SettingDust <[email protected]>
Co-authored-by: NeverBehave <[email protected]>
Co-authored-by: DIYgod <[email protected]>

* fix(route): 修正北京教育考试院内容提取错误 (DIYgod#8209)

* fix(route): dekudeals error due to ad (DIYgod#8214)

* feat(route): add 旺球体育直播间 (DIYgod#8276)

Co-authored-by: DIYgod <[email protected]>

* fix(route): 深圳证券交易所最新规则 (DIYgod#8284)

* feat(route): add 人民网领导留言板 (DIYgod#8285)

* feat(router): timednews 时刻新闻 (DIYgod#8279)

Co-authored-by: Tony <[email protected]>

* feat(router): ccac 澳门廉政公署 (DIYgod#8273)

Co-authored-by: Tony <[email protected]>

* add 安全文摘 (DIYgod#8294)

Co-authored-by: testkaili <[email protected]>
Co-authored-by: kaiili <[email protected]>

* feat(router): cebbank 光大银行 (DIYgod#8293)

* feat(route): add NGOCN (DIYgod#8301)

Co-authored-by: DIYgod <[email protected]>

* chore: format

* feat(route): add IT之家专题 (DIYgod#8312)

* feat(route)(v2): add 旅法师营地首页 (DIYgod#8350)

* feat(route): add 辛華社 (DIYgod#8357)

* feat(route): add Literotica Category (DIYgod#8415)

* feat(route): add Literotica News Stories (DIYgod#8410)

Co-authored-by: DIYgod <[email protected]>

* misc: add NOROUTE instruction back to template (DIYgod#8379)

Co-authored-by: Sukka <[email protected]>

* feat(route): jandan use the origin gif instead the thumbs (DIYgod#8406)

* feat(route): add HKJunkCall資訊中心 (DIYgod#8405)

* fix(route): fix furstar pic href (DIYgod#8404)

* feat(route): add ScienceDirect Journal (DIYgod#8399)

* feat(route): add Harvard Business Review Topic (DIYgod#8395)

* fix(route)(hket): migrate to v2 (DIYgod#8132)

* chore: format

Co-authored-by: DIYgod <[email protected]>
Co-authored-by: Shizun Ge <[email protected]>
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Ethan Shen <[email protected]>
Co-authored-by: DIYgod <[email protected]>
Co-authored-by: zytomorrow <[email protected]>
Co-authored-by: Sean Chao <[email protected]>
Co-authored-by: junfengP <[email protected]>
Co-authored-by: Toby Tso <[email protected]>
Co-authored-by: ninboy <[email protected]>
Co-authored-by: SettingDust <[email protected]>
Co-authored-by: Rongrong <[email protected]>
Co-authored-by: coxde <[email protected]>
Co-authored-by: sgqy <[email protected]>
Co-authored-by: KotoriK <[email protected]>
Co-authored-by: btdwv <[email protected]>
Co-authored-by: NeverBehave <[email protected]>
Co-authored-by: erriy <[email protected]>
Co-authored-by: Kevin Carter <[email protected]>
Co-authored-by: linbuxiao <[email protected]>
Co-authored-by: Tony <[email protected]>
Co-authored-by: kaiili <[email protected]>
Co-authored-by: testkaili <[email protected]>
Co-authored-by: kaiili <[email protected]>
Co-authored-by: auto-bot-ty <[email protected]>
Co-authored-by: Yishuai Li <[email protected]>
Co-authored-by: Sukka <[email protected]>
Co-authored-by: Oddcc <[email protected]>
Co-authored-by: tuzi3040 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

色花堂遇到没有磁力链接的帖子会报错

6 participants