Documentation ¶
Index ¶
- Constants
- func GetNumber2Float(input string) (float32, error)
- func GetNumber2int(input string) (int, error)
- func GetSeasonAndEpisodeFromSubFileName(videoFileName string) (bool, int, int, error)
- func GetSeriesDirRootFPath(oneEpFPath string) string
- func GetVideoInfoFromFileFullPath(videoFileFullPath string, isMovie bool) (types.VideoNfoInfo, time.Time, error)
- func GetVideoInfoFromFileName(fileName string) (*PTN.TorrentInfo, error)
- func GetVideoNfoInfo4Movie(movieFileFullPath string) (types.VideoNfoInfo, error)
- func GetVideoNfoInfo4OneSeriesEpisode(oneEpFPath string) (types.VideoNfoInfo, error)
- func GetVideoNfoInfo4SeriesDir(seriesDir string) (types.VideoNfoInfo, error)
- func GetVideoNfoInfoFromEpisode(oneEpFPath string) (types.VideoNfoInfo, error)
- func IsDir(path string) bool
- func IsFakeBDMVWorked(fakseVideFPath string) (bool, string, string)
- func IsFile(filePath string) bool
Constants ¶
View Source
const ( MetadataMovieXml = "movie.xml" MetadateTVNfo = "tvshow.nfo" )
Variables ¶
This section is empty.
Functions ¶
func GetNumber2Float ¶
func GetNumber2int ¶
func GetSeasonAndEpisodeFromSubFileName ¶
GetSeasonAndEpisodeFromSubFileName 从文件名推断 季 和 集 的信息 Season Episode,这个应该是次要方案,优先还是从 nfo 文件获取这些信息
func GetSeriesDirRootFPath ¶
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 IsFakeBDMVWorked ¶
IsFakeBDMVWorked 传入的是伪造的不存在的蓝光结构的视频全路径,如果是就返回 true 和 id.bdmv 的绝对路径 和 STREAM 绝对路径
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.