Skip to content

Commit

Permalink
修复顶级域名
Browse files Browse the repository at this point in the history
  • Loading branch information
HeFung committed Mar 12, 2024
1 parent a62b740 commit 78ab084
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 33 deletions.
36 changes: 18 additions & 18 deletions .readme/README.temp.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1 > IPTV </h1>
<h4>收集来自世界各地IPTV播放源</h4>
<h3 >
<a href="https://iptv.vodtv.cn">主站</a> - <a href="https://gitcode.com/iptv/iptv/overview">镜像1</a> - <a href="https://gitlink.org.cn/iptv/iptv/about">镜像2</a>
<a href="https://vodtv.cn">主站</a> - <a href="https://gitcode.com/iptv/iptv/overview">镜像1</a> - <a href="https://gitlink.org.cn/iptv/iptv/about">镜像2</a>
</h3>
</div>

Expand All @@ -29,7 +29,7 @@

## CDN加速

### 本站 (iptv.vodtv.cn) - (主站)
### 本站 (vodtv.cn) - (主站)

<table>
<thead>
Expand All @@ -41,19 +41,19 @@
<tbody>
<tr>
<td>M3U</td>
<td>https://iptv.vodtv.cn/cn.m3u</td>
<td>https://vodtv.cn/cn.m3u</td>
</tr>
<tr>
<td>TXT</td>
<td>https://iptv.vodtv.cn/txt/cn.txt</td>
<td>https://vodtv.cn/txt/cn.txt</td>
</tr>
<tr>
<td>XML</td>
<td>https://iptv.vodtv.cn/epg/51zmt.xml</td>
<td>https://vodtv.cn/epg/51zmt.xml</td>
</tr>
<tr>
<td>JSON</td>
<td>https://iptv.vodtv.cn/sources/cn.json</td>
<td>https://vodtv.cn/sources/cn.json</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -157,19 +157,19 @@
<tbody>
<tr>
<td>M3U</td>
<td>https://fastly.jsdelivr.net/gh/vodtv/iptv@gh-pages/cn.m3u</td>
<td>https://fastly.jsdelivr.net/gh/vodtv/vodtv@gh-pages/cn.m3u</td>
</tr>
<tr>
<td>TXT</td>
<td>https://fastly.jsdelivr.net/gh/vodtv/iptv@gh-pages/txt/cn.txt</td>
<td>https://fastly.jsdelivr.net/gh/vodtv/vodtv@gh-pages/txt/cn.txt</td>
</tr>
<tr>
<td>XML</td>
<td>https://fastly.jsdelivr.net/gh/vodtv/iptv@gh-pages/epg/51zmt.xml</td>
<td>https://fastly.jsdelivr.net/gh/vodtv/vodtv@gh-pages/epg/51zmt.xml</td>
</tr>
<tr>
<td>JSON</td>
<td>https://fastly.jsdelivr.net/gh/vodtv/iptv@gh-pages/sources/cn.json</td>
<td>https://fastly.jsdelivr.net/gh/vodtv/vodtv@gh-pages/sources/cn.json</td>
</tr>
</tbody>
</table>
Expand All @@ -186,19 +186,19 @@
<tbody>
<tr>
<td>M3U</td>
<td>https://cdn.gitmirror.com/gh/vodtv/iptv@gh-pages/cn.m3u</td>
<td>https://cdn.gitmirror.com/gh/vodtv/vodtv@gh-pages/cn.m3u</td>
</tr>
<tr>
<td>TXT</td>
<td>https://cdn.gitmirror.com/gh/vodtv/iptv@gh-pages/txt/cn.txt</td>
<td>https://cdn.gitmirror.com/gh/vodtv/vodtv@gh-pages/txt/cn.txt</td>
</tr>
<tr>
<td>XML</td>
<td>https://cdn.gitmirror.com/gh/vodtv/iptv@gh-pages/epg/51zmt.xml</td>
<td>https://cdn.gitmirror.com/gh/vodtv/vodtv@gh-pages/epg/51zmt.xml</td>
</tr>
<tr>
<td>JSON</td>
<td>https://cdn.gitmirror.com/gh/vodtv/iptv@gh-pages/sources/cn.json</td>
<td>https://cdn.gitmirror.com/gh/vodtv/vodtv@gh-pages/sources/cn.json</td>
</tr>
</tbody>
</table>
Expand All @@ -215,19 +215,19 @@
<tbody>
<tr>
<td>M3U</td>
<td>https://ghproxy.net/https://raw.githubusercontent.com/vodtv/iptv/gh-pages/cn.m3u</td>
<td>https://ghproxy.net/https://raw.githubusercontent.com/vodtv/vodtv/gh-pages/cn.m3u</td>
</tr>
<tr>
<td>TXT</td>
<td>https://ghproxy.net/https://raw.githubusercontent.com/vodtv/iptv/gh-pages/txt/cn.txt</td>
<td>https://ghproxy.net/https://raw.githubusercontent.com/vodtv/vodtv/gh-pages/txt/cn.txt</td>
</tr>
<tr>
<td>XML</td>
<td>https://ghproxy.net/https://raw.githubusercontent.com/vodtv/iptv/gh-pages/epg/51zmt.xml</td>
<td>https://ghproxy.net/https://raw.githubusercontent.com/vodtv/vodtv/gh-pages/epg/51zmt.xml</td>
</tr>
<tr>
<td>JSON</td>
<td>https://ghproxy.net/https://raw.githubusercontent.com/vodtv/iptv/gh-pages/sources/cn.json</td>
<td>https://ghproxy.net/https://raw.githubusercontent.com/vodtv/vodtv/gh-pages/sources/cn.json</td>
</tr>
</tbody>
</table>
Expand Down
9 changes: 0 additions & 9 deletions src/task/const.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/task/custom/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import fs from "fs"
import path from "path"

import type { ICustom } from "./define"
import { config_path, data_path, write_custom_path } from "../const"
import { m3u2txt, trimAny } from "../../utils"
import { config_path, data_path, write_custom_path, m3u2txt, trimAny } from "../../utils"

const loadConfigCustom = (): ICustom | undefined => {
if (!fs.existsSync(config_path)) {
Expand Down
8 changes: 4 additions & 4 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const converter = OpenCC.Converter({ from: "hk", to: "cn" });
export const sites_matrix: TREADMEMirrorSitesMatrix = [
{
protocol: "https",
url: "https://iptv.vodtv.cn",
url: "https://vodtv.cn",
frequence: "per 2h",
idc: "github",
provider: "[vodtv](https://github.com/vodtv)",
Expand All @@ -53,16 +53,16 @@ export const sites_matrix: TREADMEMirrorSitesMatrix = [
]

export const get_custom_url = () =>
!!process.env.CUSTOM_URL ? process.env.CUSTOM_URL : "https://iptv.vodtv.cn"
!!process.env.CUSTOM_URL ? process.env.CUSTOM_URL : "https://vodtv.cn"

export const get_rollback_urls = () => {
const matrix_url = sites_matrix.map((m) => m.url)
if (!process.env.ROLLBACK_URLS) {
return ["https://iptv.vodtv.cn", ...matrix_url]
return ["https://vodtv.cn", ...matrix_url]
}
return process.env.ROLLBACK_URLS.split(",")
.map((url) => url.trim())
.concat(["https://iptv.vodtv.cn", ...matrix_url])
.concat(["https://vodtv.cn", ...matrix_url])
}


Expand Down

0 comments on commit 78ab084

Please sign in to comment.