hot_fix

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HotFixProcess

func HotFixProcess(log *logrus.Logger, param types.HotFixParam) error

HotFixProcess 去 DB 中查询 Hotfix 的标记,看有那些需要修复,那些已经修复完毕

Types

type HotFix001

type HotFix001 struct {
	// contains filtered or unexported fields
}

本模块的目标是解决开发过程中遗留的功能缺陷需要升级的问题 之前字幕的命名不规范,现在需要进行一次批量的替换 chs_en[shooter] -> Chinese(中英,shooter)

func NewHotFix001

func NewHotFix001(log *logrus.Logger, movieRootDirs []string, seriesRootDirs []string) *HotFix001

func (HotFix001) GetKey

func (h HotFix001) GetKey() string

func (HotFix001) Process

func (h HotFix001) Process() (interface{}, error)

type HotFix002

type HotFix002 struct {
	// contains filtered or unexported fields
}

因为之前有失误把部分临时功能给发布了,所以之前定义 sha1 作为文件的唯一值,现在觉得要升级到 sha256 那么之前有的需要进行清理一次,然后才能够正确的执行后续新的 sha256 的逻辑

func NewHotFix002

func NewHotFix002(log *logrus.Logger) *HotFix002

func (HotFix002) GetKey

func (h HotFix002) GetKey() string

func (HotFix002) Process

func (h HotFix002) Process() (interface{}, error)

type HotFix003

type HotFix003 struct {
	// contains filtered or unexported fields
}

upload_played_video_sub 写出了 bug,本地判断字幕的时候,拼接目录错误,导致错误的标记已发送,下载需要改回来,都标记为未标记 bok, _, err := ch.scanPlayedVideoSubInfo.SubParserHub.DetermineFileTypeFromFile(filepath.Join(shareRootDir, notUploadedVideoSubInfos[0].StoreRPath))

func NewHotFix003

func NewHotFix003(log *logrus.Logger) *HotFix003

func (HotFix003) GetKey

func (h HotFix003) GetKey() string

func (HotFix003) Process

func (h HotFix003) Process() (interface{}, error)

type HotFix004

type HotFix004 struct {
	// contains filtered or unexported fields
}

字幕服务器在判断字幕是否包含中文的时候,没有进行 UTF8 的转换,导致故障丢气大量正确字幕

func NewHotFix004

func NewHotFix004(log *logrus.Logger) *HotFix004

func (HotFix004) GetKey

func (h HotFix004) GetKey() string

func (HotFix004) Process

func (h HotFix004) Process() (interface{}, error)

type HotFix005

type HotFix005 struct {
	// contains filtered or unexported fields
}

嗯···之前对于连续剧的一集的解析 Season 和 Episode 的方式是从文件名得到的,最近看到由反馈到削刮之后,命名是 S01.E01,这样的方式 那么就可能解析不对,现在需要重新改为从 nfo 或者 xml 文件中得到这个信息,就需要删除之前缓存的数据,然后重新上传,不然之前的数据可能有部分是错误的

func NewHotFix005

func NewHotFix005(log *logrus.Logger) *HotFix005

func (HotFix005) GetKey

func (h HotFix005) GetKey() string

func (HotFix005) Process

func (h HotFix005) Process() (interface{}, error)

type HotFix006

type HotFix006 struct {
	// contains filtered or unexported fields
}

因为 TMDB ID 是区分 Movie 和 Series 的,所以···需要把本地的缓存清空

func NewHotFix006

func NewHotFix006(log *logrus.Logger) *HotFix006

func (HotFix006) GetKey

func (h HotFix006) GetKey() string

func (HotFix006) Process

func (h HotFix006) Process() (interface{}, error)

type HotFix007 added in v0.52.3

type HotFix007 struct {
	// contains filtered or unexported fields
}

修复之前移除 subhd 和 zimuku 配置后,导致的无法获取字幕搜索链接的问题

func NewHotFix007 added in v0.52.3

func NewHotFix007(log *logrus.Logger) *HotFix007

func (HotFix007) GetKey added in v0.52.3

func (h HotFix007) GetKey() string

func (HotFix007) Process added in v0.52.3

func (h HotFix007) Process() (interface{}, error)

type OutStruct001

type OutStruct001 struct {
	RenamedFiles []string
	ErrFiles     []string
}

Jump to

Keyboard shortcuts

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