emby_helper

package
v0.55.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

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 InputData

type InputData struct {
	Id string
	Wg *sync.WaitGroup
}

type OutData

type OutData struct {
	Info *emby2.EmbyMixInfo
	Err  error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL