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)。🚀