-
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.
- Loading branch information
1 parent
34a17c2
commit 511599a
Showing
1 changed file
with
86 additions
and
6 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 |
---|---|---|
@@ -1,9 +1,89 @@ | ||
# hololive_members_notification | ||
members stream notification | ||
|
||
会限直播通知。清填写app.py中smtp邮箱部分。 | ||
|
||
如果在中国大陆等网络受限制区域使用,查找app.py中这一句,配置你的代理地址。['yt-dlp', '--proxy', 'http://192.168.99.189:7899','-I', '1','--flat-playlist','--skip-download','--print', 'live_status', url], | ||
其余地区人请改为['yt-dlp','-I', '1','--flat-playlist','--skip-download','--print', 'live_status', url], | ||
--- | ||
|
||
使用前先安装yt-dlp,确定你使用的终端能直接使用yt-dlp命令。具体请github搜索yt-dlp | ||
# 直播通知应用 | ||
|
||
此应用旨在通知用户直播活动。请按照以下步骤配置和运行应用程序。 | ||
|
||
## 配置 | ||
|
||
### SMTP 邮箱设置 | ||
|
||
1. 打开 `app.py` 文件,找到 SMTP 邮箱配置部分。 | ||
2. 输入你的 SMTP 服务器详细信息,包括服务器地址、端口、用户名和密码。 | ||
|
||
### 代理配置 | ||
|
||
如果你在中国大陆或其他网络受限的区域,请按以下步骤配置你的代理: | ||
|
||
1. 打开 `app.py` 文件,找到包含 `yt-dlp` 代理配置的行。 | ||
2. 将该行更新为以下内容,以包括你的代理地址: | ||
```python | ||
['yt-dlp', '--proxy', 'http://192.168.99.189:7899', '-I', '1', '--flat-playlist', '--skip-download', '--print', 'live_status', url] | ||
``` | ||
将 `'http://192.168.99.189:7899'` 替换为你的代理地址。 | ||
|
||
对于其他没有网络限制的地区,请使用: | ||
```python | ||
['yt-dlp', '-I', '1', '--flat-playlist', '--skip-download', '--print', 'live_status', url] | ||
``` | ||
|
||
## 安装与运行 | ||
|
||
1. 首先,安装所需的 Python 包: | ||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
2. 然后,运行应用程序: | ||
```bash | ||
python app.py | ||
``` | ||
|
||
--- | ||
|
||
如有其他需要,请根据实际情况调整相关细节。 | ||
|
||
--- | ||
|
||
# Live Stream Notification Application | ||
|
||
This application is designed to notify users about live streams. Please follow the steps below to configure and run the application. | ||
|
||
## Configuration | ||
|
||
### SMTP Email Settings | ||
|
||
1. Open `app.py` and locate the SMTP email configuration section. | ||
2. Enter your SMTP server details, including the server address, port, username, and password. | ||
|
||
### Proxy Configuration | ||
|
||
If you are in China or other regions with restricted network access, follow these steps to configure your proxy: | ||
|
||
1. Open `app.py` and find the line that contains the proxy configuration for `yt-dlp`. | ||
2. Update the line to include your proxy address as follows: | ||
```python | ||
['yt-dlp', '--proxy', 'http://192.168.99.189:7899', '-I', '1', '--flat-playlist', '--skip-download', '--print', 'live_status', url] | ||
``` | ||
Replace `'http://192.168.99.189:7899'` with your proxy address. | ||
|
||
For other regions without network restrictions, use: | ||
```python | ||
['yt-dlp', '-I', '1', '--flat-playlist', '--skip-download', '--print', 'live_status', url] | ||
``` | ||
|
||
## Installation and Running | ||
|
||
1. First, install the required Python packages: | ||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
2. Then, run the application: | ||
```bash | ||
python app.py | ||
``` | ||
|
||
--- | ||
|
||
Feel free to adjust any additional details based on your specific needs. |