DA 

该项目汇聚并服务于各种内容提供商的 Stremio 插件。
概览
该项目汇聚并服务于各种内容提供商的 Stremio 插件。 - : 更新了元数据提取逻辑,优先处理 schema.org/VideoObject 元数据。这比基础 OpenGraph 标签提供了更可靠的标题、海报和描述。- : 增加了从源页面提取演员信息并将其包含在 Stremio 元数据响应中的支持。- : 集成了 zod 用于运行时对元数据响应进行验证,以确保符合 Stremio 附加 SDK 模式。 - : 重构流映射逻辑,在有基础 URL 可用时优先设置 playerFrameUrl(嵌入播放器)而非 externalUrl(浏览器打开)。这确保内容尽可能直接在 Stremio 应用的内部播放器中打开。- : 增强了媒体解析器,以更好地处理各种流类型和备份。 - :用包含时间戳和源标识符的结构化日志系统取代了基本的console.log调用。
概述(AI 翻译)
该项目汇聚并服务于各种内容提供商的 Stremio 插件。
近期修复与增强(修复/stremio-metadata-playback)
1.元数据检索改进
- 增强型抓取器:更新元数据提取逻辑,优先处理
schema.org/VideoObject元数据。这比基础OpenGraph标签提供更可靠的标题、海报和描述。 - 投射提取:增加了从源页提取演员信息并将其包含在 Stremio 元数据响应中的支持。
- 验证层:集成
zod,用于运行时对元数据响应进行验证,以确保符合Stremio附加组件SDK模式。
2.流播放修复
- 播放逻辑:重构流映射逻辑,在有基础URL可用时优先处理
playerFrameUrl(嵌入播放器)而非externalUrl(在浏览器中打开)。这确保内容尽可能直接在Stremio应用的内部播放器中打开。 - 分辨率提升:增强媒体解析器,更好地处理各种流类型和回退。
3.日志与调试
- 结构化日志:取代了基本的“控制台”。
本页由 AI 翻译,技术细节请以原文为准。
README
Asset Extractor - Stremio Add-on
This project aggregates and serves Stremio add-ons for various content providers.
Recent Fixes and Enhancements (fix/stremio-metadata-playback)
1. Metadata Retrieval Improvements
- Enhanced Scraper: Updated the metadata extraction logic to prioritize
schema.org/VideoObjectmetadata. This provides more reliable titles, posters, and descriptions compared to basic OpenGraph tags. - Cast Extraction: Added support for extracting actor information from source pages and including it in the Stremio metadata response.
- Validation Layer: Integrated
zodfor runtime validation of metadata responses to ensure compliance with the Stremio Add-on SDK schema.
2. Stream Playback Fixes
- Playback Logic: Refactored the stream mapping logic to prioritize
playerFrameUrl(Embed Player) overexternalUrl(Open in Browser) when a base URL is available. This ensures that content opens directly within the Stremio app’s internal player whenever possible. - Improved Resolution: Enhanced the media resolver to better handle various stream types and fallbacks.
3. Logging and Debugging
- Structured Logging: Replaced basic
console.logcalls with a structured logging system that includes timestamps and source identifiers. - Cache Monitoring: Added detailed logging for cache hits, misses, and sets when
DEBUG=1is enabled. - Debug Mode: Standardized the use of the
DEBUGenvironment variable across the provider, extractor, and cache modules.
4. Caching and Performance
- Cache Visibility: Improved the cache statistics reporting to provide a clearer view of the add-on’s performance.
- In-Memory Caching: Maintained efficient in-memory caching for catalogs, metadata, and streams to reduce external requests.
Deployment
The app is designed to be deployed on:
- Vercel
- Netlify
- Render
Ensure that the DEBUG environment variable is set to 1 if you need detailed logs for troubleshooting.
Testing
To test the fixes:
- Install the add-on in the Stremio app using the manifest URL.
- Verify that metadata (posters, descriptions, cast) loads correctly for various items.
- Ensure that clicking “Play” opens the video directly in the Stremio player rather than redirecting to a browser.
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add donatelloroberto/asset-extractor