Repository navigation
Releases: Mantouisyummy/TYStream
Release list
V1.6.1
Full Changelog: 1.6.0...1.6.1
🎉 Release Notes
🛠 Bug Fixes
-
修正直播偵測問題 🛠️
- 修正了無法正確偵測直播相關問題的錯誤,確保直播狀態能夠準確反映。
-
修正 Pydantic 驗證錯誤 ✅
- 修復了 Pydantic 在某些情況下無法正確解析資料的問題,導致缺少必要參數時出現驗證錯誤。
-
修正
offline_image_url空字串錯誤 🖼️- 當
offline_image_url回傳為空字串時,Pydantic不再發生錯誤,提升了穩定性。
- 當
V1.6.0
Full Changelog: 1.5.7...1.6.0
English Version
🚀 V1.6.0 Release Notes
🔄 Refactor
-
Move all sync methods to
sync_apidirectory
All synchronous methods have been reorganized under thesync_apidirectory for better code structure and maintainability. -
Migrate all platform return types from
dataclasstoPydantic
The return types for all streaming platforms have been refactored to usePydantic, enhancing data validation and consistency.
✨ Features
-
Added
yt_dlpsupport for YouTube live detection
yt_dlpcan now be used to detect live streams on YouTube, improving accuracy and flexibility, as well as serving as an alternative when the API is unavailable. -
Added overloads to YouTube async
check_stream_livemethod
The YouTube class now supports multiple overloads forcheck_stream_live, enabling better type inference and IDE support. -
Included API error details in OAuth exceptions
OAuth exceptions now provide more detailed error messages from the API response, improving debugging and error handling.
📖 Documentation
- Updated
README.mdto reflect the latest changes
The documentation has been updated to match the new version, including usage examples and feature descriptions.
This update brings better code structure, stronger Pydantic type security, and additional YouTube live stream detection (via yt_dlp). 🚀
中文版
🚀 V1.6.0 發布說明
🔄 重構
-
將所有同步方法移至
sync_api目錄
所有同步方法已重新整理至sync_api目錄,以提升程式碼結構與可維護性。 -
將所有平台的返回類型從
dataclass轉為Pydantic
已將所有直播平台的返回類型重構為Pydantic,以增強數據驗證與一致性。
✨ 新功能
-
為 YouTube 直播偵測加入
yt_dlp支援
現在可以使用yt_dlp偵測 YouTube 直播,提高偵測準確性與靈活性,以及作為API無法使用的替代方案。 -
為 YouTube 類別的異步
check_stream_live方法新增重載(overload)
YouTube 類別的check_stream_live方法現在支援多個重載,提高型別推導準確度,並改善 IDE 體驗。 -
OAuth 例外資訊新增 API 回傳的錯誤資訊
OAuth 例外資訊現在提供 API 回傳的詳細錯誤訊息,方便除錯與錯誤處理。
📖 文件更新
- 更新
README.md以符合最新版本
文件內容已更新至最新版本,包含使用範例與功能說明。
此版本帶來更佳的程式碼結構、更強的 Pydantic 型別安全性,以及額外的 YouTube 直播偵測功能(透過 yt_dlp)。🚀
V1.5.7
What's New
- Add live streaming information to the parameters of the API request.
- Added Unit Test for Youtube and Twitch Live Streaming.
Full Changelog: 1.5.5...1.5.7
V1.5.5
Full Changelog: 1.5.4...1.5.5
fix: Fixed problem with dataclasses folder not being included
V1.5.4
Full Changelog: 1.5.3...1.5.4
Fix: not including async_api folder
V1.5.3
Full Changelog: 1.5.2...1.5.3
There are no new features in this version, just a few fixes.
V1.5.2
Full Changelog: 1.5.1...1.5.2
Release Notes
Version 1.5.2
Refactoring
- Refactored the Twitch and Youtube classes in the async api and renamed them to “AsyncTwitch” and “AsyncYoutube”.
V1.5.1
Full Changelog: 1.5.0...1.5.1
Release Notes
Version 1.5.1
New Features
- PyPI Badge
- Added a PyPI badge to the
README.mdfile to display the package's status on PyPI.
- Added a PyPI badge to the
Refactoring
-
Type Annotations & BASE_URL
- Adjusted type annotations across the codebase for better type checking and readability.
- Changed
BASE_URLto a class variable, improving the structure and reusability of the code.
-
Logger Level
- Changed the logger level to
DEBUGto provide more detailed logging information during development and debugging.
- Changed the logger level to
Additions
- .gitignore
- Added a
.gitignorefile to the project to exclude unnecessary files and directories from version control, keeping the repository clean.
- Added a
1.5.0
Full Changelog: 1.4.0...1.5.0
Release Notes
Version 1.5.0
Refactors
- Separate data.py: Divided into two dataclass files for better modularity.
- Enhance type annotations: Improved type annotations throughout the codebase.
- Request method: Updated to use session for better performance and resource management.
Fixes
- Default and default_factory: Specified both default and default_factory to avoid initialization issues.
- User data retrieval: Fixed an issue where user data couldn't be found.
- Twitch and YouTube OAuth: Now shows a validation failure message when the wrong token is entered.
- Removed debug print: Removed unnecessary print statements.
Documentation
- README.md: Updated with new changes and information.
V1.4.0
feat: Support for Get Twitch User Data.
- feat: Added a new attribute named
userwith the typeTwitchUserDatato the TwitchStreamData dataclass. - fix: some async function forgot to add await,
- docs: add package support python version badge.
Full Changelog: 1.3.1...1.4.0