mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-11 15:56:37 +08:00
优化
优化
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
// EmbyService produces JSON envelopes shaped like the most-consumed
|
||||
// Emby-API endpoints so existing players (Infuse / Yamby / Hills /
|
||||
// Senplayer / Kodi NextPVR extension / iOS native clients) can talk to
|
||||
// MediaStationGo without a custom plugin.
|
||||
// MMTL without a custom plugin.
|
||||
//
|
||||
// The shim is read-mostly: items, images, playback are fully covered;
|
||||
// 播放进度上报 / 收藏切换 是写路径但走我们自己的 PlaybackHistory /
|
||||
@@ -17,14 +17,14 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/ShukeBta/MediaStationGo/internal/config"
|
||||
"github.com/ShukeBta/MediaStationGo/internal/repository"
|
||||
"github.com/ShukeBta/MMTL/internal/config"
|
||||
"github.com/ShukeBta/MMTL/internal/repository"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// 用一个固定的 ServerId 字符串。Emby 客户端会缓存这个 id,第一次见到
|
||||
// 该 id 后会把所有派生数据(cookie/收藏/历史)和它绑定。
|
||||
const embyServerID = "mediastation-go-001"
|
||||
const embyServerID = "mmtl-001"
|
||||
|
||||
// embyCompatVersion deliberately reports an Emby 4.x server. Official Emby
|
||||
// clients reject Jellyfin-style 10.x identities as unsupported/too old during
|
||||
|
||||
Reference in New Issue
Block a user