Skip to content

Commit

Permalink
refactor: rename package from douyinliverecorder to streamget
Browse files Browse the repository at this point in the history
  • Loading branch information
ihmily committed Feb 5, 2025
1 parent 99ea143 commit 7bb778a
Show file tree
Hide file tree
Showing 22 changed files with 16 additions and 15 deletions.
8 changes: 4 additions & 4 deletions demo.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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)
2 changes: 1 addition & 1 deletion ffmpeg_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
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]
Expand Down
2 changes: 1 addition & 1 deletion i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def init_gettext(locale_dir, locale_name):
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):
Expand Down
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
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
)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion douyinliverecorder/logger.py → streamget/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
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",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7bb778a

Please sign in to comment.