From af2b7c9d1847e3c5d100730d801a5e28adc5f9ce Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Sun, 28 Jul 2024 14:53:34 +0800 Subject: [PATCH] fix --- dbstruct/media.go | 50 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/dbstruct/media.go b/dbstruct/media.go index 9086171d..4cd6a35c 100644 --- a/dbstruct/media.go +++ b/dbstruct/media.go @@ -77,8 +77,56 @@ type Video struct { Fmt string `json:"fmt" bson:"fmt"` } +var SrcVidMap = map[int64]bool{ + 130337: true, + 130333: true, + 130319: true, + 127635: true, + 126370: true, + 126360: true, + 123141: true, + 123091: true, + 120215: true, + 120194: true, + 120186: true, + 120184: true, + 118368: true, + 118124: true, + 117231: true, + 117209: true, + 113009: true, + 112996: true, + 111162: true, + 110511: true, + 109734: true, + 108184: true, + 107836: true, + 106902: true, + 104865: true, + 104863: true, + 103998: true, + 103996: true, + 103982: true, + 103752: true, + 100327: true, + 100315: true, + 99188: true, + 97052: true, + 97044: true, + 95953: true, + 95934: true, + 95063: true, + 94282: true, + 93427: true, + 92073: true, + 91566: true, + 91546: true, + 90964: true, + 90962: true, +} + func (i *Video) SelectMinSizeOssId() string { - if i.Id == 130337 { + if SrcVidMap[i.Id] { return i.SrcId } if i == nil {