From a6479e229a37cf05e0fd0f0746f650718f1409ef Mon Sep 17 00:00:00 2001 From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Sat, 15 Oct 2022 22:00:53 +0800 Subject: [PATCH] =?utf8?q?=E6=B8=85=E6=99=B0=E5=BA=A6=E7=9B=B8=E5=85=B3?= =?utf8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- CV/Var.go | 6 +- F/api.go | 24 +- Json/NEPTUNE_IS_MY_WAIFU.go | 457 ++++++++++++++++++++++++++++++++++++ Json/getRoomPlayInfo.go | 62 +++++ Json/roomInitRes.go | 56 ----- demo/config/config_K_v.json | 4 +- 6 files changed, 535 insertions(+), 74 deletions(-) create mode 100644 Json/NEPTUNE_IS_MY_WAIFU.go create mode 100644 Json/getRoomPlayInfo.go delete mode 100644 Json/roomInitRes.go diff --git a/CV/Var.go b/CV/Var.go index 2007211..cd55a57 100644 --- a/CV/Var.go +++ b/CV/Var.go @@ -48,9 +48,8 @@ type Common struct { func (t *Common) init() Common { t.Qn = map[int]string{ // no change + 20000: "4K", 10000: "原画", - 800: "4K", - 401: "蓝光(杜比)", 400: "蓝光", 250: "超清", 150: "高清", @@ -58,9 +57,8 @@ func (t *Common) init() Common { } t.AcceptQn = map[int]string{ // no change + 20000: "4K", 10000: "原画", - 800: "4K", - 401: "蓝光(杜比)", 400: "蓝光", 250: "超清", 150: "高清", diff --git a/F/api.go b/F/api.go index 79ec14a..3e81636 100644 --- a/F/api.go +++ b/F/api.go @@ -268,27 +268,25 @@ func (c *GetFunc) Html() (missKey []string) { //Roominitres { - var j struct { - Roominitres J.Roominitres `json:"roomInitRes"` - } + var j J.NEPTUNE_IS_MY_WAIFU if e := json.Unmarshal([]byte(s), &j); e != nil { apilog.L(`E: `, e) return - } else if j.Roominitres.Code != 0 { - apilog.L(`E: `, j.Roominitres.Message) + } else if j.RoomInitRes.Code != 0 { + apilog.L(`E: `, j.RoomInitRes.Message) return } //主播uid - c.UpUid = j.Roominitres.Data.UID + c.UpUid = j.RoomInitRes.Data.UID //房间号(完整) - if j.Roominitres.Data.RoomID != 0 { - c.Roomid = j.Roominitres.Data.RoomID + if j.RoomInitRes.Data.RoomID != 0 { + c.Roomid = j.RoomInitRes.Data.RoomID } //直播开始时间 - c.Live_Start_Time = time.Unix(int64(j.Roominitres.Data.LiveTime), 0) + c.Live_Start_Time = time.Unix(int64(j.RoomInitRes.Data.LiveTime), 0) //是否在直播 - c.Liveing = j.Roominitres.Data.LiveStatus == 1 + c.Liveing = j.RoomInitRes.Data.LiveStatus == 1 //未在直播,不获取直播流 if !c.Liveing { @@ -329,7 +327,7 @@ func (c *GetFunc) Html() (missKey []string) { apilog.L(`T: `, `默认flv`) } - for _, v := range j.Roominitres.Data.PlayurlInfo.Playurl.Stream { + for _, v := range j.RoomInitRes.Data.PlayurlInfo.Playurl.Stream { if v.ProtocolName != want_type.Protocol_name { continue } @@ -535,7 +533,7 @@ func (c *GetFunc) getRoomPlayInfo() (missKey []string) { return } - var j J.Roominitres + var j J.GetRoomPlayInfo if e := json.Unmarshal([]byte(req.Respon), &j); e != nil { apilog.L(`E: `, e) @@ -726,7 +724,7 @@ func (c *GetFunc) getRoomPlayInfoByQn() (missKey []string) { return } - var j J.Roominitres + var j J.GetRoomPlayInfo if e := json.Unmarshal([]byte(req.Respon), &j); e != nil { apilog.L(`E: `, e) diff --git a/Json/NEPTUNE_IS_MY_WAIFU.go b/Json/NEPTUNE_IS_MY_WAIFU.go new file mode 100644 index 0000000..42f7dfe --- /dev/null +++ b/Json/NEPTUNE_IS_MY_WAIFU.go @@ -0,0 +1,457 @@ +package part + +type NEPTUNE_IS_MY_WAIFU struct { + RoomInitRes struct { + Code int `json:"code"` + Message string `json:"message"` + TTL int `json:"ttl"` + Data struct { + RoomID int `json:"room_id"` + ShortID int `json:"short_id"` + UID int `json:"uid"` + IsHidden bool `json:"is_hidden"` + IsLocked bool `json:"is_locked"` + IsPortrait bool `json:"is_portrait"` + LiveStatus int `json:"live_status"` + HiddenTill int `json:"hidden_till"` + LockTill int `json:"lock_till"` + Encrypted bool `json:"encrypted"` + PwdVerified bool `json:"pwd_verified"` + LiveTime int `json:"live_time"` + RoomShield int `json:"room_shield"` + AllSpecialTypes []int `json:"all_special_types"` + PlayurlInfo struct { + ConfJSON string `json:"conf_json"` + Playurl struct { + Cid int `json:"cid"` + GQnDesc []struct { + Qn int `json:"qn"` + Desc string `json:"desc"` + HdrDesc string `json:"hdr_desc"` + AttrDesc interface{} `json:"attr_desc"` + } `json:"g_qn_desc"` + Stream []struct { + ProtocolName string `json:"protocol_name"` + Format []struct { + FormatName string `json:"format_name"` + Codec []struct { + CodecName string `json:"codec_name"` + CurrentQn int `json:"current_qn"` + AcceptQn []int `json:"accept_qn"` + BaseURL string `json:"base_url"` + URLInfo []struct { + Host string `json:"host"` + Extra string `json:"extra"` + StreamTTL int `json:"stream_ttl"` + } `json:"url_info"` + HdrQn interface{} `json:"hdr_qn"` + DolbyType int `json:"dolby_type"` + AttrName string `json:"attr_name"` + } `json:"codec"` + } `json:"format"` + } `json:"stream"` + P2PData struct { + P2P bool `json:"p2p"` + P2PType int `json:"p2p_type"` + MP2P bool `json:"m_p2p"` + MServers interface{} `json:"m_servers"` + } `json:"p2p_data"` + DolbyQn interface{} `json:"dolby_qn"` + } `json:"playurl"` + } `json:"playurl_info"` + } `json:"data"` + } `json:"roomInitRes"` + RoomInfoRes struct { + Code int `json:"code"` + Message string `json:"message"` + TTL int `json:"ttl"` + Data struct { + RoomInfo struct { + UID int `json:"uid"` + RoomID int `json:"room_id"` + ShortID int `json:"short_id"` + Title string `json:"title"` + Cover string `json:"cover"` + Tags string `json:"tags"` + Background string `json:"background"` + Description string `json:"description"` + LiveStatus int `json:"live_status"` + LiveStartTime int `json:"live_start_time"` + LiveScreenType int `json:"live_screen_type"` + LockStatus int `json:"lock_status"` + LockTime int `json:"lock_time"` + HiddenStatus int `json:"hidden_status"` + HiddenTime int `json:"hidden_time"` + AreaID int `json:"area_id"` + AreaName string `json:"area_name"` + ParentAreaID int `json:"parent_area_id"` + ParentAreaName string `json:"parent_area_name"` + Keyframe string `json:"keyframe"` + SpecialType int `json:"special_type"` + UpSession string `json:"up_session"` + PkStatus int `json:"pk_status"` + IsStudio bool `json:"is_studio"` + Pendants struct { + Frame struct { + Name string `json:"name"` + Value string `json:"value"` + Desc string `json:"desc"` + } `json:"frame"` + } `json:"pendants"` + OnVoiceJoin int `json:"on_voice_join"` + Online int `json:"online"` + RoomType struct { + Three21 int `json:"3-21"` + Three50 int `json:"3-50"` + } `json:"room_type"` + } `json:"room_info"` + AnchorInfo struct { + BaseInfo struct { + Uname string `json:"uname"` + Face string `json:"face"` + Gender string `json:"gender"` + OfficialInfo struct { + Role int `json:"role"` + Title string `json:"title"` + Desc string `json:"desc"` + IsNft int `json:"is_nft"` + NftDmark string `json:"nft_dmark"` + } `json:"official_info"` + } `json:"base_info"` + LiveInfo struct { + Level int `json:"level"` + LevelColor int `json:"level_color"` + Score int `json:"score"` + UpgradeScore int `json:"upgrade_score"` + Current []int `json:"current"` + Next []interface{} `json:"next"` + Rank string `json:"rank"` + } `json:"live_info"` + RelationInfo struct { + Attention int `json:"attention"` + } `json:"relation_info"` + MedalInfo struct { + MedalName string `json:"medal_name"` + MedalID int `json:"medal_id"` + Fansclub int `json:"fansclub"` + } `json:"medal_info"` + } `json:"anchor_info"` + NewsInfo struct { + UID int `json:"uid"` + Ctime string `json:"ctime"` + Content string `json:"content"` + } `json:"news_info"` + RankdbInfo struct { + Roomid int `json:"roomid"` + RankDesc string `json:"rank_desc"` + Color string `json:"color"` + H5URL string `json:"h5_url"` + WebURL string `json:"web_url"` + Timestamp int `json:"timestamp"` + } `json:"rankdb_info"` + AreaRankInfo struct { + AreaRank struct { + Index int `json:"index"` + Rank string `json:"rank"` + } `json:"areaRank"` + LiveRank struct { + Rank string `json:"rank"` + } `json:"liveRank"` + } `json:"area_rank_info"` + BattleRankEntryInfo interface{} `json:"battle_rank_entry_info"` + TabInfo struct { + List []struct { + Type string `json:"type"` + Desc string `json:"desc"` + IsFirst int `json:"isFirst"` + IsEvent int `json:"isEvent"` + EventType string `json:"eventType"` + ListType string `json:"listType"` + APIPrefix string `json:"apiPrefix"` + RankName string `json:"rank_name"` + } `json:"list"` + } `json:"tab_info"` + ActivityInitInfo struct { + EventList []interface{} `json:"eventList"` + WeekInfo struct { + BannerInfo interface{} `json:"bannerInfo"` + GiftName interface{} `json:"giftName"` + } `json:"weekInfo"` + GiftName interface{} `json:"giftName"` + Lego struct { + Timestamp int `json:"timestamp"` + Config string `json:"config"` + } `json:"lego"` + } `json:"activity_init_info"` + VoiceJoinInfo struct { + Status struct { + Open int `json:"open"` + AnchorOpen int `json:"anchor_open"` + Status int `json:"status"` + UID int `json:"uid"` + UserName string `json:"user_name"` + HeadPic string `json:"head_pic"` + Guard int `json:"guard"` + StartAt int `json:"start_at"` + CurrentTime int `json:"current_time"` + } `json:"status"` + Icons struct { + IconClose string `json:"icon_close"` + IconOpen string `json:"icon_open"` + IconWait string `json:"icon_wait"` + IconStarting string `json:"icon_starting"` + } `json:"icons"` + WebShareLink string `json:"web_share_link"` + } `json:"voice_join_info"` + AdBannerInfo struct { + Data []struct { + ID int `json:"id"` + Title string `json:"title"` + Location string `json:"location"` + Position int `json:"position"` + Pic string `json:"pic"` + Link string `json:"link"` + Weight int `json:"weight"` + RoomID int `json:"room_id"` + UpID int `json:"up_id"` + ParentAreaID int `json:"parent_area_id"` + AreaID int `json:"area_id"` + LiveStatus int `json:"live_status"` + AvID int `json:"av_id"` + IsAd bool `json:"is_ad"` + AdTransparentContent interface{} `json:"ad_transparent_content"` + ShowAdIcon bool `json:"show_ad_icon"` + } `json:"data"` + } `json:"ad_banner_info"` + SkinInfo struct { + ID int `json:"id"` + SkinName string `json:"skin_name"` + SkinConfig string `json:"skin_config"` + ShowText string `json:"show_text"` + SkinURL string `json:"skin_url"` + StartTime int `json:"start_time"` + EndTime int `json:"end_time"` + CurrentTime int `json:"current_time"` + } `json:"skin_info"` + WebBannerInfo struct { + ID int `json:"id"` + Title string `json:"title"` + Left string `json:"left"` + Right string `json:"right"` + JumpURL string `json:"jump_url"` + BgColor string `json:"bg_color"` + HoverColor string `json:"hover_color"` + TextBgColor string `json:"text_bg_color"` + TextHoverColor string `json:"text_hover_color"` + LinkText string `json:"link_text"` + LinkColor string `json:"link_color"` + InputColor string `json:"input_color"` + InputTextColor string `json:"input_text_color"` + InputHoverColor string `json:"input_hover_color"` + InputBorderColor string `json:"input_border_color"` + InputSearchColor string `json:"input_search_color"` + } `json:"web_banner_info"` + LolInfo interface{} `json:"lol_info"` + PkInfo interface{} `json:"pk_info"` + BattleInfo interface{} `json:"battle_info"` + SilentRoomInfo struct { + Type string `json:"type"` + Level int `json:"level"` + Second int `json:"second"` + ExpireTime int `json:"expire_time"` + } `json:"silent_room_info"` + SwitchInfo struct { + CloseGuard bool `json:"close_guard"` + CloseGift bool `json:"close_gift"` + CloseOnline bool `json:"close_online"` + CloseDanmaku bool `json:"close_danmaku"` + } `json:"switch_info"` + RecordSwitchInfo interface{} `json:"record_switch_info"` + RoomConfigInfo struct { + DmText string `json:"dm_text"` + } `json:"room_config_info"` + GiftMemoryInfo struct { + List interface{} `json:"list"` + } `json:"gift_memory_info"` + NewSwitchInfo struct { + RoomSocket int `json:"room-socket"` + RoomPropSend int `json:"room-prop-send"` + RoomSailing int `json:"room-sailing"` + RoomInfoPopularity int `json:"room-info-popularity"` + RoomDanmakuEditor int `json:"room-danmaku-editor"` + RoomEffect int `json:"room-effect"` + RoomFansMedal int `json:"room-fans_medal"` + RoomReport int `json:"room-report"` + RoomFeedback int `json:"room-feedback"` + RoomPlayerWatermark int `json:"room-player-watermark"` + RoomRecommendLiveOff int `json:"room-recommend-live_off"` + RoomActivity int `json:"room-activity"` + RoomWebBanner int `json:"room-web_banner"` + RoomSilverSeedsBox int `json:"room-silver_seeds-box"` + RoomWishingBottle int `json:"room-wishing_bottle"` + RoomBoard int `json:"room-board"` + RoomSupplication int `json:"room-supplication"` + RoomHourRank int `json:"room-hour_rank"` + RoomWeekRank int `json:"room-week_rank"` + RoomAnchorRank int `json:"room-anchor_rank"` + RoomInfoIntegral int `json:"room-info-integral"` + RoomSuperChat int `json:"room-super-chat"` + RoomTab int `json:"room-tab"` + RoomHotRank int `json:"room-hot-rank"` + FansMedalProgress int `json:"fans-medal-progress"` + GiftBayScreen int `json:"gift-bay-screen"` + RoomEnter int `json:"room-enter"` + RoomMyIdol int `json:"room-my-idol"` + RoomTopic int `json:"room-topic"` + FansClub int `json:"fans-club"` + } `json:"new_switch_info"` + SuperChatInfo struct { + Status int `json:"status"` + JumpURL string `json:"jump_url"` + Icon string `json:"icon"` + RankedMark int `json:"ranked_mark"` + MessageList []interface{} `json:"message_list"` + } `json:"super_chat_info"` + OnlineGoldRankInfoV2 struct { + List []struct { + UID int `json:"uid"` + Face string `json:"face"` + Uname string `json:"uname"` + Score string `json:"score"` + Rank int `json:"rank"` + GuardLevel int `json:"guard_level"` + } `json:"list"` + } `json:"online_gold_rank_info_v2"` + DmBrushInfo struct { + MinTime int `json:"min_time"` + BrushCount int `json:"brush_count"` + SliceCount int `json:"slice_count"` + StorageTime int `json:"storage_time"` + } `json:"dm_brush_info"` + DmEmoticonInfo struct { + IsOpenEmoticon int `json:"is_open_emoticon"` + IsShieldEmoticon int `json:"is_shield_emoticon"` + } `json:"dm_emoticon_info"` + DmTagInfo struct { + DmTag int `json:"dm_tag"` + Platform []interface{} `json:"platform"` + Extra string `json:"extra"` + DmChronosExtra string `json:"dm_chronos_extra"` + DmMode []interface{} `json:"dm_mode"` + DmSettingSwitch int `json:"dm_setting_switch"` + MaterialConf interface{} `json:"material_conf"` + } `json:"dm_tag_info"` + TopicInfo struct { + TopicID int `json:"topic_id"` + TopicName string `json:"topic_name"` + } `json:"topic_info"` + GameInfo struct { + GameStatus int `json:"game_status"` + } `json:"game_info"` + WatchedShow struct { + Switch bool `json:"switch"` + Num int `json:"num"` + TextSmall string `json:"text_small"` + TextLarge string `json:"text_large"` + Icon string `json:"icon"` + IconLocation int `json:"icon_location"` + IconWeb string `json:"icon_web"` + } `json:"watched_show"` + TopicRoomInfo struct { + InteractiveH5URL string `json:"interactive_h5_url"` + Watermark int `json:"watermark"` + } `json:"topic_room_info"` + ShowReserveStatus bool `json:"show_reserve_status"` + SecondCreateInfo struct { + ClickPermission int `json:"click_permission"` + CommonPermission int `json:"common_permission"` + IconName string `json:"icon_name"` + IconURL string `json:"icon_url"` + URL string `json:"url"` + } `json:"second_create_info"` + PlayTogetherInfo struct { + Switch int `json:"switch"` + IconList []interface{} `json:"icon_list"` + } `json:"play_together_info"` + CloudGameInfo struct { + IsGaming int `json:"is_gaming"` + } `json:"cloud_game_info"` + LikeInfoV3 struct { + TotalLikes int `json:"total_likes"` + ClickBlock bool `json:"click_block"` + CountBlock bool `json:"count_block"` + GuildEmoText string `json:"guild_emo_text"` + GuildDmText string `json:"guild_dm_text"` + LikeDmText string `json:"like_dm_text"` + HandIcons []string `json:"hand_icons"` + DmIcons []string `json:"dm_icons"` + EggshellsIcon string `json:"eggshells_icon"` + CountShowTime int `json:"count_show_time"` + ProcessIcon string `json:"process_icon"` + ProcessColor string `json:"process_color"` + } `json:"like_info_v3"` + LivePlayInfo struct { + ShowWidgetBanner bool `json:"show_widget_banner"` + } `json:"live_play_info"` + MultiVoice struct { + SwitchStatus int `json:"switch_status"` + Members []interface{} `json:"members"` + } `json:"multi_voice"` + VideoConnectionInfo interface{} `json:"video_connection_info"` + PlayerThrottleInfo struct { + Status int `json:"status"` + NormalSleepTime int `json:"normal_sleep_time"` + FullscreenSleepTime int `json:"fullscreen_sleep_time"` + TabSleepTime int `json:"tab_sleep_time"` + PromptTime int `json:"prompt_time"` + } `json:"player_throttle_info"` + GuardInfo struct { + Count int `json:"count"` + AnchorGuardAchieveLevel int `json:"anchor_guard_achieve_level"` + } `json:"guard_info"` + HotRankInfo struct { + Rank int `json:"rank"` + Trend int `json:"trend"` + Countdown int `json:"countdown"` + Timestamp int `json:"timestamp"` + URL string `json:"url"` + Icon string `json:"icon"` + AreaName string `json:"area_name"` + NewData struct { + Rank int `json:"rank"` + Trend int `json:"trend"` + Countdown int `json:"countdown"` + Timestamp int `json:"timestamp"` + URL string `json:"url"` + Icon string `json:"icon"` + AreaName string `json:"area_name"` + RankDesc string `json:"rank_desc"` + } `json:"new_data"` + } `json:"hot_rank_info"` + } `json:"data"` + } `json:"roomInfoRes"` + UserLabInfo struct { + Code int `json:"code"` + Message string `json:"message"` + TTL int `json:"ttl"` + Data struct { + Configs struct { + Adaptive struct { + Status int `json:"status"` + Option string `json:"option"` + } `json:"adaptive"` + Dark struct { + Status int `json:"status"` + Option string `json:"option"` + } `json:"dark"` + Mirror struct { + Status int `json:"status"` + Option string `json:"option"` + } `json:"mirror"` + } `json:"configs"` + UID int `json:"uid"` + } `json:"data"` + } `json:"userLabInfo"` + ExperimentalPlayerOptions struct { + } `json:"experimentalPlayerOptions"` +} diff --git a/Json/getRoomPlayInfo.go b/Json/getRoomPlayInfo.go new file mode 100644 index 0000000..9a03b97 --- /dev/null +++ b/Json/getRoomPlayInfo.go @@ -0,0 +1,62 @@ +package part + +type GetRoomPlayInfo struct { + Code int `json:"code"` + Message string `json:"message"` + TTL int `json:"ttl"` + Data struct { + RoomID int `json:"room_id"` + ShortID int `json:"short_id"` + UID int `json:"uid"` + IsHidden bool `json:"is_hidden"` + IsLocked bool `json:"is_locked"` + IsPortrait bool `json:"is_portrait"` + LiveStatus int `json:"live_status"` + HiddenTill int `json:"hidden_till"` + LockTill int `json:"lock_till"` + Encrypted bool `json:"encrypted"` + PwdVerified bool `json:"pwd_verified"` + LiveTime int `json:"live_time"` + RoomShield int `json:"room_shield"` + AllSpecialTypes []int `json:"all_special_types"` + PlayurlInfo struct { + ConfJSON string `json:"conf_json"` + Playurl struct { + Cid int `json:"cid"` + GQnDesc []struct { + Qn int `json:"qn"` + Desc string `json:"desc"` + HdrDesc string `json:"hdr_desc"` + AttrDesc interface{} `json:"attr_desc"` + } `json:"g_qn_desc"` + Stream []struct { + ProtocolName string `json:"protocol_name"` + Format []struct { + FormatName string `json:"format_name"` + Codec []struct { + CodecName string `json:"codec_name"` + CurrentQn int `json:"current_qn"` + AcceptQn []int `json:"accept_qn"` + BaseURL string `json:"base_url"` + URLInfo []struct { + Host string `json:"host"` + Extra string `json:"extra"` + StreamTTL int `json:"stream_ttl"` + } `json:"url_info"` + HdrQn interface{} `json:"hdr_qn"` + DolbyType int `json:"dolby_type"` + AttrName string `json:"attr_name"` + } `json:"codec"` + } `json:"format"` + } `json:"stream"` + P2PData struct { + P2P bool `json:"p2p"` + P2PType int `json:"p2p_type"` + MP2P bool `json:"m_p2p"` + MServers interface{} `json:"m_servers"` + } `json:"p2p_data"` + DolbyQn interface{} `json:"dolby_qn"` + } `json:"playurl"` + } `json:"playurl_info"` + } `json:"data"` +} diff --git a/Json/roomInitRes.go b/Json/roomInitRes.go deleted file mode 100644 index 9c2630c..0000000 --- a/Json/roomInitRes.go +++ /dev/null @@ -1,56 +0,0 @@ -package part - -type Roominitres struct { - Code int `json:"code"` - Message string `json:"message"` - TTL int `json:"ttl"` - Data struct { - RoomID int `json:"room_id"` - ShortID int `json:"short_id"` - UID int `json:"uid"` - IsHidden bool `json:"is_hidden"` - IsLocked bool `json:"is_locked"` - IsPortrait bool `json:"is_portrait"` - LiveStatus int `json:"live_status"` - HiddenTill int `json:"hidden_till"` - LockTill int `json:"lock_till"` - Encrypted bool `json:"encrypted"` - PwdVerified bool `json:"pwd_verified"` - LiveTime int `json:"live_time"` - RoomShield int `json:"room_shield"` - AllSpecialTypes []interface{} `json:"all_special_types"` - PlayurlInfo struct { - ConfJSON string `json:"conf_json"` - Playurl struct { - Cid int `json:"cid"` - GQnDesc []struct { - Qn int `json:"qn"` - Desc string `json:"desc"` - } `json:"g_qn_desc"` - Stream []struct { - ProtocolName string `json:"protocol_name"` - Format []struct { - FormatName string `json:"format_name"` - Codec []struct { - CodecName string `json:"codec_name"` - CurrentQn int `json:"current_qn"` - AcceptQn []int `json:"accept_qn"` - BaseURL string `json:"base_url"` - URLInfo []struct { - Host string `json:"host"` - Extra string `json:"extra"` - } `json:"url_info"` - } `json:"codec"` - } `json:"format"` - } `json:"stream"` - P2PData struct { - P2P bool `json:"p2p"` - P2PType int `json:"p2p_type"` - MP2P bool `json:"m_p2p"` - MServers interface{} `json:"m_servers"` - } `json:"p2p_data"` - DolbyQn interface{} `json:"dolby_qn"` - } `json:"playurl"` - } `json:"playurl_info"` - } `json:"data"` -} diff --git a/demo/config/config_K_v.json b/demo/config/config_K_v.json index 00346fc..e39b4a3 100644 --- a/demo/config/config_K_v.json +++ b/demo/config/config_K_v.json @@ -52,10 +52,12 @@ "统计营收": true, "Gtk弹幕窗": false, "调用obs": false, - "直播流清晰度-help": "清晰度可选-1:不保存 0:默认 10000:原画 800:4K 401:蓝光(杜比) 400:蓝光 250:超清 150:高清 80:流畅,无提供所选清晰度时,使用低一档清晰度", + "直播流清晰度-help": "清晰度可选-1:不保存 0:默认 20000:4K 10000:原画 400:蓝光 250:超清 150:高清 80:流畅,无提供所选清晰度时,使用低一档清晰度", "直播流清晰度": 10000, "直播流类型-help": "flv or hls", + "直播流类型": "flv", "直播流类型故障切换": true, + "直播流保存位置": "./live", "直播hls流均衡-help":"true:使用所有hls服务器", "直播hls流均衡": true, "直播hls流保存为MP4": true, -- 2.39.2