mirror of
https://github.com/ihmily/DouyinLiveRecorder.git
synced 2025-12-26 05:48:32 +08:00
refactor: rename package from douyinliverecorder to streamget
This commit is contained in:
parent
99ea143c78
commit
7bb778a875
8
demo.py
8
demo.py
@ -1,10 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import asyncio
|
||||
from douyinliverecorder.logger import logger
|
||||
from douyinliverecorder import spider
|
||||
from streamget.logger import logger
|
||||
from streamget import spider
|
||||
|
||||
# 以下示例直播间链接不保证时效性,请自行查看链接是否能正常访问
|
||||
# Please note that the following example live room links may not be up-to-date;
|
||||
# Please note that the following example live room links may not be up-to-date
|
||||
LIVE_STREAM_CONFIG = {
|
||||
"douyin": {
|
||||
"url": "https://live.douyin.com/745964462470",
|
||||
@ -208,4 +208,4 @@ def test_live_stream(platform_name: str, proxy_addr=None, cookies=None) -> None:
|
||||
|
||||
if __name__ == "__main__":
|
||||
platform = "douyin"
|
||||
test_live_stream(platform)
|
||||
test_live_stream(platform)
|
||||
|
||||
@ -15,7 +15,7 @@ import zipfile
|
||||
from pathlib import Path
|
||||
import requests
|
||||
from tqdm import tqdm
|
||||
from douyinliverecorder.logger import logger
|
||||
from streamget.logger import logger
|
||||
|
||||
current_platform = platform.system()
|
||||
execute_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
|
||||
|
||||
2
i18n.py
2
i18n.py
@ -20,7 +20,7 @@ else:
|
||||
locale_path = Path(execute_dir) / 'i18n'
|
||||
_tr = init_gettext(locale_path, 'zh_CN')
|
||||
original_print = builtins.print
|
||||
package_name = 'douyinliverecorder'
|
||||
package_name = 'streamget'
|
||||
|
||||
|
||||
def translated_print(*args, **kwargs):
|
||||
|
||||
8
main.py
8
main.py
@ -27,10 +27,10 @@ import urllib.request
|
||||
from urllib.error import URLError, HTTPError
|
||||
from typing import Any
|
||||
import configparser
|
||||
from douyinliverecorder import spider, stream
|
||||
from douyinliverecorder.proxy import ProxyDetector
|
||||
from douyinliverecorder.utils import logger
|
||||
from douyinliverecorder import utils
|
||||
from streamget import spider, stream
|
||||
from streamget.proxy import ProxyDetector
|
||||
from streamget.utils import logger
|
||||
from streamget import utils
|
||||
from msg_push import (
|
||||
dingtalk, xizhi, tg_bot, send_email, bark, ntfy
|
||||
)
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "douyinliverecorder"
|
||||
name = "streamget"
|
||||
version = "4.0.2"
|
||||
description = "An easy tool for recording live streams"
|
||||
description = "A simple and efficient tool to fetch live stream URLs from various platforms. Supports multiple platforms and easy integration."
|
||||
authors = [{ name = "Hmily" }]
|
||||
license = {text = "MIT"}
|
||||
readme = "README.md"
|
||||
|
||||
5
setup.py
5
setup.py
@ -2,10 +2,11 @@
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name='douyinliverecorder',
|
||||
name='streamget',
|
||||
version='4.0.2',
|
||||
author='Hmily',
|
||||
description='An easy tool for recording live streams',
|
||||
description='A simple and efficient tool to fetch live stream URLs from various platforms. Supports multiple '
|
||||
'platforms and easy integration.',
|
||||
long_description=open('README.md', encoding='utf-8').read(),
|
||||
long_description_content_type='text/markdown',
|
||||
url='https://github.com/ihmily/DouyinLiveRecorder',
|
||||
|
||||
@ -10,7 +10,7 @@ from loguru import logger
|
||||
script_path = os.path.split(os.path.realpath(sys.argv[0]))[0]
|
||||
|
||||
logger.add(
|
||||
f"{script_path}/logs/DouyinLiveRecorder.log",
|
||||
f"{script_path}/logs/streamget.log",
|
||||
level="DEBUG",
|
||||
format="{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {name}:{function}:{line} - {message}",
|
||||
filter=lambda i: i["level"].name != "INFO",
|
||||
Loading…
x
Reference in New Issue
Block a user