Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #432

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Dev #432

Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,12 @@ docker run -d -p 8000:8000 guovern/tv-requests 或 tv-driver

## 赞赏

<div>如果对您有帮助,请赞赏,您的赞赏是我更新的动力~</div>
<img src="./static/images/appreciate.jpg" alt="赞赏码" title="赞赏码" style="height:350px" />
<div>请我喝杯饮料☕️吧~</div>

| 支付宝 | 微信 |
| ----------------------------------------- | ------------------------------------------- |
| ![支付宝扫码](./static/images/alipay.jpg) | ![微信扫码](./static/images/appreciate.jpg) |

## 免责声明

本项目仅供学习交流用途,接口数据均来源于网络,如有侵权,请联系删除
11 changes: 9 additions & 2 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,12 @@ For example: docker run -v /etc/docker/config:/tv-requests/config -v /etc/docker

## Appreciate

<div>If you find it helpful, please give a tip, your support is my motivation to update~</div>
<img src="./static/images/appreciate.jpg" alt="appreciate code" title="appreciate code" style="height:350px" />
<div>Please buy me a drink~~</div>

| Alipay | Wechat |
| ------------------------------------- | ----------------------------------------- |
| ![Alipay](./static/images/alipay.jpg) | ![Wechat](./static/images/appreciate.jpg) |

## Disclaimer

This project is for learning and communication purposes only. All interface data comes from the internet. If there is any infringement, please contact us for removal.
3 changes: 2 additions & 1 deletion config/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ origin_type_prefer = hotel,multicast,subscribe,online_search
hotel_num = 10
multicast_num = 10
subscribe_num = 10
online_search_num = 10
online_search_num = 10
open_url_info = True
1 change: 1 addition & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@
| multicast_num | 10 | 结果中偏好的组播源接口数量 |
| subscribe_num | 10 | 结果中偏好的订阅源接口数量 |
| online_search_num | 10 | 结果中偏好的在线搜索接口数量 |
| open_url_info | True | 开启显示接口说明信息,用于控制是否显示分辨率、接口协议类型等信息,为$符号后的内容,播放软件使用该信息对接口进行描述 |
1 change: 1 addition & 0 deletions docs/config_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@
| multicast_num | 10 | The number of preferred multicast source interfaces in the results |
| subscribe_num | 10 | The number of preferred subscribe source interfaces in the results |
| online_search_num | 10 | The number of preferred online search interfaces in the results |
| open_url_info | True | Enable display of API description information, used to control whether to show resolution, API protocol type, etc., the content after the $ symbol, playback software uses this information to describe the API |
Binary file added static/images/alipay.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tkinter_ui/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ def init_ui(self, root=None, version=None):
)
disclaimer_label.pack()

image = Image.open(resource_path("static/images/appreciate.jpg"))
image = Image.open(resource_path("static/images/alipay.jpg"))
resized_image = image.resize((250, 250))
photo = ImageTk.PhotoImage(resized_image)
image_label = tk.Label(about_window, image=photo)
image_label.image = photo
image_label.pack()

appreciate_label = tk.Label(about_window, text="您的赞助是我更新的动力")
appreciate_label = tk.Label(about_window, text="请我喝杯饮料☕️吧~")
appreciate_label.pack()

confirm_button = tk.ttk.Button(
Expand Down
8 changes: 7 additions & 1 deletion utils/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,13 @@ def get_total_urls_from_info_list(infoList):
if len(total_urls) >= urls_limit:
break

return list(dict.fromkeys(total_urls))[:urls_limit]
total_urls = list(dict.fromkeys(total_urls))[:urls_limit]

open_url_info = config.getboolean("Settings", "open_url_info", fallback=True)
if not open_url_info:
return [url.split("$", 1)[0] for url in total_urls]
else:
return total_urls


def get_total_urls_from_sorted_data(data):
Expand Down