Documentation ¶
Index ¶
- type EmbyScanVideoResult
- type NormalScanVideoResult
- type ScanVideoResult
- type ScrabbleUpVideoMovieEmbyInput
- type ScrabbleUpVideoMovieNormalInput
- type ScrabbleUpVideoSeriesEmbyInput
- type ScrabbleUpVideoSeriesNormalInput
- type TaskInputData
- type VideoScanAndRefreshHelper
- func (v *VideoScanAndRefreshHelper) Cancel()
- func (v *VideoScanAndRefreshHelper) FilterMovieAndSeriesNeedDownload(scanVideoResult *ScanVideoResult, scanLogic *scan_logic.ScanLogic) error
- func (v *VideoScanAndRefreshHelper) ReadSpeFile() error
- func (v *VideoScanAndRefreshHelper) RefreshMediaServerSubList() error
- func (v *VideoScanAndRefreshHelper) RestoreFixTimelineBK() error
- func (v *VideoScanAndRefreshHelper) ScanEmbyMovieAndSeries(scanVideoResult *ScanVideoResult) error
- func (v *VideoScanAndRefreshHelper) ScanNormalMovieAndSeries() (*ScanVideoResult, error)
- func (v *VideoScanAndRefreshHelper) ScrabbleUpVideoList(scanVideoResult *ScanVideoResult, pathUrlMap map[string]string) ([]backend2.MovieInfo, []backend2.SeasonInfo)
- func (v *VideoScanAndRefreshHelper) Start(scanLogic *scan_logic.ScanLogic) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmbyScanVideoResult ¶
type EmbyScanVideoResult struct { MovieSubNeedDlEmbyMixInfoList []emby.EmbyMixInfo SeriesSubNeedDlEmbyMixInfoMap map[string][]emby.EmbyMixInfo }
type NormalScanVideoResult ¶
type ScanVideoResult ¶
type ScanVideoResult struct { Normal *NormalScanVideoResult Emby *EmbyScanVideoResult }
type ScrabbleUpVideoMovieEmbyInput ¶
type ScrabbleUpVideoMovieEmbyInput struct {
OneMovieMixInfo emby.EmbyMixInfo
}
type ScrabbleUpVideoSeriesEmbyInput ¶
type ScrabbleUpVideoSeriesEmbyInput struct { OneSeasonInfo *backend2.SeasonInfo OneEpsMixInfo emby.EmbyMixInfo }
type TaskInputData ¶
type VideoScanAndRefreshHelper ¶
type VideoScanAndRefreshHelper struct { NeedForcedScanAndDownSub bool // 将会强制扫描所有的视频,下载字幕,替换已经存在的字幕,不进行时间段和已存在则跳过的判断。且不会进过 Emby API 的逻辑,智能进行强制去以本程序的方式去扫描。 NeedRestoreFixTimeLineBK bool // 从 csf-bk 文件还原时间轴修复前的字幕文件 SubParserHub *sub_parser_hub.SubParserHub // 字幕解析器 // contains filtered or unexported fields }
func NewVideoScanAndRefreshHelper ¶
func NewVideoScanAndRefreshHelper(inSubFormatter ifaces.ISubFormatter, fileDownloader *file_downloader.FileDownloader, downloadQueue *task_queue.TaskQueue) *VideoScanAndRefreshHelper
func (*VideoScanAndRefreshHelper) Cancel ¶
func (v *VideoScanAndRefreshHelper) Cancel()
func (*VideoScanAndRefreshHelper) FilterMovieAndSeriesNeedDownload ¶
func (v *VideoScanAndRefreshHelper) FilterMovieAndSeriesNeedDownload(scanVideoResult *ScanVideoResult, scanLogic *scan_logic.ScanLogic) error
FilterMovieAndSeriesNeedDownload 过滤出需要下载字幕的视频,比如是否跳过中文的剧集,是否超过3个月的下载时间,丢入队列中
func (*VideoScanAndRefreshHelper) ReadSpeFile ¶
func (v *VideoScanAndRefreshHelper) ReadSpeFile() error
ReadSpeFile 优先级最高。读取特殊文件,启用一些特殊的功能,比如 forced_scan_and_down_sub
func (*VideoScanAndRefreshHelper) RefreshMediaServerSubList ¶
func (v *VideoScanAndRefreshHelper) RefreshMediaServerSubList() error
RefreshMediaServerSubList 刷新媒体服务器的字幕列表
func (*VideoScanAndRefreshHelper) RestoreFixTimelineBK ¶
func (v *VideoScanAndRefreshHelper) RestoreFixTimelineBK() error
func (*VideoScanAndRefreshHelper) ScanEmbyMovieAndSeries ¶
func (v *VideoScanAndRefreshHelper) ScanEmbyMovieAndSeries(scanVideoResult *ScanVideoResult) error
ScanEmbyMovieAndSeries Emby媒体服务器,扫描出有那些电影、连续剧需要进行字幕下载的
func (*VideoScanAndRefreshHelper) ScanNormalMovieAndSeries ¶
func (v *VideoScanAndRefreshHelper) ScanNormalMovieAndSeries() (*ScanVideoResult, error)
ScanNormalMovieAndSeries 没有媒体服务器,扫描出有那些电影、连续剧需要进行字幕下载的
func (*VideoScanAndRefreshHelper) ScrabbleUpVideoList ¶
func (v *VideoScanAndRefreshHelper) ScrabbleUpVideoList(scanVideoResult *ScanVideoResult, pathUrlMap map[string]string) ([]backend2.MovieInfo, []backend2.SeasonInfo)
func (*VideoScanAndRefreshHelper) Start ¶
func (v *VideoScanAndRefreshHelper) Start(scanLogic *scan_logic.ScanLogic) error
Click to show internal directories.
Click to hide internal directories.