Skip to content

V1.6.0

Choose a tag to compare

@Mantouisyummy Mantouisyummy released this 25 Feb 12:25
· 6 commits to main since this release
3281fd7

Full Changelog: 1.5.7...1.6.0

English Version

🚀 V1.6.0 Release Notes

🔄 Refactor

  • Move all sync methods to sync_api directory
    All synchronous methods have been reorganized under the sync_api directory for better code structure and maintainability.

  • Migrate all platform return types from dataclass to Pydantic
    The return types for all streaming platforms have been refactored to use Pydantic, enhancing data validation and consistency.

✨ Features

  • Added yt_dlp support for YouTube live detection
    yt_dlp can 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_live method
    The YouTube class now supports multiple overloads for check_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.md to 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)。🚀