diff --git a/docs/anime.md b/docs/anime.md
index 8232fb643..8a5489c6a 100644
--- a/docs/anime.md
+++ b/docs/anime.md
@@ -375,9 +375,9 @@ Sources
-| 子企划名(非全称) | Lovelive! | Lovelive! Sunshine!! | Lovelive! Nijigasaki High School Idol Club | Lovelive! Superstar!! |
-| --------- | ----------- | -------------------- | ------------------------------------------ | --------------------- |
-| `abbr`参数 | otonokizaka | uranohoshi | nijigasaki | yuigaoka |
+| 子企划名(非全称) | Lovelive! | Lovelive! Sunshine!! | Lovelive! Nijigasaki High School Idol Club | Lovelive! Superstar!! | 幻日のヨハネ | ラブライブ!スクールアイドルミュージカル |
+| --------- | ----------- | -------------------- | ------------------------------------------ | --------------------- | ------ | -------------------- |
+| `abbr`参数 | otonokizaka | uranohoshi | nijigasaki | yuigaoka | yohane | musical |
| 分类名 | 全てのニュース | 音楽商品 | アニメ映像商品 | キャスト映像商品 | 劇場 | アニメ放送 / 配信 | キャスト配信 / ラジオ | ライブ / イベント | ブック | グッズ | ゲーム | メディア | ご当地情報 | その他 | キャンペーン |
| ------------ | ------------ | ----- | ----------- | ---------- | ------- | ---------- | ------------ | ---------- | ----- | ----- | ---- | ----- | ----- | ----- | -------- |
@@ -385,6 +385,25 @@ Sources
+### Love Live 官网 Schedule
+
+
+
+::: tip 请注意!!!
+该路由获取的时间及其他信息以官网公告为准!
+该 RSS 路由没有经过严格的测试,提供的信息不能保证准确性!
+:::
+
+| 子企划名(非全称) | 全シリーズ | Lovelive! | Lovelive! Sunshine!! | Lovelive! Nijigasaki High School Idol Club | Lovelive! Superstar!! | ラブライブ!スクールアイドルミュージカル |
+| --------- | ------------------ | ---------- | -------------------- | ------------------------------------------ | --------------------- | -------------------- |
+| `serie`参数 | *无参数*或`all` | `lovelive` | `sunshine` | `nijigasaki` | `superstar` | `musical` |
+
+| 分类名 | 全て | ライブ | イベント | 生配信 |
+| ------------ | ------------------ | ------ | ------- | --------- |
+| `category`参数 | *无参数*或`all` | `live` | `event` | `haishin` |
+
+
+
## Mox.moe
### 首頁
diff --git a/docs/en/anime.md b/docs/en/anime.md
index 493b12437..0b72e1007 100644
--- a/docs/en/anime.md
+++ b/docs/en/anime.md
@@ -84,14 +84,33 @@ When `posts` is selected as the value of the parameter **source**, the parameter
-| Sub-project name (not full name) | Lovelive! | Lovelive! Sunshine!! | Lovelive! Nijigasaki High School Idol Club | Lovelive! Superstar!! |
-| -------------------------------- | ----------- | -------------------- | ------------------------------------------ | --------------------- |
-| `abbr`parameter | otonokizaka | uranohoshi | nijigasaki | yuigaoka |
+| Sub-project Name (not full name) | Lovelive! | Lovelive! Sunshine!! | Lovelive! Nijigasaki High School Idol Club | Lovelive! Superstar!! | 幻日のヨハネ | ラブライブ!スクールアイドルミュージカル |
+|----------------------------------|-------------|----------------------|--------------------------------------------|-----------------------|--------|----------------------|
+| `abbr`parameter | otonokizaka | uranohoshi | nijigasaki | yuigaoka | yohane | musical |
-| category name | 全てのニュース | 音楽商品 | アニメ映像商品 | キャスト映像商品 | 劇場 | アニメ放送/配信 | キャスト配信/ラジオ | ライブ/イベント | ブック | グッズ | ゲーム | メディア | ご当地情報 | その他 | キャンペーン |
-| -------------- | --------------- | -------- | -------------- | ---------------- | ------- | --------------- | ------------------- | --------------- | ------ | ------ | ------ | -------- | ---------- | ------ | ------------ |
-| `category`parameter | *No parameter* | music | anime_movie | cast_movie | theater | onair | radio | event | books | goods | game | media | local | other | campaign |
+| Category Name | 全てのニュース | 音楽商品 | アニメ映像商品 | キャスト映像商品 | 劇場 | アニメ放送/配信 | キャスト配信/ラジオ | ライブ/イベント | ブック | グッズ | ゲーム | メディア | ご当地情報 | その他 | キャンペーン |
+|---------------------|-----------------------|-------|-------------|------------|---------|----------|------------|----------|-------|-------|------|-------|-------|-------|----------|
+| `category`parameter | *No parameter* | music | anime_movie | cast_movie | theater | onair | radio | event | books | goods | game | media | local | other | campaign |
+
+
+
+### Love Live Official Website Schedule
+
+
+
+::: tip Please note!
+The schedule and other information obtained by this route is subject to the official website announcement!
+The RSS routing has not been rigorously tested and the information provided cannot be guaranteed accurate!
+:::
+
+| Sub-project Name (not full name) | 全シリーズ | Lovelive! | Lovelive! Sunshine!! | Lovelive! Nijigasaki High School Idol Club | Lovelive! Superstar!! | ラブライブ!スクールアイドルミュージカル |
+|----------------------------------|------------------------------|------------|----------------------|--------------------------------------------|-----------------------|----------------------|
+| `serie`parameter | *No parameter*or`all` | `lovelive` | `sunshine` | `nijigasaki` | `superstar` | `musical` |
+
+| Category Name | 全て | ライブ | イベント | 生配信 |
+|---------------------|------------------------------|--------|---------|-----------|
+| `category`parameter | *No parameter*or`all` | `live` | `event` | `haishin` |
diff --git a/lib/v2/lovelive-anime/maintainer.js b/lib/v2/lovelive-anime/maintainer.js
index 1f883a6c9..55f8c8699 100644
--- a/lib/v2/lovelive-anime/maintainer.js
+++ b/lib/v2/lovelive-anime/maintainer.js
@@ -1,4 +1,5 @@
module.exports = {
'/news/:option?': ['axojhf'],
- '/topics/:abbr/:category?': ['axojhf'],
+ '/topics/:abbr/:category?/:option?': ['axojhf'],
+ '/schedules/:serie/:category?': ['axojhf'],
};
diff --git a/lib/v2/lovelive-anime/radar.js b/lib/v2/lovelive-anime/radar.js
index e64c19483..7f0cf7f06 100644
--- a/lib/v2/lovelive-anime/radar.js
+++ b/lib/v2/lovelive-anime/radar.js
@@ -17,6 +17,15 @@ module.exports = {
return `/lovelive-anime/topics/${params.abbr}/${null !== cat && cat.length === 2 ? cat[1] : ''}`;
},
},
+ {
+ title: 'Schedule',
+ docs: 'https://docs.rsshub.app/anime.html#lovelive-anime-love-live-guan-wang-schedule',
+ source: ['/schedule/'],
+ target: (params, url) => {
+ const cat = url.match(/\?series=(.*)&category=(.*)/);
+ return `/lovelive-anime/schedules/${null !== cat && cat.length >= 2 ? cat[1] : ''}/${null !== cat && cat.length === 3 ? cat[2] : ''}`;
+ },
+ },
],
},
};
diff --git a/lib/v2/lovelive-anime/router.js b/lib/v2/lovelive-anime/router.js
index 0734739f7..3f1fe769c 100644
--- a/lib/v2/lovelive-anime/router.js
+++ b/lib/v2/lovelive-anime/router.js
@@ -1,4 +1,5 @@
module.exports = (router) => {
router.get('/news/:option?', require('./news'));
router.get('/topics/:abbr/:category?/:option?', require('./topics'));
+ router.get('/schedules/:serie?/:category?', require('./schedules'));
};
diff --git a/lib/v2/lovelive-anime/schedules.js b/lib/v2/lovelive-anime/schedules.js
new file mode 100644
index 000000000..93193958a
--- /dev/null
+++ b/lib/v2/lovelive-anime/schedules.js
@@ -0,0 +1,56 @@
+const got = require('@/utils/got');
+const path = require('path');
+const { art } = require('@/utils/render');
+const renderDescription = (desc) => art(path.join(__dirname, 'templates/scheduleDesc.art'), desc);
+const dayjs = require('dayjs');
+const utc = require('dayjs/plugin/utc');
+const timezone = require('dayjs/plugin/timezone');
+
+module.exports = async (ctx) => {
+ dayjs.extend(utc);
+ dayjs.extend(timezone);
+ const serie = ctx.params.serie;
+ const category = ctx.params.category;
+ const rootUrl = `https://www.lovelive-anime.jp/common/api/calendar_list.php`;
+ const nowTime = dayjs();
+ const dataPara = {
+ year: nowTime.year(),
+ month: nowTime.format('MM'),
+ };
+ if (serie && 'all' !== serie) {
+ dataPara.series = [serie];
+ }
+ if (category && 'all' !== category) {
+ dataPara.category = [category];
+ }
+ const response = await got(`${rootUrl}?site=jp&ip=lovelive&data=${JSON.stringify(dataPara)}`);
+
+ const items = response.data.data.schedule_list.map((item) => {
+ const link = item.url.select_url;
+ const title = item.title;
+ const category = item.categories.name;
+ const eventStartDate = dayjs.unix(item.event_startdate).tz('Asia/Tokyo').format('YYYY-MM-DD HH:mm:ss JST');
+ const eventEndDate = dayjs.unix(item.event_enddate).tz('Asia/Tokyo').format('YYYY-MM-DD HH:mm:ss JST');
+
+ return {
+ link,
+ pubDate: item.start_endflg ? dayjs.unix(item.event_enddate).tz('Asia/Tokyo') : dayjs.unix(item.event_startdate).tz('Asia/Tokyo'),
+ title,
+ category,
+ description: renderDescription({
+ title,
+ desc: item.event_dspdate,
+ startTime: eventStartDate,
+ endTime: eventEndDate,
+ }),
+ };
+ });
+
+ ctx.state.data = {
+ title: `${category} - ${serie} - Love Live Official Website Schedule`,
+ link: 'https://www.lovelive-anime.jp/schedule/',
+ item: items,
+ description:
+ 'The schedule date and other information shall be subject to the announcement on the official website. The RSS route has not been strictly tested, and the captured information cannot be guaranteed to be correct.',
+ };
+};
diff --git a/lib/v2/lovelive-anime/templates/scheduleDesc.art b/lib/v2/lovelive-anime/templates/scheduleDesc.art
new file mode 100644
index 000000000..e5ec0b2b5
--- /dev/null
+++ b/lib/v2/lovelive-anime/templates/scheduleDesc.art
@@ -0,0 +1,3 @@
+
{{title}}
+{{startTime}} ~ {{endTime}}
+{{desc}}