import{t as e}from"./parse-date-BdYTmLpo.mjs";import{t}from"./got-BBDj7u1e.mjs";import{t as n}from"./timezone-keeL11Io.mjs";import{load as r}from"cheerio";const i={path:`/list/group/:id`,categories:[`programming`],example:`/gihyo/list/group/Ubuntu-Weekly-Recipe`,parameters:{id:`Series`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`gihyo.jp/list/group/:id`]}],name:`Series`,maintainers:[`masakichi`],handler:a};async function a(i){let a=i.req.param(`id`),o=`https://gihyo.jp`,s=`${o}/list/group/${a}`,c=r((await t(s)).data),l=c(`ul[class=m-listitem]`).find(`li`).not(`.m-listitem--ad`);return{title:c(`head title`).text(),link:s,description:c(`head meta[name=description]`).attr(`content`),language:`ja`,item:l.toArray().map(t=>({title:`${c(`p.m-listitem__title span.subtitle`,t).text()} ${c(`p.m-listitem__title`,t).contents().filter((e,t)=>t.nodeType===3).text()}`,author:c(`p.m-listitem__author`,t).text(),pubDate:n(e(c(`span.date`,t).text(),`YYYY-MM-DD`),9),link:`${o}${c(`a`,t).attr(`href`)}`.replace(/\?summary$/,``)}))}}export{i as route};