OF-DL/.gitea/pages/assets/js/d934d03b.d19cbe79.js

1 line
7.2 KiB
JavaScript

"use strict";(self.webpackChunkof_dl=self.webpackChunkof_dl||[]).push([[424],{1022:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>r,contentTitle:()=>t,default:()=>m,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var d=n(4848),i=n(8453);const a={sidebar_position:3},t="Custom Filename Formats",o={id:"config/custom-filename-formats",title:"Custom Filename Formats",description:"In the config.conf file you can now specify some custom filename formats that will be used when downloading files. I have had to add 4 new fields to the auth.json file, these are:",source:"@site/docs/config/custom-filename-formats.md",sourceDirName:"config",slug:"/config/custom-filename-formats",permalink:"/OF-DL/docs/config/custom-filename-formats",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3},sidebar:"generatedSidebar",previous:{title:"Configuration",permalink:"/OF-DL/docs/config/configuration"},next:{title:"CDM (optional, but recommended)",permalink:"/OF-DL/docs/config/cdm"}},r={},l=[{value:"PaidPostFileNameFormat",id:"paidpostfilenameformat",level:2},{value:"PostFileNameFormat",id:"postfilenameformat",level:2},{value:"PaidMessageFileNameFormat",id:"paidmessagefilenameformat",level:2},{value:"MessageFileNameFormat",id:"messagefilenameformat",level:2},{value:"Examples",id:"examples",level:2}];function c(e){const s={code:"code",h1:"h1",h2:"h2",li:"li",p:"p",ul:"ul",...(0,i.R)(),...e.components};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.h1,{id:"custom-filename-formats",children:"Custom Filename Formats"}),"\n",(0,d.jsx)(s.p,{children:"In the config.conf file you can now specify some custom filename formats that will be used when downloading files. I have had to add 4 new fields to the auth.json file, these are:"}),"\n",(0,d.jsxs)(s.ul,{children:["\n",(0,d.jsx)(s.li,{children:"PaidPostFileNameFormat"}),"\n",(0,d.jsx)(s.li,{children:"PostFileNameFormat"}),"\n",(0,d.jsx)(s.li,{children:"PaidMessageFileNameFormat"}),"\n",(0,d.jsx)(s.li,{children:"MessageFileNameFormat"}),"\n"]}),"\n",(0,d.jsx)(s.p,{children:"I have had to do it this way as the names of fields from the API responses are different in some places\nso it would become a mess using 1 file format for everything, besides having separate formats can be useful if you only\nwant posts to have a custom format and the rest just use the default filename."}),"\n",(0,d.jsx)(s.p,{children:"Below are the names of the fields you can use in each format:"}),"\n",(0,d.jsx)(s.h2,{id:"paidpostfilenameformat",children:"PaidPostFileNameFormat"}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"id"})," - Id of the post"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"postedAt"})," - The date when the post was made yyyy-mm-dd"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"mediaId"})," - Id of the media"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"mediaCreatedAt"})," - The date when the media was uploaded to OnlyFans yyyy-mm-dd"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"filename"})," - The original filename e.g 0gy8cmw5jjjs5pt487b9g_source.mp4 or 914x1706_6b211f68a4e315125ecf70137bb75d8e.jpg"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"username"})," - The username of the creator e.g onlyfans"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"text"})," - The text of the post"]}),"\n",(0,d.jsx)(s.h2,{id:"postfilenameformat",children:"PostFileNameFormat"}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"id"})," - Id of the post"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"postedAt"})," - The date when the post was made yyyy-mm-dd"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"mediaId"})," - Id of the media"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"mediaCreatedAt"})," - The date when the media was uploaded to OnlyFans yyyy-mm-dd"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"filename"})," - The original filename e.g 0gy8cmw5jjjs5pt487b9g_source.mp4 or 914x1706_6b211f68a4e315125ecf70137bb75d8e.jpg"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"username"})," - The username of the creator e.g onlyfans"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"text"})," - The text of the post"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"rawText"})," - The text of the post"]}),"\n",(0,d.jsx)(s.h2,{id:"paidmessagefilenameformat",children:"PaidMessageFileNameFormat"}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"id"})," - Id of the message"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"createdAt"})," - The date when the message was sent yyyy-mm-dd"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"mediaId"})," - Id of the media"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"mediaCreatedAt"})," - The date when the media was uploaded to OnlyFans yyyy-mm-dd"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"filename"})," - The original filename e.g 0gy8cmw5jjjs5pt487b9g_source.mp4 or 914x1706_6b211f68a4e315125ecf70137bb75d8e.jpg"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"username"})," - The username of the creator e.g onlyfans"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"text"})," - The text of the message"]}),"\n",(0,d.jsx)(s.h2,{id:"messagefilenameformat",children:"MessageFileNameFormat"}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"id"})," - Id of the message"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"createdAt"})," - The date when the message was sent yyyy-mm-dd"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"mediaId"})," - Id of the media"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"mediaCreatedAt"})," - The date when the media was uploaded to OnlyFans yyyy-mm-dd"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"filename"})," - The original filename e.g 0gy8cmw5jjjs5pt487b9g_source.mp4 or 914x1706_6b211f68a4e315125ecf70137bb75d8e.jpg"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"username"})," - The username of the creator e.g onlyfans"]}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"text"})," - The text of the message"]}),"\n",(0,d.jsx)(s.h2,{id:"examples",children:"Examples"}),"\n",(0,d.jsx)(s.p,{children:(0,d.jsx)(s.code,{children:'"PaidPostFileNameFormat": "{id}_{mediaid}_{filename}"'})}),"\n",(0,d.jsx)(s.p,{children:(0,d.jsx)(s.code,{children:'"PostFileNameFormat": "{username}_{id}_{mediaid}_{mediaCreatedAt}"'})}),"\n",(0,d.jsx)(s.p,{children:(0,d.jsx)(s.code,{children:'"PaidMessageFileNameFormat": "{id}_{mediaid}_{createdAt}"'})}),"\n",(0,d.jsx)(s.p,{children:(0,d.jsx)(s.code,{children:'"MessageFileNameFormat": "{id}_{mediaid}_{filename}"'})})]})}function m(e={}){const{wrapper:s}={...(0,i.R)(),...e.components};return s?(0,d.jsx)(s,{...e,children:(0,d.jsx)(c,{...e})}):c(e)}},8453:(e,s,n)=>{n.d(s,{R:()=>t,x:()=>o});var d=n(6540);const i={},a=d.createContext(i);function t(e){const s=d.useContext(a);return d.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:t(e.components),d.createElement(a.Provider,{value:s},e.children)}}}]);