Skip to content

add huya live #19195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add huya live #19195

wants to merge 2 commits into from

Conversation

x0rz4
Copy link

@x0rz4 x0rz4 commented May 25, 2025

add huya live

Involved Issue / 该 PR 相关 Issue

Close #

Example for the Proposed Route(s) / 路由地址示例

/huya/live/10188

New RSS Route Checklist / 新 RSS 路由检查表

  • New Route / 新的路由
  • Anti-bot or rate limit / 反爬/频率限制
    • If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
  • Date and time / 日期和时间
    • Parsed / 可以解析
    • Correct time zone / 时区正确
  • New package added / 添加了新的包
  • Puppeteer

Note / 说明

本路由用于获取虎牙直播间的开播状态,支持通过房间号获取直播信息,并生成符合 RSS 标准的订阅源。

路由路径

/huya/live/:id

参数说明

参数 说明
id 必选,虎牙直播间房间号,可在主播直播间页 URL 中找到

add huya live
@github-actions github-actions bot added the route label May 25, 2025
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Copy link
Contributor

Successfully generated as following:

http://localhost:1200/huya/live/10188 - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>DANK1NGCS2的虎牙直播间</title>
    <link>https://www.huya.com/10188</link>
    <atom:link href="http://localhost:1200/huya/live/10188" rel="self" type="application/rss+xml"></atom:link>
    <description>DANK1NGCS2的虎牙直播间 - Powered by RSSHub</description>
    <generator>RSSHub</generator>
    <webMaster>contact@rsshub.app (RSSHub)</webMaster>
    <language>en</language>
    <lastBuildDate>Sun, 25 May 2025 22:59:56 GMT</lastBuildDate>
    <ttl>5</ttl>
    <item>
      <title>爱玩</title>
      <description></description>
      <link>https://www.huya.com/10188</link>
      <guid isPermaLink="false">1748213996</guid>
      <pubDate>Sun, 25 May 2025 22:59:56 GMT</pubDate>
    </item>
  </channel>
</rss>

update huya live.ts
Copy link
Contributor

Successfully generated as following:

http://localhost:1200/huya/live/10188 - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>DANK1NGCS2的虎牙直播间</title>
    <link>https://www.huya.com/10188</link>
    <atom:link href="http://localhost:1200/huya/live/10188" rel="self" type="application/rss+xml"></atom:link>
    <description>DANK1NGCS2的虎牙直播间 - Powered by RSSHub</description>
    <generator>RSSHub</generator>
    <webMaster>contact@rsshub.app (RSSHub)</webMaster>
    <language>en</language>
    <lastBuildDate>Sun, 25 May 2025 23:21:02 GMT</lastBuildDate>
    <ttl>5</ttl>
    <item>
      <title>爱玩</title>
      <description>主播:DANK1NGCS2
        分区:未知
        开播时间:5/26/2025, 7:21:02 AM</description>
      <link>https://www.huya.com/10188</link>
      <guid isPermaLink="false">1748215262</guid>
      <pubDate>Sun, 25 May 2025 23:21:02 GMT</pubDate>
    </item>
  </channel>
</rss>

Copy link
Collaborator

@TonyRL TonyRL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix all those checks, lint issues and code scanning.

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.

2 participants