video_scan_and_refresh_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: 42 Imported by: 0

Documentation

Index

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 NormalScanVideoResult struct {
	MoviesDirMap *treemap.Map
	SeriesDirMap *treemap.Map
}

type ScanVideoResult

type ScanVideoResult struct {
	Normal *NormalScanVideoResult
	Emby   *EmbyScanVideoResult
}

type ScrabbleUpVideoMovieEmbyInput

type ScrabbleUpVideoMovieEmbyInput struct {
	OneMovieMixInfo emby.EmbyMixInfo
}

type ScrabbleUpVideoMovieNormalInput

type ScrabbleUpVideoMovieNormalInput struct {
	OneMovieDirRootPath string
	OneMovieFPath       string
}

type ScrabbleUpVideoSeriesEmbyInput

type ScrabbleUpVideoSeriesEmbyInput struct {
	OneSeasonInfo *backend2.SeasonInfo
	OneEpsMixInfo emby.EmbyMixInfo
}

type ScrabbleUpVideoSeriesNormalInput

type ScrabbleUpVideoSeriesNormalInput struct {
	OneSeriesRootDir      string
	OneSeriesRootPathName string
}

type TaskInputData

type TaskInputData struct {
	Index     int
	InputPath string
}

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

Jump to

Keyboard shortcuts

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