Skip to content

Commit

Permalink
Merge pull request #374 from Guovin/dev
Browse files Browse the repository at this point in the history
Release:v1.4.9
  • Loading branch information
Guovin authored Oct 11, 2024
2 parents 640e8ef + 1b395d2 commit a4c4114
Show file tree
Hide file tree
Showing 10 changed files with 66 additions and 50 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ jobs:
except:
open_ffmpeg = False
print(open_ffmpeg)')" >> $GITHUB_ENV
- name: Install Selenium
if: env.OPEN_DRIVER == 'True' || env.OPEN_DRIVER == 'true'
run: |
sudo pip3 install selenium
- name: Set up Chrome
if: env.OPEN_DRIVER == 'True' || env.OPEN_DRIVER == 'true'
uses: browser-actions/setup-chrome@latest
Expand All @@ -62,12 +58,6 @@ jobs:
- name: Download chrome driver
if: env.OPEN_DRIVER == 'True' || env.OPEN_DRIVER == 'true'
uses: nanasess/setup-chromedriver@master
- name: Launch chrome driver
if: env.OPEN_DRIVER == 'True' || env.OPEN_DRIVER == 'true'
run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
- name: Install FFmpeg
if: env.OPEN_FFMPEG == 'True' || env.OPEN_FFMPEG == 'true'
run: sudo apt-get update && sudo apt-get install -y ffmpeg
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.8'
update-environment: true
cache: 'pipenv'

- name: Install pipenv
run: pip install pipenv
run: pip3 install --user pipenv

- name: Install dependencies with pipenv
run: pipenv --python 3.8 && pipenv install
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# 更新日志(Changelog)

## v1.4.9

### 2024/10/11

