Documentation ¶
Index ¶
- type EmbyHelper
- func (em *EmbyHelper) CheckPath(embySettings *settings.EmbySettings, pathType string, ...) ([]string, error)
- func (em *EmbyHelper) GetInternalEngSubAndExChineseEnglishSub(embySettings *settings.EmbySettings, videoId string) (bool, []emby2.SubInfo, []emby2.SubInfo, error)
- func (em *EmbyHelper) GetPlayedItemsSubtitle(embySettings *settings.EmbySettings, maxRequestVideoNumber int) (map[string]string, map[string]string, error)
- func (em *EmbyHelper) GetRecentlyAddVideoList(embySettings *settings.EmbySettings, SkipWatched bool, ...) ([]emby2.EmbyMixInfo, []emby2.EmbyMixInfo, error)
- func (em *EmbyHelper) GetRecentlyAddVideoListWithNoChineseSubtitle(embySettings *settings.EmbySettings, needForcedScanAndDownSub ...bool) ([]emby2.EmbyMixInfo, map[string][]emby2.EmbyMixInfo, error)
- func (em *EmbyHelper) GetVideoIDPlayedMap(embySettings *settings.EmbySettings, maxRequestVideoNumber int) map[string]bool
- func (em *EmbyHelper) IsVideoPlayed(embySettings *settings.EmbySettings, videoID string) (bool, error)
- func (em *EmbyHelper) RefreshEmbySubList(embySettings *settings.EmbySettings, SkipWatched bool, ...) (bool, error)
- type InputData
- type OutData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmbyHelper ¶
type EmbyHelper struct { EmbyApi *embyHelper.EmbyApi // contains filtered or unexported fields }
func NewEmbyHelper ¶
func NewEmbyHelper(dealers *media_info_dealers.Dealers) *EmbyHelper
func (*EmbyHelper) CheckPath ¶
func (em *EmbyHelper) CheckPath(embySettings *settings.EmbySettings, pathType string, maxRequestVideoNumber int) ([]string, error)
CheckPath 检查路径 EmbyConfig 配置中的映射路径是否是有效的,
func (*EmbyHelper) GetInternalEngSubAndExChineseEnglishSub ¶
func (em *EmbyHelper) GetInternalEngSubAndExChineseEnglishSub(embySettings *settings.EmbySettings, videoId string) (bool, []emby2.SubInfo, []emby2.SubInfo, error)
GetInternalEngSubAndExChineseEnglishSub 获取对应 videoId 的内置英文字幕,外置中文字幕(只要是带有中文的都算,简体、繁体、简英、繁英,需要后续额外的判断)字幕
func (*EmbyHelper) GetPlayedItemsSubtitle ¶
func (em *EmbyHelper) GetPlayedItemsSubtitle(embySettings *settings.EmbySettings, maxRequestVideoNumber int) (map[string]string, map[string]string, error)
GetPlayedItemsSubtitle 所有用户标记播放过的视频,返回 电影、连续剧, 视频全路径 -- 对应字幕全路径(经过转换的)
func (*EmbyHelper) GetRecentlyAddVideoList ¶
func (em *EmbyHelper) GetRecentlyAddVideoList(embySettings *settings.EmbySettings, SkipWatched bool, maxRequestVideoNumber int) ([]emby2.EmbyMixInfo, []emby2.EmbyMixInfo, error)
GetRecentlyAddVideoList 获取最近新添加的视频
func (*EmbyHelper) GetRecentlyAddVideoListWithNoChineseSubtitle ¶
func (em *EmbyHelper) GetRecentlyAddVideoListWithNoChineseSubtitle(embySettings *settings.EmbySettings, needForcedScanAndDownSub ...bool) ([]emby2.EmbyMixInfo, map[string][]emby2.EmbyMixInfo, error)
GetRecentlyAddVideoListWithNoChineseSubtitle 获取最近新添加的视频,且没有中文字幕的
func (*EmbyHelper) GetVideoIDPlayedMap ¶
func (em *EmbyHelper) GetVideoIDPlayedMap(embySettings *settings.EmbySettings, maxRequestVideoNumber int) map[string]bool
GetVideoIDPlayedMap 获取已经播放过的视频的ID
func (*EmbyHelper) IsVideoPlayed ¶
func (em *EmbyHelper) IsVideoPlayed(embySettings *settings.EmbySettings, videoID string) (bool, error)
func (*EmbyHelper) RefreshEmbySubList ¶
func (em *EmbyHelper) RefreshEmbySubList(embySettings *settings.EmbySettings, SkipWatched bool, maxRequestVideoNumber int) (bool, error)
RefreshEmbySubList 字幕下载完毕一次,就可以触发一次这个。并发 6 线程去刷新
type OutData ¶
type OutData struct { Info *emby2.EmbyMixInfo Err error }
Click to show internal directories.
Click to hide internal directories.