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 78ab084 commit a27a692
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const updateChannelList = (
const after = list
.replace(
"<!-- list_title_here -->",
`# List for **${name}**\n\n> M3U: <https://iptv.vodtv.cn/${f_name}.m3u>, TXT: <https://iptv.vodtv.cn/txt/${f_name}.txt>`
`# List for **${name}**\n\n> M3U: <https://vodtv.cn/${f_name}.m3u>, TXT: <https://vodtv.cn/txt/${f_name}.txt>`
)
.replace(
"<!-- channels_here -->",
Expand Down Expand Up @@ -70,9 +70,9 @@ export const updateReadme = (
`${sources
?.map(
(d, idx) =>
`| ${d.name} | <https://iptv.vodtv.cn/${d.f_name
}.m3u> <br> <https://iptv.vodtv.cn/txt/${d.f_name}.txt> | [List for ${d.name
}](https://iptv.vodtv.cn/list/${d.f_name}.list) | ${counts[idx] === undefined ? "update failed" : counts[idx]
`| ${d.name} | <https://vodtv.cn/${d.f_name
}.m3u> <br> <https://vodtv.cn/txt/${d.f_name}.txt> | [List for ${d.name
}](https://vodtv.cn/list/${d.f_name}.list) | ${counts[idx] === undefined ? "update failed" : counts[idx]
} |`
)
.join("\n")}`
Expand Down
9 changes: 9 additions & 0 deletions src/task/const.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import path from "path"

export const config_path = path.resolve("config")

export const config_custom_path = path.join(config_path, "custom")

export const data_path = path.resolve("data")

export const write_custom_path = path.join(data_path, "custom")

0 comments on commit a27a692

Please sign in to comment.