Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
482 commits
Select commit Hold shift + click to select a range
e95b9b2
Auto Update 2025-05-14 13:39
github-actions[bot] May 14, 2025
07ce38a
fix: comment out unused API site configuration for xiaomaomi
May 14, 2025
7e7992c
Merge branch 'LibreSpark:main' into main
bestZwei May 14, 2025
782996a
fix:b update go back button visibility logic
May 14, 2025
7949b26
Merge branch 'main' of github.com:bestZwei/LibreTV
May 14, 2025
b160fc9
回滚
May 14, 2025
2d02c3f
fix: hide detail modal when opening and closing video player
May 14, 2025
d9d671f
Merge pull request #412 from bestZwei/main
bestZwei May 14, 2025
1b76d9b
Auto Update 2025-05-14 21:20
github-actions[bot] May 14, 2025
5a10b05
修复从历史记录打开视频出现多余滚动条的问题
WLongSAMA May 14, 2025
8cb523b
修复开发服务器
WLongSAMA May 14, 2025
d10c4c8
Merge pull request #414 from WLongSAMA/pr
bestZwei May 14, 2025
b13f545
Auto Update 2025-05-14 23:06
github-actions[bot] May 14, 2025
3bfdb96
fix: add redirects for search path handling in netlify.toml and verce…
May 14, 2025
fec1d64
Merge branch 'main' of github.com:bestZwei/LibreTV
May 14, 2025
8637e1c
fix: update nginx configuration to add /s= path handling
May 14, 2025
e01b2ff
Merge pull request #415 from bestZwei/main
bestZwei May 14, 2025
f709680
Auto Update 2025-05-15 00:02
github-actions[bot] May 14, 2025
d6b5ef0
紧急回滚
May 14, 2025
466d661
Merge pull request #416 from bestZwei/main
bestZwei May 14, 2025
dd7b344
Auto Update 2025-05-15 00:07
github-actions[bot] May 14, 2025
fc958d6
修复密码框会出现滚动条的问题
WLongSAMA May 14, 2025
6e787e3
Merge branch 'LibreSpark:main' into pr
WLongSAMA May 14, 2025
ae187a0
fix docker-build yml
May 14, 2025
0dadba3
Merge pull request #418 from WLongSAMA/pr
bestZwei May 14, 2025
29c116b
Merge pull request #419 from bestZwei/main
bestZwei May 14, 2025
1d89199
Auto Update 2025-05-15 19:04
github-actions[bot] May 15, 2025
4c4cd71
test
May 15, 2025
e7230a2
Enhance navigation by saving last page URL and improving return URL h…
May 15, 2025
a6e11c6
Improve back navigation functionality and enhance return URL handling
May 15, 2025
31c2926
fix
May 15, 2025
87efd4f
Enhance back navigation logic to prioritize returning from search pag…
May 15, 2025
d8388b7
Enhance goBack function to prioritize returnUrl and lastPageUrl for i…
May 15, 2025
d80026f
Merge pull request #435 from bestZwei/main
bestZwei May 15, 2025
acc37e9
Auto Update 2025-05-15 22:45
github-actions[bot] May 15, 2025
e3ecc78
从HTML分离出CSS 文件
May 15, 2025
b1a7039
拆JS,watch 和 index
May 15, 2025
4400023
Merge pull request #437 from bestZwei/main
bestZwei May 15, 2025
bc91731
Auto Update 2025-05-16 01:31
github-actions[bot] May 15, 2025
88a5df9
Enhance redirect page with improved styles and loading animations; up…
May 16, 2025
80796a7
Merge branch 'main' of https://github.com/LibreSpark/LibreTV
actions-user May 16, 2025
d8d950c
Implement code changes to enhance functionality and improve performance
May 16, 2025
7c5ae98
Merge pull request #448 from bestZwei/main
bestZwei May 16, 2025
ec2a3fd
Auto Update 2025-05-16 13:40
github-actions[bot] May 16, 2025
c8336ec
修复 /s=xxx
May 16, 2025
02a0914
Merge pull request #449 from bestZwei/main
bestZwei May 16, 2025
347be9e
Auto Update 2025-05-16 14:23
github-actions[bot] May 16, 2025
4edd6a9
feat: 添加项目配置文件和开发工具
WuChenDi May 17, 2025
f4829c0
Merge pull request #457 from WuChenDi/main
bestZwei May 17, 2025
8e1730e
Auto Update 2025-05-17 20:29
github-actions[bot] May 17, 2025
87e53c0
fix
May 17, 2025
f6dc4b1
Merge pull request #461 from bestZwei/main
bestZwei May 17, 2025
9876158
Auto Update 2025-05-17 21:14
github-actions[bot] May 17, 2025
caca298
Update API endpoints to include '/api.php/provide/vod' for consistency
May 17, 2025
b5fc8a6
fix detail url
May 17, 2025
1597497
build(deps): 添加 node-fetch 依赖
WuChenDi May 18, 2025
e625e1b
Update selected APIs and add new API sources in configuration
May 18, 2025
057ec08
Remove 'subo' API from selected APIs and configuration for improved r…
May 18, 2025
1ace34b
Merge pull request #468 from bestZwei/main
bestZwei May 18, 2025
3a7b999
Auto Update 2025-05-18 11:06
github-actions[bot] May 18, 2025
ee11e43
Merge pull request #466 from WuChenDi/main
bestZwei May 18, 2025
5ea229b
Auto Update 2025-05-18 11:07
github-actions[bot] May 18, 2025
e9c552e
添加搜索框清空按钮
WLongSAMA May 18, 2025
547b30d
添加单个搜索历史标签删除功能
WLongSAMA May 18, 2025
58cef7c
Merge pull request #469 from WLongSAMA/pr
bestZwei May 18, 2025
79e394b
Auto Update 2025-05-18 16:11
github-actions[bot] May 18, 2025
907d291
修复清空按钮某些情况不显示的问题
WLongSAMA May 18, 2025
e010817
Merge pull request #470 from WLongSAMA/pr
bestZwei May 18, 2025
e67f10c
Auto Update 2025-05-18 17:36
github-actions[bot] May 18, 2025
a77c0ec
fix(播放器): 处理切换视频失败的情况
senshinya May 18, 2025
4899ac3
add log
senshinya May 18, 2025
d7dfa8e
refactor(player.js): 优化视频源元素的更新逻辑
senshinya May 18, 2025
d3e67e7
Merge pull request #475 from senshinya/fix_safari_switch
bestZwei May 18, 2025
509579c
Auto Update 2025-05-19 01:24
github-actions[bot] May 18, 2025
e5b68b1
fix(player): 修复视频源更新问题,确保在iOS上正确加载
senshinya May 19, 2025
7fde120
fix(播放器): 修复Safari和iOS设备上的视频播放问题
senshinya May 19, 2025
f60549a
fix(播放器): 忽略切换视频时的错误处理
senshinya May 19, 2025
b2609bc
refactor(player.js): 移除重复的播放器初始化逻辑
senshinya May 19, 2025
bbd162f
Merge pull request #479 from senshinya/fix_safari_switch
bestZwei May 19, 2025
414a32d
Auto Update 2025-05-19 15:29
github-actions[bot] May 19, 2025
f6c85b0
fix(player): 保留视频ID和返回URL参数,优化嵌套播放链接处理
May 19, 2025
e947cf3
Merge pull request #485 from bestZwei/main
bestZwei May 19, 2025
232a8f2
Auto Update 2025-05-19 21:53
github-actions[bot] May 19, 2025
6c89a41
fix(播放器): 清除播放位置记录以确保切换选集后从头开始播放
senshinya May 20, 2025
98ee8c7
Merge pull request #492 from senshinya/switch_clear_progress
bestZwei May 20, 2025
15be52c
Auto Update 2025-05-20 14:07
github-actions[bot] May 20, 2025
a00d0b9
chore: update icons (#502)
JohnsonRan May 21, 2025
7e597ea
Auto Update 2025-05-21 23:43
github-actions[bot] May 21, 2025
20d913b
dplayer替换成artplayer (#507)
ykq007 May 22, 2025
07656f9
refactor code
senshinya May 22, 2025
cc26f2b
Merge pull request #516 from senshinya/artplayer
senshinya May 22, 2025
6a2759c
Merge pull request #517 from LibreSpark/artplayer
senshinya May 22, 2025
04aa341
Auto Update 2025-05-22 22:50
github-actions[bot] May 22, 2025
96d4741
feat(player): 添加全屏切换快捷键并调整播放器配置
senshinya May 22, 2025
27e6cc1
Merge pull request #519 from senshinya/fullscreen_shortcut
senshinya May 22, 2025
4298ec8
Auto Update 2025-05-22 23:57
github-actions[bot] May 22, 2025
58eeffd
feat(player): 修复双击全屏功能,并保证全屏后继续播放
senshinya May 22, 2025
14b3581
Merge pull request #520 from senshinya/dblclick_fullscreen
senshinya May 22, 2025
3122ab4
Auto Update 2025-05-23 00:08
github-actions[bot] May 22, 2025
50e717b
feat(播放器): 改进关闭播放器逻辑并简化返回功能
senshinya May 22, 2025
77f919b
Merge pull request #521 from senshinya/fix_homebutton
senshinya May 22, 2025
e607681
Auto Update 2025-05-23 00:54
github-actions[bot] May 22, 2025
644ad54
fix ios switch play
senshinya May 23, 2025
6c08178
Merge pull request #522 from senshinya/fix_ios_switch
senshinya May 23, 2025
76560c0
Auto Update 2025-05-23 10:22
github-actions[bot] May 23, 2025
eccd597
feat(播放器): 添加全局键盘快捷键支持并优化视频播放器行为
senshinya May 23, 2025
38cf15f
Merge pull request #524 from senshinya/global_shortcut
senshinya May 23, 2025
1b4519b
Auto Update 2025-05-23 12:50
github-actions[bot] May 23, 2025
43de9ee
feat: 播放页面设置 meta 标签的 referrer 策略为 same-origin (#525)
mfandcc May 23, 2025
c57c2fc
Auto Update 2025-05-23 15:53
github-actions[bot] May 23, 2025
c316c71
fix(player): 同名剧不会被替代 & 实时刷新剧集列表 (#528)
ykq007 May 23, 2025
6656087
Auto Update 2025-05-23 18:22
github-actions[bot] May 23, 2025
77323fc
fix(player): 调整z-index值并添加全屏状态恢复逻辑
senshinya May 23, 2025
53fffce
Merge pull request #529 from senshinya/auto_fullscreen
senshinya May 23, 2025
b936866
Auto Update 2025-05-23 20:13
github-actions[bot] May 23, 2025
4f168cd
refactor(播放器): 移除无法使用的全屏状态恢复逻辑并添加Webkit检测
senshinya May 24, 2025
ab6fed4
Merge pull request #535 from senshinya/switch_fullscreen
senshinya May 24, 2025
67fc3bb
Auto Update 2025-05-24 14:30
github-actions[bot] May 24, 2025
b094718
集数显示修改
May 24, 2025
4362038
refactor(模态框): 优化详情展示样式和集数处理逻辑
May 24, 2025
a24bb71
fix(showDetails): validate description existence before rendering
May 24, 2025
8b3b376
refactor(showDetails): improve detail rendering and description handling
May 24, 2025
85dd3a4
fix
May 24, 2025
61dd316
Merge pull request #537 from bestZwei/main
bestZwei May 24, 2025
3359369
Auto Update 2025-05-24 16:11
github-actions[bot] May 24, 2025
8cb9312
fix(ui): 剧集实时更新
ykq007 May 25, 2025
013d61a
Auto Update 2025-05-25 11:40
github-actions[bot] May 25, 2025
5a0a579
feat(player): 浏览器全屏按钮
WLongSAMA May 25, 2025
5a5b37c
Auto Update 2025-05-25 11:41
github-actions[bot] May 25, 2025
eae4a3c
fix(player): 网页全屏下隐藏标题栏
senshinya May 25, 2025
c201e82
Merge pull request #544 from senshinya/fullscreenweb
senshinya May 25, 2025
3f74210
Auto Update 2025-05-25 13:35
github-actions[bot] May 25, 2025
2fb1efa
Add files via upload
ykq007 May 26, 2025
1471457
Add files via upload
ykq007 May 26, 2025
f802afd
fix(donation): update donation link from UNICEF to Médecins Sans Fron…
May 29, 2025
c51d6fe
更新readme
May 29, 2025
78e81fa
update zmto link
May 29, 2025
ffd2b4f
FIX
May 29, 2025
915b60a
Merge pull request #556 from bestZwei/main
bestZwei May 29, 2025
31947f6
Auto Update 2025-05-30 00:01
github-actions[bot] May 29, 2025
48ab979
优化上一页按钮逻辑 (#547)
bestZwei May 29, 2025
5038e73
Auto Update 2025-05-30 00:20
github-actions[bot] May 29, 2025
dc148cd
Merge branch 'main' of github.com:LibreSpark/LibreTV
May 29, 2025
94d5ed4
Merge pull request #558 from bestZwei/main
bestZwei May 29, 2025
26ec4e8
Auto Update 2025-05-30 01:18
github-actions[bot] May 29, 2025
84e56aa
自动隐藏播放器的工具栏
WLongSAMA Jun 7, 2025
1ff52a0
Merge pull request #578 from WLongSAMA/pr
bestZwei Jun 8, 2025
b6b9d5e
Auto Update 2025-06-08 22:14
github-actions[bot] Jun 8, 2025
f98e5e5
refactor: migrate from nginx-lua to Node.js runtime (#580)
JohnsonRan Jun 9, 2025
3781130
Auto Update 2025-06-09 22:05
github-actions[bot] Jun 9, 2025
076df04
refactor: simplify `.gitignore` and `.dockerignore` (#581)
JohnsonRan Jun 9, 2025
b951a3b
Auto Update 2025-06-09 22:25
github-actions[bot] Jun 9, 2025
74320f0
feat(compose): show files on host machine (#582)
JohnsonRan Jun 9, 2025
93bbb15
Auto Update 2025-06-09 23:37
github-actions[bot] Jun 9, 2025
52c3344
docs: update README.md
JohnsonRan Jun 9, 2025
2b7e604
docs: improve guides
JohnsonRan Jun 10, 2025
06b28b3
Auto Update 2025-06-10 22:50
github-actions[bot] Jun 10, 2025
8cfde4d
fix: netlify password auth
JohnsonRan Jun 11, 2025
66e1b25
Auto Update 2025-06-11 19:28
github-actions[bot] Jun 11, 2025
621b119
feat: 新增支持设置按钮密码访问 (#594)
Nicolasking007 Jun 11, 2025
bda8649
Auto Update 2025-06-11 19:35
github-actions[bot] Jun 11, 2025
6a6089b
feat: 添加播放页资源切换功能
senshinya Jun 11, 2025
491af8d
Merge pull request #611 from senshinya/switch_source
senshinya Jun 11, 2025
4b121a5
Auto Update 2025-06-11 21:42
github-actions[bot] Jun 11, 2025
7a0e201
fix: can't play from history when deployed in docker (#617)
JohnsonRan Jun 11, 2025
d5372a1
Auto Update 2025-06-11 23:39
github-actions[bot] Jun 11, 2025
d4b785a
fix: `dbzy.com` ENOTFOUND (#618)
JohnsonRan Jun 11, 2025
4e5ed37
Auto Update 2025-06-12 00:10
github-actions[bot] Jun 11, 2025
17da1f2
chore: no need `wakelock.js` now (#627)
JohnsonRan Jun 12, 2025
5d3cdbc
Auto Update 2025-06-12 23:45
github-actions[bot] Jun 12, 2025
89734fe
添加了读取 VERSION.txt 文件的步骤
Jun 14, 2025
dd6f4b8
Merge pull request #636 from bestZwei/main
bestZwei Jun 14, 2025
8128f9c
Auto Update 2025-06-14 22:26
github-actions[bot] Jun 14, 2025
d86701f
docs+
Jun 17, 2025
4d2bcda
Refactor player styles: move critical loading styles to player.css an…
Jun 18, 2025
f625226
搜索结果卡片按照视频名称优先排序,相同名称的视频会按照接口源名称进行二级排序
Jun 19, 2025
301ebaa
Merge pull request #645 from bestZwei/main
bestZwei Jun 19, 2025
670b5e1
Auto Update 2025-06-19 16:41
github-actions[bot] Jun 19, 2025
50e6942
Enhance player styles: update home button, improve loading spinner, a…
Jun 21, 2025
23840b8
Merge branch 'main' of github.com:bestZwei/LibreTV
Jun 21, 2025
1965a95
Add contributor benefits section to README
Jun 21, 2025
57703be
fix
Jun 21, 2025
821cdba
Refactor about page layout and remove privacy policy page
Jun 21, 2025
f301c0a
test 响应式布局调整
Jun 21, 2025
955770d
Merge pull request #657 from bestZwei/main
bestZwei Jun 21, 2025
9beefe3
Auto Update 2025-06-21 21:04
github-actions[bot] Jun 21, 2025
9644a5f
feat: render.yaml
kpfy Jun 22, 2025
9f5d323
Merge pull request #665 from ipaler/main
bestZwei Jun 23, 2025
caf48bd
Auto Update 2025-06-23 23:35
github-actions[bot] Jun 23, 2025
397b0d8
修复反向代理后的客户端请求
Mr-Jos Jun 29, 2025
0c8bfa2
增加edgeOne部署
chenggx Jul 2, 2025
ff767b4
增加edgeOne部署
chenggx Jul 2, 2025
0f476eb
Merge pull request #681 from Mr-Jos/main
bestZwei Jul 2, 2025
d5113f5
Auto Update 2025-07-02 21:01
github-actions[bot] Jul 2, 2025
58990f4
Merge pull request #689 from chenggx/main
bestZwei Jul 2, 2025
75f9915
Auto Update 2025-07-02 21:10
github-actions[bot] Jul 2, 2025
e6eeefa
fix: 播放器在副屏全屏时,鼠标移出副屏后播放器控制栏没有自动隐藏
xwinwin Jul 4, 2025
c680ac5
Merge pull request #704 from xwinwin/main
bestZwei Jul 6, 2025
2d37e01
Auto Update 2025-07-06 19:00
github-actions[bot] Jul 6, 2025
859c0ae
enhancement: 允许直接关闭管理员密码输入框
xwinwin Jul 7, 2025
676e0ae
Merge pull request #720 from xwinwin/main
bestZwei Jul 7, 2025
bf4f266
Auto Update 2025-07-07 19:41
github-actions[bot] Jul 7, 2025
8593171
chore: switch to another proxy url
JohnsonRan Jul 10, 2025
182ca7c
Auto Update 2025-07-11 01:14
github-actions[bot] Jul 10, 2025
450b940
Update config.js
hst1189 Jul 21, 2025
4459f97
Merge pull request #771 from hst1189/main
bestZwei Jul 22, 2025
00d391a
Auto Update 2025-07-22 22:10
github-actions[bot] Jul 22, 2025
b3d6670
fix: 解决 Issue #110 (新添加的api不会保存)
Jul 24, 2025
fa03215
Merge pull request #781 from wang-fu-jie/fix-issue-110
bestZwei Jul 25, 2025
62ea028
Auto Update 2025-07-25 11:19
github-actions[bot] Jul 25, 2025
426c7cc
feat(播放器): 添加视频源速率测试功能并优化资源切换界面
Frank-whw Jul 31, 2025
ae2a48d
Merge pull request #806 from Frank-whw/main
bestZwei Aug 1, 2025
aa357ce
Auto Update 2025-08-01 13:16
github-actions[bot] Aug 1, 2025
d1303fc
refactor: remove ADMINPASSWORD support and update related documentation
Aug 4, 2025
8411414
feat: enhance password protection checks to prevent bypass
Aug 4, 2025
0d991bc
delete some links
Aug 4, 2025
e323ada
feat: implement proxy request authentication mechanism using PASSWORD
Aug 4, 2025
f46e0c9
fix: increase timeout duration for API requests to 80 seconds
Aug 4, 2025
935372f
文档修改,要求必须设置PASSWORD
Aug 4, 2025
daa2fc5
fix: 删除了有问题的中间件
Aug 4, 2025
c422031
docs: daily updating
Aug 4, 2025
dfa3696
Merge pull request #813 from bestZwei/main
bestZwei Aug 4, 2025
fabb66e
Auto Update 2025-08-04 19:18
github-actions[bot] Aug 4, 2025
28cd981
docs update
Aug 4, 2025
f5d1e14
fix: update search input class to prevent overflow
Aug 4, 2025
3953b52
升级播放器版本
Aug 4, 2025
5fdd073
Merge pull request #816 from bestZwei/main
bestZwei Aug 4, 2025
cb8c164
Auto Update 2025-08-05 02:40
github-actions[bot] Aug 4, 2025
e647d4d
docs: 增加清理浏览器缓存的建议
Aug 4, 2025
4717fad
Merge branch 'main' of github.com:bestZwei/LibreTV
Aug 4, 2025
61db735
Merge pull request #817 from bestZwei/main
bestZwei Aug 4, 2025
930ac68
Auto Update 2025-08-05 03:35
github-actions[bot] Aug 4, 2025
8f75f51
feat: spam and nonsense go away
JohnsonRan Aug 5, 2025
8ca7655
Auto Update 2025-08-05 17:01
github-actions[bot] Aug 5, 2025
6d02524
Update nomore-spam.yml
bestZwei Aug 5, 2025
7a73053
Auto Update 2025-08-05 22:52
github-actions[bot] Aug 5, 2025
82c1f6f
Update nomore-spam.yml
bestZwei Aug 5, 2025
409f9fe
Auto Update 2025-08-05 22:56
github-actions[bot] Aug 5, 2025
5728dee
Update nomore-spam.yml
bestZwei Aug 5, 2025
22e1fbb
Auto Update 2025-08-05 22:58
github-actions[bot] Aug 5, 2025
bc91ad1
Update nomore-spam.yml
bestZwei Aug 5, 2025
f0e9da4
Auto Update 2025-08-05 23:03
github-actions[bot] Aug 5, 2025
2ffd0fa
Remove ADMINPASSWORD placeholder from HTML and middleware files
Aug 5, 2025
1ba11b3
Merge pull request #832 from bestZwei/main
bestZwei Aug 5, 2025
f040f15
Auto Update 2025-08-06 00:54
github-actions[bot] Aug 5, 2025
44bc808
Update nomore-spam.yml
JohnsonRan Aug 5, 2025
6538270
Auto Update 2025-08-06 01:17
github-actions[bot] Aug 5, 2025
c7b7dbb
Remove all API site configurations from config.js
bestZwei Aug 12, 2025
39294f3
fix
bestZwei Aug 12, 2025
78ee8bb
Merge pull request #867 from bestZwei/main
bestZwei Aug 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
.vscode/
readme.md
.github/
node_modules/
netlify*
.gitignore
.dockerignore
.env*
nodemon.json
vercel.json
Dockerfile*
docker-compose*.yml
.docker/
20 changes: 20 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 基本配置
PORT=8080
PASSWORD=111111
DEBUG=false

# CORS 配置
CORS_ORIGIN=*

# 请求配置
REQUEST_TIMEOUT=5000
MAX_RETRIES=2
USER_AGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

# 缓存配置
CACHE_MAX_AGE=1d

# 安全配置
BLOCKED_HOSTS=localhost,127.0.0.1,0.0.0.0,::1
BLOCKED_IP_PREFIXES=192.168.,10.,172.
FILTERED_HEADERS=content-security-policy,cookie,set-cookie,x-frame-options,access-control-allow-origin
60 changes: 60 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: BUG Report / BUG 报告
description: "Create a report to help us improve"
title: "[BUG]"
labels: ["bug"]
body:
- type: checkboxes
id: self_check
attributes:
label: Self-check / 自查
description: Self-Check before submitting the Issue / 在提交Issue之前的自查
options:
- label: I have already cleard my browser cache / 我已经清除了浏览器缓存
required: false
- type: checkboxes
id: confirm
attributes:
label: Confirm / 确认
description: Please confirm / 请你确认
options:
- label: I have searched the Issue and found no related issues / 我已经搜索过Issue,没有找到相关问题
required: true
- label: I am using the latest source from this repository / 我使用的是来自此仓库的最新版代码
required: true
- label: I provided information which does not include sensitive information / 我提供的信息里不包含敏感信息
required: true
- type: textarea
id: description
attributes:
label: BUG Description / BUG 描述
description: Describe your BUG here / 在此描述你的BUG
validations:
required: true
- type: textarea
id: expected_behavior
attributes:
label: Expected Behavior / 预期行为
description: What you expect to happen / 你认为的预期行为
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: Reproduction Steps / 复现步骤
description: How to reproduce / 如何复现
validations:
required: true
- type: textarea
id: debug
attributes:
label: Console Log / 控制台日志
description: F12 -> Console / 从 F12 -> 控制台 复制你觉得可能有帮助的日志
validations:
required: false
- type: textarea
id: additional_context
attributes:
label: Additional Information / 附加信息
description: Any other information you think might be helpful to solve this BUG / 你觉得对解决此BUG有帮助的其它信息
validations:
required: false
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: How To Ask Questions The Smart Way / 提问的智慧
about: Read it before start a new issue
url: http://www.catb.org/~esr/faqs/smart-questions.html
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Feature request / 功能请求
description: "Suggest an idea for this project"
title: "[Feature Request]"
labels: ["enhancement"]
body:
- type: checkboxes
id: confirm
attributes:
label: Confirm / 确认
description: Please confirm / 请你确认
options:
- label: I have searched the Issue and found no related feature requests / 我已经搜索过Issue,没有找到相关的功能请求
required: true
- type: textarea
id: description
attributes:
label: Feature Description / 功能描述
description: Describe the feature you want / 描述你想要的功能
validations:
required: true
- type: textarea
id: how_to
attributes:
label: How to Implement / 如何实现
description: How to implement this feature / 应该如何实现这个功能
validations:
required: false
- type: textarea
id: additional_context
attributes:
label: Additional Information / 附加信息
description: Any other information you think might be helpful to implement this feature / 你觉得对实现此功能有帮助的其它信息
validations:
required: false
54 changes: 29 additions & 25 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,56 @@
name: 'Build LibreTV image'
name: Build LibreTV image

on:
push:
branches:
- main
workflow_run:
workflows: ["Bump version"]
types:
- completed
workflow_dispatch:

jobs:
build:
name: 'Build LibreTV image'
name: Build LibreTV image
runs-on: ubuntu-latest
# Modified to run on both repositories
if: github.repository == 'LibreSpark/LibreTV' || github.repository == 'bestZwei/libretv'
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
if: (github.event.workflow_run.conclusion == 'success' && github.repository == 'LibreSpark/LibreTV') || (github.repository == 'bestZwei/libretv')

steps:
- name: 'Check out repository'
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Check out repository
uses: actions/checkout@v4

- name: Read version from VERSION.txt
id: version
run: |
VERSION=$(cat VERSION.txt)
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT

- name: 'Set Docker image tag based on repository'
- name: Set Docker image tag based on repository
id: set-tag
run: |
if [ "${{ github.repository }}" = "LibreSpark/LibreTV" ]; then
echo "IMAGE_TAG=libretv:latest" >> $GITHUB_OUTPUT
echo "IMAGE_NAME=libretv" >> $GITHUB_OUTPUT
echo "TAGS=${{ secrets.DOCKER_USERNAME }}/libretv:latest,${{ secrets.DOCKER_USERNAME }}/libretv:${{ steps.version.outputs.VERSION }}" >> $GITHUB_OUTPUT
else
echo "IMAGE_TAG=libretv-beta:latest" >> $GITHUB_OUTPUT
echo "IMAGE_NAME=libretv-beta" >> $GITHUB_OUTPUT
echo "TAGS=${{ secrets.DOCKER_USERNAME }}/libretv-beta:latest" >> $GITHUB_OUTPUT
fi

- name: 'Set up Docker QEMU'
uses: docker/setup-qemu-action@v3.5.0
- name: Set up Docker QEMU
uses: docker/setup-qemu-action@v3

- name: 'Set up Docker Buildx'
uses: docker/setup-buildx-action@v3.10.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: 'Login to DockerHub'
uses: docker/login-action@v3.4.0
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: 'Build and push LibreTV image'
- name: Build and push LibreTV image
uses: docker/[email protected]
with:
context: .
file: Dockerfile
push: true
tags: "${{ env.DOCKER_USERNAME }}/${{ steps.set-tag.outputs.IMAGE_TAG }}"
platforms: linux/amd64,linux/arm64/v8
tags: ${{ steps.set-tag.outputs.TAGS }}
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7
31 changes: 31 additions & 0 deletions .github/workflows/nomore-spam.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: NoMore Spam

on:
issues:
types: [opened]
pull_request_target:
types: [opened]

permissions:
contents: read
issues: write
pull-requests: write
models: read
actions: write

jobs:
spam-detection:
runs-on: ubuntu-latest

steps:
- name: Detect and close spam
uses: JohnsonRan/nomore-spam@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
ai-base-url: ${{ secrets.AI_BASE_URL }}
ai-api-key: ${{ secrets.AI_API_KEY }}
ai-model: 'qwen3-235b-a22b'
labels: 'bug,enhancement,question'
analyze-file-changes: 'true'
max-analysis-depth: 'normal'
blacklist: ${{ secrets.BLACKLIST }} # 可选:黑名单用户列表
11 changes: 4 additions & 7 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permissions:

on:
schedule:
- cron: "0 4 * * *" # At 04:00, every day
- cron: "0 4 * * *" # At 12PM UTC+8
workflow_dispatch:

jobs:
Expand All @@ -17,20 +17,17 @@ jobs:
steps:
# Step 1: run a standard checkout action
- name: Checkout target repo
uses: actions/checkout@v3
uses: actions/checkout@v4

# Step 2: run the sync action
- name: Sync upstream changes
id: sync
uses: aormsby/[email protected]
uses: aormsby/[email protected].1
with:
upstream_sync_repo: LibreSpark/LibreTV
upstream_sync_branch: main
target_sync_branch: main
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set

# Set test_mode true to run tests instead of the true action!!
test_mode: false
target_repo_token: ${{ secrets.GITHUB_TOKEN }}

- name: Sync check
if: failure()
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Bump version

on:
push:
branches:
- main
workflow_dispatch:

jobs:
bump-version:
if: github.repository == 'LibreSpark/LibreTV'
runs-on: ubuntu-latest
env:
TZ: 'Asia/Shanghai'

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Bump version and commit changes
run: |
CURRENT_TIME=$(date +"%Y-%m-%d %H:%M")
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
echo $(date +"%Y%m%d%H%M") > VERSION.txt
git add VERSION.txt
git commit -m "Auto Update $CURRENT_TIME"
git push origin main

- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 2
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.env
Loading