forked from HerbertHe/iptv-sources
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'HerbertHe:main' into main
- Loading branch information
Showing
9 changed files
with
544 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]>", | ||
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.