Skip to content

Commit

Permalink
Merge branch 'HerbertHe:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
KimmyLueng authored Sep 26, 2024
2 parents 35cfcda + 9698837 commit 4d5422e
Show file tree
Hide file tree
Showing 9 changed files with 544 additions and 329 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: docker image

on:
push:
branches: [main]

jobs:
buildx:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- # Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build image
run: |
docker buildx build -t herberthe0229/iptv-sources:latest --platform=linux/arm64,linux/amd64,linux/arm/v8,linux/arm/v7 . --push
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Sources are from:
- [fanmingming/live](https://github.com/fanmingming/live)
- [qwerttvv/Beijing-IPTV](https://github.com/qwerttvv/Beijing-IPTV)
- [joevess/IPTV](https://github.com/joevess/IPTV)
- ~~[Meroser/IPTV](https://github.com/Meroser/IPTV)~~ The project content has been removed by Author
- [cymz6/AutoIPTV-Hotel](https://github.com/cymz6/AutoIPTV-Hotel)

EPG Sources are from:

Expand Down Expand Up @@ -72,8 +72,4 @@ See <https://m3u.ibert.me> to get more.

GPL-3.0 &copy; Herbert He

本项目基于 GPL-3.0 协议开源,但下面的个人或组织不在允许名单目录中。

| 名称 | 链接 | 原因 |
| --------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
| vodtv/m3u | <https://github.com/vodtv/m3u> | 违反 MIT 开源协议 "在软件和软件的所有副本中都必须包含以上版权声明和本许可声明。" [Commit](https://github.com/vodtv/m3u/issues/3) |
本项目基于 GPL-3.0 协议开源。
8 changes: 2 additions & 6 deletions README.temp.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Sources are from:
- [fanmingming/live](https://github.com/fanmingming/live)
- [qwerttvv/Beijing-IPTV](https://github.com/qwerttvv/Beijing-IPTV)
- [joevess/IPTV](https://github.com/joevess/IPTV)
- ~~[Meroser/IPTV](https://github.com/Meroser/IPTV)~~ The project content has been removed by Author
- [cymz6/AutoIPTV-Hotel](https://github.com/cymz6/AutoIPTV-Hotel)

EPG Sources are from:

Expand Down Expand Up @@ -46,8 +46,4 @@ See <https://m3u.ibert.me> to get more.

GPL-3.0 &copy; Herbert He

本项目基于 GPL-3.0 协议开源,但下面的个人或组织不在允许名单目录中。

| 名称 | 链接 | 原因 |
| --------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
| vodtv/m3u | <https://github.com/vodtv/m3u> | 违反 MIT 开源协议 "在软件和软件的所有副本中都必须包含以上版权声明和本许可声明。" [Commit](https://github.com/vodtv/m3u/issues/3) |
本项目基于 GPL-3.0 协议开源。
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iptv-sources",
"version": "1.6.1",
"version": "1.6.3",
"main": "index.js",
"repository": "[email protected]:HerbertHe/iptv-sources.git",
"author": "HerbertHe <[email protected]>",
Expand All @@ -20,25 +20,25 @@
"push": "yarn release && git push && yarn docker:build"
},
"devDependencies": {
"@rollup/wasm-node": "^4.13.0",
"@rollup/wasm-node": "4.20.0",
"@types/koa": "^2.15.0",
"@types/koa-router": "^7.4.8",
"@types/koa-static": "^4.0.4",
"@types/markdown-it": "^13.0.7",
"@types/node": "^20.11.30",
"@types/opencc-js": "^1.0.3",
"@types/koa-static": "4.0.4",
"@types/markdown-it": "14.1.2",
"@types/node": "22.2.0",
"@types/opencc-js": "1.0.3",
"cross-env": "^7.0.3",
"nodemon": "^3.1.0",
"tsup": "^8.0.2",
"typescript": "^5.4.3"
"nodemon": "^3.1.4",
"tsup": "8.2.4",
"typescript": "5.5.4"
},
"dependencies": {
"dotenv": "^16.4.5",
"koa": "^2.15.2",
"koa-router": "^12.0.1",
"koa-static": "^5.0.0",
"markdown-it": "^14.1.0",
"opencc-js": "^1.0.5"
"koa": "2.15.3",
"koa-router": "12.0.1",
"koa-static": "5.0.0",
"markdown-it": "14.1.0",
"opencc-js": "1.0.5"
},
"resolutions": {
"rollup": "npm:@rollup/wasm-node"
Expand Down
2 changes: 1 addition & 1 deletion src/rollback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const updateEPGByRollback = async (
const rollback_urls = get_rollback_urls()
try {
const now = hrtime.bigint()
const res = await fetch(`${rollback_urls[idx]}/${sr.f_name}.xml`)
const res = await fetch(`${rollback_urls[idx]}/epg/${sr.f_name}.xml`)
if (res.ok) {
console.log(
`Fetch EPG from ${sr.name} with ROLLBACK from ${
Expand Down
27 changes: 27 additions & 0 deletions src/sources/cymz6_lives.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { collectM3uSource } from "../utils"
import { handle_m3u, ISource, type TSources } from "./utils"

export const cymz6_lives_filter: ISource["filter"] = (
raw,
caller,
collectFn
): [string, number] => {
const rawArray = handle_m3u(raw)

if (caller === "normal" && collectFn) {
for (let i = 1; i < rawArray.length; i += 2) {
collectM3uSource(rawArray[i], rawArray[i + 1], collectFn)
}
}

return [rawArray.join("\n"), (rawArray.length - 1) / 2]
}

export const cymz6_lives_sources: TSources = [
{
name: "cymz6/AutoIPTV-Hotel lives",
f_name: "cymz6_lives",
url: "https://raw.githubusercontent.com/cymz6/AutoIPTV-Hotel/main/lives.m3u",
filter: cymz6_lives_filter,
},
]
6 changes: 3 additions & 3 deletions src/sources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export * from "./yuechan_live"
export * from "./fanmingming_live"
export * from "./qwerttvv_bj_iptv"
export * from "./joevess_iptv"
export * from "./meroser_iptv"
export * from "./cymz6_lives"
export * from "./utils"

import {
Expand All @@ -17,15 +17,15 @@ import {
fanmingming_live_sources,
qwerttvv_bj_iptv_sources,
joevess_iptv_sources,
meroser_iptv_sources
cymz6_lives_sources
} from "."

export const sources = [
...fanmingming_live_sources,
...yuechan_live_sources,
...cymz6_lives_sources,
...yang_m3u_sources,
...joevess_iptv_sources,
...meroser_iptv_sources,
...iptv_org_sources,
...iptv_org_stream_sources,
...epg_pw_sources,
Expand Down
27 changes: 0 additions & 27 deletions src/sources/meroser_iptv.ts

This file was deleted.

Loading

0 comments on commit 4d5422e

Please sign in to comment.