- 新增支持 docker arm64 镜像(#369
- 新增分辨率过滤功能(相关配置:open_filter_resolution,min_resolution)
- 新增显示更新时间(相关配置:open_update_time)
- 优化测速效率(#359
- 调整默认模板,增加默认订阅源
- 移除央视台球部分错误组播地址
- 更新使用教程

- Add support for Docker ARM64 images (#369)
- Add resolution filtering feature (related configurations: open_filter_resolution, min_resolution)
- Add display of update time (related configuration: open_update_time)
- Optimize speed testing efficiency (#359)
- Adjust the default template and add default subscription sources
- Remove the incorrect multicast addresses for the CCTV Snooker section
- Update usage guide

## v1.4.8

### 2024/09/27
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@
</div>

<div align="center">自定义频道菜单,根据模板频道,自动获取并更新最新的直播源接口,测速校验后生成可用的接口文件</div>
<div align="center">默认结果包含:广东频道、央视频道、央视付费频道、卫视频道、港·澳·台频道、电影频道、咪咕直播</div>
<div align="center">默认结果包含:📺央视频道、💰央视付费频道、📡卫视频道、🏠广东频道、🌊港·澳·台频道、🎬电影频道、🎥咪咕直播</div>

<details>
<summary>具体频道</summary>
<div>
广东频道:广东珠江,广东体育,广东新闻,广东卫视,大湾区卫视,广州影视,广州竞赛,江门综合,江门侨乡生活,佛山综合,深圳卫视,汕头综合,汕头经济,汕头文旅,茂名综合,茂名公共
</div>
<div>
📺央视频道:CCTV-1,CCTV-2,CCTV-3,CCTV-4,CCTV-5,CCTV-5+,CCTV-6,CCTV-7,CCTV-8,CCTV-9,CCTV-10,CCTV-11,CCTV-12,CCTV-13,CCTV-14,CCTV-15,CCTV-16,CCTV-17,CETV1,CETV2,CETV4,CETV5
</div>
<div>
央视付费频道:文化精品,央视台球,风云音乐,第一剧场,风云剧场,怀旧剧场,女性时尚,高尔夫网球,风云足球,电视指南,世界地理,兵器科技
💰央视付费频道:文化精品,央视台球,风云音乐,第一剧场,风云剧场,怀旧剧场,女性时尚,高尔夫网球,风云足球,电视指南,世界地理,兵器科技
</div>
<div>
📡卫视频道:广东卫视,香港卫视,浙江卫视,湖南卫视,北京卫视,湖北卫视,黑龙江卫视,安徽卫视,重庆卫视,东方卫视,东南卫视,甘肃卫视,广西卫视,贵州卫视,海南卫视,河北卫视,河南卫视,吉林卫视,江苏卫视,江西卫视,辽宁卫视,内蒙古卫视,宁夏卫视,青海卫视,山东卫视,山西卫视,陕西卫视,四川卫视,深圳卫视,三沙卫视,天津卫视,西藏卫视,新疆卫视,云南卫视
</div>
<div>
港·澳·台:翡翠台,明珠台,凤凰中文,凤凰资讯,凤凰香港,凤凰卫视,TVBS亚洲,香港卫视,纬来体育,纬来育乐,J2,Viutv,三立台湾,无线新闻,三立新闻,东森综合,东森超视,东森电影,Now剧集,Now华剧,靖天资讯,星卫娱乐,卫视卡式
🏠广东频道:广东珠江,广东体育,广东新闻,广东卫视,大湾区卫视,广州影视,广州竞赛,江门综合,江门侨乡生活,佛山综合,深圳卫视,汕头综合,汕头经济,汕头文旅,茂名综合,茂名公共
</div>
<div>
🌊港·澳·台:翡翠台,明珠台,凤凰中文,凤凰资讯,凤凰香港,凤凰卫视,TVBS亚洲,香港卫视,纬来体育,纬来育乐,J2,Viutv,三立台湾,无线新闻,三立新闻,东森综合,东森超视,东森电影,Now剧集,Now华剧,靖天资讯,星卫娱乐,卫视卡式
</div>
<div>
🎬电影频道:CHC家庭影院,CHC动作电影,CHC高清电影,淘剧场,淘娱乐,淘电影,NewTV惊悚悬疑,NewTV动作电影,黑莓电影,纬来电影,靖天映画,靖天戏剧,星卫娱乐,艾尔达娱乐,经典电影,IPTV经典电影,天映经典,无线星河,星空卫视,私人影院,东森电影,龙祥电影,东森洋片,东森超视
</div>
<div>咪咕直播:咪咕直播1-45</div>
<div>🎥咪咕直播:咪咕直播1-45</div>
</details>

<p align="center" style="margin-top: 8px">
Expand Down
14 changes: 7 additions & 7 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@
</div>

<div align="justify">Customize the channel menu, automatically obtain and update the latest live source interfaces based on the template channels, and generate available interface files after speed test verification.</div>
<div align="justify">Default results include: Guangdong Channel, CCTV Channel, CCTV Pay Channel, Satellite TV Channel, Hong Kong · Macao · Taiwan Channel, Movie Channel, Migu Live Streaming.</div>
<div align="justify">Default results include: 📺CCTV Channel, 💰CCTV Pay Channel, 📡Satellite TV Channel, 🏠Guangdong Channel, 🌊Hong Kong · Macao · Taiwan Channel, 🎬Movie Channel, 🎥Migu Live Streaming.</div>

<details>
<summary>Specific channel</summary>
<div>
Guangdong Channel:广东珠江,广东体育,广东新闻,广东卫视,大湾区卫视,广州影视,广州竞赛,江门综合,江门侨乡生活,佛山综合,深圳卫视,汕头综合,汕头经济,汕头文旅,茂名综合,茂名公共
</div>
<div>
📺CCTV Channel:CCTV-1,CCTV-2,CCTV-3,CCTV-4,CCTV-5,CCTV-5+,CCTV-6,CCTV-7,CCTV-8,CCTV-9,CCTV-10,CCTV-11,CCTV-12,CCTV-13,CCTV-14,CCTV-15,CCTV-16,CCTV-17,CETV1,CETV2,CETV4,CETV5
</div>
<div>
CCTV Pay Channel:文化精品,央视台球,风云音乐,第一剧场,风云剧场,怀旧剧场,女性时尚,高尔夫网球,风云足球,电视指南,世界地理,兵器科技
💰CCTV Pay Channel:文化精品,央视台球,风云音乐,第一剧场,风云剧场,怀旧剧场,女性时尚,高尔夫网球,风云足球,电视指南,世界地理,兵器科技
</div>
<div>
📡Satellite TV Channel:广东卫视,香港卫视,浙江卫视,湖南卫视,北京卫视,湖北卫视,黑龙江卫视,安徽卫视,重庆卫视,东方卫视,东南卫视,甘肃卫视,广西卫视,贵州卫视,海南卫视,河北卫视,河南卫视,吉林卫视,江苏卫视,江西卫视,辽宁卫视,内蒙古卫视,宁夏卫视,青海卫视,山东卫视,山西卫视,陕西卫视,四川卫视,深圳卫视,三沙卫视,天津卫视,西藏卫视,新疆卫视,云南卫视
</div>
<div>
Hong Kong · Macao · Taiwan Channel:翡翠台,明珠台,凤凰中文,凤凰资讯,凤凰香港,凤凰卫视,TVBS亚洲,香港卫视,纬来体育,纬来育乐,J2,Viutv,三立台湾,无线新闻,三立新闻,东森综合,东森超视,东森电影,Now剧集,Now华剧,靖天资讯,星卫娱乐,卫视卡式
🏠Guangdong Channel:广东珠江,广东体育,广东新闻,广东卫视,大湾区卫视,广州影视,广州竞赛,江门综合,江门侨乡生活,佛山综合,深圳卫视,汕头综合,汕头经济,汕头文旅,茂名综合,茂名公共
</div>
<div>
🌊Hong Kong · Macao · Taiwan Channel:翡翠台,明珠台,凤凰中文,凤凰资讯,凤凰香港,凤凰卫视,TVBS亚洲,香港卫视,纬来体育,纬来育乐,J2,Viutv,三立台湾,无线新闻,三立新闻,东森综合,东森超视,东森电影,Now剧集,Now华剧,靖天资讯,星卫娱乐,卫视卡式
</div>
<div>
🎬Movie Channel:CHC家庭影院,CHC动作电影,CHC高清电影,淘剧场,淘娱乐,淘电影,NewTV惊悚悬疑,NewTV动作电影,黑莓电影,纬来电影,靖天映画,靖天戏剧,星卫娱乐,艾尔达娱乐,经典电影,IPTV经典电影,天映经典,无线星河,星空卫视,私人影院,东森电影,龙祥电影,东森洋片,东森超视
</div>
<div>Migu Live Streaming:咪咕直播1-45</div>
<div>🎥Migu Live Streaming:咪咕直播1-45</div>
</details>

<p align="center" style="margin-top: 8px">
Expand Down
42 changes: 21 additions & 21 deletions config/demo.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
广东频道,#genre#
广东珠江
广东体育
广东新闻
广东卫视
大湾区卫视
广州影视
广州竞赛
江门综合
江门侨乡生活
佛山综合
深圳卫视
汕头综合
汕头经济
汕头文旅
茂名综合
茂名公共

📺央视频道,#genre#
CCTV-1
CCTV-2
Expand All @@ -40,7 +22,7 @@ CETV2
CETV4
CETV5

央视付费频道,#genre#
💰央视付费频道,#genre#
文化精品
央视台球
风云音乐
Expand Down Expand Up @@ -90,7 +72,25 @@ CETV5
新疆卫视
云南卫视

港·澳·台,#genre#
🏠广东频道,#genre#
广东珠江
广东体育
广东新闻
广东卫视
大湾区卫视
广州影视
广州竞赛
江门综合
江门侨乡生活
佛山综合
深圳卫视
汕头综合
汕头经济
汕头文旅
茂名综合
茂名公共

🌊港·澳·台,#genre#
翡翠台
明珠台
凤凰中文
Expand Down Expand Up @@ -141,7 +141,7 @@ IPTV经典电影
东森洋片
东森超视

咪咕直播,#genre#
🎥咪咕直播,#genre#
咪咕直播1
咪咕直播2
咪咕直播3
Expand Down
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,15 @@ async def main(self):
self.subscribe_result,
self.online_search_result,
)
urls_total = self.get_urls_len()
channel_data_cache = copy.deepcopy(self.channel_data)
open_sort = config.getboolean("Settings", "open_sort")
if open_sort:
self.total = self.get_urls_len(filter=True)
print(f"Total urls: {urls_total}, need to sort: {self.total}")
sort_callback = lambda: self.pbar_update(name="测速")
self.update_progress(
f"正在测速排序, 共{self.total}个接口",
f"正在测速排序, 共{urls_total}个接口, {self.total}个接口需要进行测速",
0,
)
self.start_time = time()
Expand Down
5 changes: 4 additions & 1 deletion utils/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,10 @@ def write_channel_to_file(items, data, callback=None):
"""
open_update_time = config.getboolean("Settings", "open_update_time")
if open_update_time:
update_time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
now = datetime.datetime.now()
if os.environ.get("GITHUB_ACTIONS"):
now += datetime.timedelta(hours=8)
update_time = now.strftime("%Y-%m-%d %H:%M:%S")
update_channel_urls_txt("更新时间", f"{update_time}", ["url"])
for cate, channel_obj in items:
print(f"\n{cate}:", end=" ")
Expand Down
2 changes: 1 addition & 1 deletion utils/speed.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def is_ffmpeg_installed():
return False


async def ffmpeg_url(url):
async def ffmpeg_url(url, timeout=timeout):
"""
Get url info by ffmpeg
"""
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "1.4.8",
"version": "1.4.9",
"name": "电视直播源更新工具"
}

0 comments on commit a4c4114

Please sign in to comment.