[
  {
    "bookSourceGroup": "二月无雪",
    "bookSourceName": "红果短剧",
    "bookSourceType": 0,
    "bookSourceUrl": "https://www.hongguostudio.com",
    "concurrentRate": "1/1.5",
    "customButton": false,
    "customOrder": 1,
    "enabled": true,
    "enabledCookieJar": true,
    "enabledExplore": true,
    "eventListener": false,
    "exploreUrl": "[{\"title\": \"全部 v1.1.0\", \"url\": \"https://www.hongguostudio.com/vodshow/1--------{{page}}---1.html\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4}}, {\"title\": \"古装\", \"url\": \"https://www.hongguostudio.com/vodshow/51---%E5%8F%A4%E8%A3%85-----{{page}}---.html\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4}}, {\"title\": \"剧情\", \"url\": \"https://www.hongguostudio.com/vodshow/51---%E5%89%A7%E6%83%85-----{{page}}---.html\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4}}, {\"title\": \"家庭\", \"url\": \"https://www.hongguostudio.com/vodshow/51---%E5%AE%B6%E5%BA%AD-----{{page}}---.html\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4}}, {\"title\": \"喜剧\", \"url\": \"https://www.hongguostudio.com/vodshow/51---%E5%96%9C%E5%89%A7-----{{page}}---.html\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4}}, {\"title\": \"战争\", \"url\": \"https://www.hongguostudio.com/vodshow/51---%E6%88%98%E4%BA%89-----{{page}}---.html\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4}}, {\"title\": \"动作\", \"url\": \"https://www.hongguostudio.com/vodshow/51---%E5%8A%A8%E4%BD%9C-----{{page}}---.html\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4}}, {\"title\": \"奇幻\", \"url\": \"https://www.hongguostudio.com/vodshow/51---%E5%A5%87%E5%B9%BB-----{{page}}---.html\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4}}, {\"title\": \"其他\", \"url\": \"https://www.hongguostudio.com/vodshow/51---%E5%85%B6%E4%BB%96-----{{page}}---.html\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4}}]",
    "header": "{\"User-Agent\":\"Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Mobile Safari/537.36\",\"Referer\":\"https://www.hongguostudio.com/\"}",
    "lastUpdateTime": 1794216229586,
    "respondTime": 20000,
    "ruleBookInfo": {
      "author": "@js:(function(){try{return hgstdOff(src).au}catch(e){return ''}})()",
      "coverUrl": "@css:.hl-dc-pic .hl-item-thumb@data-original",
      "intro": "@js:(function(){try{return hgstdOff(src).intro}catch(e){return ''}})()",
      "name": "@css:.hl-dc-title@text",
      "lastChapter": "@js:(function(){var o={};try{o=hgstdOff(src)}catch(e){}if(o.eps)return o.eps;var m=(src||'').match(/状态：<\\/em><span[^>]*>([^<]+)</);return m?m[1]:''})()"
    },
    "ruleContent": {
      "content": "@js:(function(){\n// 提取播放页 player_aaaa 的 m3u8 直链(encrypt=0 无需解密), 失败则去转义后裸抓 m3u8\nvar s=src||'';var u='';\ntry{var m=s.match(/var\\s+player_aaaa\\s*=\\s*(\\{[\\s\\S]*?\\})\\s*<\\/script>/);if(m)u=JSON.parse(m[1]).url||'';}catch(e){}\nif(!u){try{var m2=s.replace(/\\\\\\//g,'/').match(/https?:\\/\\/[^\\s\"'<>]+\\.m3u8[^\\s\"'<>]*/);if(m2)u=m2[0];}catch(e){}}\nreturn JSON.stringify({url:u,headers:{'User-Agent':'Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Mobile Safari/537.36','Referer':'https://www.hongguostudio.com/'}});\n})()",
      "nextContentUrl": "@js:(function(){\n// 自动连播: player_aaaa.link_next 为下一集播放页相对地址, 拼接为绝对地址返回\nvar s=src||'';var u='';\ntry{var m=s.match(/var\\s+player_aaaa\\s*=\\s*(\\{[\\s\\S]*?\\})\\s*<\\/script>/);if(m)u=JSON.parse(m[1]).link_next||'';}catch(e){}\nreturn u?('https://www.hongguostudio.com'+u):'';\n})()"
    },
    "ruleExplore": {
      "bookList": "@css:li.hl-list-item",
      "bookUrl": "@css:a.hl-item-thumb@href",
      "coverUrl": "@css:a.hl-item-thumb@data-original",
      "name": "@css:a.hl-item-thumb@title",
      "lastChapter": "@css:span.remarks@text"
    },
    "ruleSearch": {
      "author": "@css:p.hl-item-sub.hl-hidden-xs@text",
      "bookList": "@css:li.hl-list-item",
      "bookUrl": "@css:a.hl-item-thumb@href",
      "coverUrl": "@css:a.hl-item-thumb@data-original",
      "intro": "@css:p.hl-item-sub.hl-lc-2@text",
      "name": "@css:a.hl-item-thumb@title",
      "lastChapter": "@css:span.remarks@text"
    },
    "ruleToc": {
      "chapterList": "@css:.hl-plays-list li a[href*=\"vodplay\"]",
      "chapterName": "@text",
      "chapterUrl": "@href",
      "isVolume": "false"
    },
    "searchUrl": "https://www.hongguostudio.com/vodsearch/{{key}}----------{{page}}---.html",
    "weight": "0",
    "omnireadMediaType": "video",
    "jsLib": "function hgstdOff(src){\nvar n=function(x){return (x||'').replace(/[^0-9A-Za-z一-龥]/g,'')};\nvar nm=(String(src||'').match(/class=\"hl-dc-title[^\"]*\">([^<]+)</)||[])[1]||'';\nvar want=n(nm);\nvar o=null;\ntry{var c=java.get('hgstdoff');if(c){o=JSON.parse(c);if(!o||o.nm!==want)o=null}}catch(e){o=null}\nif(!o&&nm){\no={nm:want,intro:'',au:'',eps:''};\ntry{\nvar r=java.ajax('https://hongguoduanju.com/incent_resource/suggestion?app_id=8662&web_id=1234567890123456789&query='+encodeURIComponent(nm)+'&count=20');\nvar list=(JSON.parse(r).suggest_list)||[];\nfor(var i=0;i<list.length;i++){\nif(n(list[i].name)===want){\nvar vd=list[i].video_data||{};\no.intro=vd.series_intro||'';\no.eps=vd.episode_right_text||'';\nvar cel=[],cat=[];\ntry{cel=(vd.celebrities||[]).map(function(x){return x.name||''})}catch(e){}\ntry{cat=(vd.category_list||[]).map(function(x){return x.name||''})}catch(e){}\no.au=cel.filter(Boolean).join(' / ')||cat.filter(Boolean).join(' / ');\nbreak;\n}\n}\n}catch(e){}\ntry{java.put('hgstdoff',JSON.stringify(o))}catch(e){}\n}\nreturn o||{nm:'',intro:'',au:'',eps:''};\n}",
    "bookSourceVersion": "1.1.0"
  }
]