@@ -69,13 +69,13 @@ type MovieBase struct {
69
69
VendorInfo VendorInfo `gorm:"embedded;embeddedPrefix:vendor_info_" json:"vendorInfo,omitempty"`
70
70
Headers map [string ]string `gorm:"serializer:fastjson;type:text" json:"headers,omitempty"`
71
71
Subtitles map [string ]* Subtitle `gorm:"serializer:fastjson;type:text" json:"subtitles,omitempty"`
72
- URL string `gorm:"type:varchar(8192) " json:"url"`
73
- Name string `gorm:"not null;type:varchar(256) " json:"name"`
72
+ URL string `gorm:"type:text " json:"url"`
73
+ Name string `gorm:"not null;type:text " json:"name"`
74
74
Type string `json:"type"`
75
75
ParentID EmptyNullString `gorm:"type:char(32)" json:"parentId"`
76
76
MoreSources []* MoreSource `gorm:"serializer:fastjson;type:text" json:"moreSources,omitempty"`
77
- Danmu string `gorm:"type:varchar(8192) " json:"danmu"`
78
- StreamDanmu string `gorm:"type:varchar(8192) " json:"streamDanmu"`
77
+ Danmu string `gorm:"type:text " json:"danmu"`
78
+ StreamDanmu string `gorm:"type:text " json:"streamDanmu"`
79
79
Live bool `json:"live"`
80
80
Proxy bool `json:"proxy"`
81
81
RtmpSource bool `json:"rtmpSource"`
@@ -208,8 +208,8 @@ func (b *BilibiliStreamingInfo) Validate() error {
208
208
209
209
type AlistStreamingInfo struct {
210
210
// {/}serverId/Path
211
- Path string `gorm:"type:varchar(4096) " json:"path,omitempty"`
212
- Password string `gorm:"type:varchar(256 )" json:"password,omitempty"`
211
+ Path string `gorm:"type:text " json:"path,omitempty"`
212
+ Password string `gorm:"type:varchar(64 )" json:"password,omitempty"`
213
213
}
214
214
215
215
func GetAlistServerIDFromPath (path string ) (serverID string , filePath string , err error ) {
0 commit comments