import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./config-BYRrjYC5.mjs";import{t as n}from"./parse-date-BdYTmLpo.mjs";import{t as r}from"./utils-B5z6X9ZZ.mjs";import{load as i}from"cheerio";const a={path:`/post/:thread/:postId`,name:`Post`,maintainers:[`wsmbsbbz`],example:`/f95zone/post/vicineko-collection-2025-06-14-vicineko.84596/post-5909830`,categories:[`game`],description:"Track content changes of a specific post. Uses the date `[yyyy-mm-dd]` in title for update detection.\n\nURL format: `https://f95zone.to/threads/{thread}/#post-{id}` → replace `#` with `/` to get `/f95zone/post/{thread}/post-{id}`\n\nExample: `https://f95zone.to/threads/vicineko-collection-2025-06-14-vicineko.84596/#post-5909830` → `/f95zone/post/vicineko-collection-2025-06-14-vicineko.84596/post-5909830`\n\nNote: This route does not support Radar auto-detection because the post ID is in the URL hash (after `#`), which cannot be extracted by Radar. You need to manually construct the subscription URL.",parameters:{thread:`Thread slug with ID`,postId:"Post ID with `post-` prefix, replace `#` with `/` from browser URL"},features:{requireConfig:[{name:`F95ZONE_COOKIE`,optional:!0,description:`F95zone cookie for accessing restricted content.`}],requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1,nsfw:!0},radar:[],handler:async a=>{let{thread:o,postId:s}=a.req.param(),c=`https://f95zone.to`,l=`${c}/threads/${o}/#${s}`,u=i(await e(l,{headers:{referer:c,...t.f95zone.cookie?{cookie:t.f95zone.cookie}:{}}})),d=u(`h1.p-title-value`).text().trim(),f=u(`article[data-content="${s}"]`),p=f.find(`.bbWrapper`).html()||``,m=f.attr(`data-author`)||``,h=f.find(`time.u-dt`).first().attr(`datetime`),g=u(`a.tagItem`).toArray().map(e=>u(e).text().trim()),_=d.match(/\[(\d{4}-\d{2}-\d{2})\]/)?.[1];return{title:`[F95zone] ${d}`,link:l,item:[{title:`[Updated] ${d}`,link:l,guid:_?`${l}_${_}`:l,description:r(p),pubDate:_?n(_):h?n(h):void 0,author:m,category:g}]}}};export{a as route};