decode

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

Documentation

Index

Constants

View Source
const (
	MetadataMovieXml = "movie.xml"

	MetadateTVNfo = "tvshow.nfo"
)

Variables

This section is empty.

Functions

func GetNumber2Float

func GetNumber2Float(input string) (float32, error)

func GetNumber2int

func GetNumber2int(input string) (int, error)

func GetSeasonAndEpisodeFromSubFileName

func GetSeasonAndEpisodeFromSubFileName(videoFileName string) (bool, int, int, error)

GetSeasonAndEpisodeFromSubFileName 从文件名推断 季 和 集 的信息 Season Episode,这个应该是次要方案,优先还是从 nfo 文件获取这些信息

func GetSeriesDirRootFPath

func GetSeriesDirRootFPath(oneEpFPath string) string

GetSeriesDirRootFPath 从一集的绝对路径推断这个连续剧的根目录绝对路径

func GetVideoInfoFromFileFullPath

func GetVideoInfoFromFileFullPath(videoFileFullPath string, isMovie bool) (types.VideoNfoInfo, time.Time, error)

GetVideoInfoFromFileFullPath 从全文件路径推断文件信息,这个应该是次要方案,优先还是从 nfo 文件获取这些信息

func GetVideoInfoFromFileName

func GetVideoInfoFromFileName(fileName string) (*PTN.TorrentInfo, error)

GetVideoInfoFromFileName 从文件名推断文件信息,这个应该是次要方案,优先还是从 nfo 文件获取这些信息

func GetVideoNfoInfo4Movie

func GetVideoNfoInfo4Movie(movieFileFullPath string) (types.VideoNfoInfo, error)

GetVideoNfoInfo4Movie 从电影视频文件获取 IMDB info,只能确定拿到 IMDB ID 是靠谱的

func GetVideoNfoInfo4OneSeriesEpisode

func GetVideoNfoInfo4OneSeriesEpisode(oneEpFPath string) (types.VideoNfoInfo, error)

GetVideoNfoInfo4OneSeriesEpisode 获取这一集的 IMDB info,可能会因为没有获取到 IMDB ID 而返回 common.CanNotFindIMDBID 错误,但是 imdbInfo 其他信息是可用的

func GetVideoNfoInfo4SeriesDir

func GetVideoNfoInfo4SeriesDir(seriesDir string) (types.VideoNfoInfo, error)

GetVideoNfoInfo4SeriesDir 从一个连续剧的根目录获取 IMDB info

func GetVideoNfoInfoFromEpisode

func GetVideoNfoInfoFromEpisode(oneEpFPath string) (types.VideoNfoInfo, error)

GetVideoNfoInfoFromEpisode 从一集获取这个 Series 的 IMDB info

func IsDir

func IsDir(path string) bool

IsDir 存在且是文件夹

func IsFakeBDMVWorked

func IsFakeBDMVWorked(fakseVideFPath string) (bool, string, string)

IsFakeBDMVWorked 传入的是伪造的不存在的蓝光结构的视频全路径,如果是就返回 true 和 id.bdmv 的绝对路径 和 STREAM 绝对路径

func IsFile

func IsFile(filePath string) bool

IsFile 存在且是文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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