diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 72078f9f..796d38f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,7 +69,7 @@ jobs: repo: context.repo.repo, tag_name: process.env.release_tag, }) - const notes = process.env.release_note.split(/(?:\d\.\s)/).filter(Boolean); + const notes = process.env.release_note.split(/\d+\.\s/).filter(Boolean); const formattedNotes = notes.map(note => `* ${note.trim()}`).join("\n"); const body = `## Release Highlight\n${formattedNotes}\n\n${data.body}`; github.rest.repos.updateRelease({ diff --git a/apps/readest-app/src/app/opds/components/PublicationView.tsx b/apps/readest-app/src/app/opds/components/PublicationView.tsx index b2020220..0cce350d 100644 --- a/apps/readest-app/src/app/opds/components/PublicationView.tsx +++ b/apps/readest-app/src/app/opds/components/PublicationView.tsx @@ -38,7 +38,6 @@ export function PublicationView({ const _ = useTranslation(); const router = useRouter(); const [downloading, setDownloading] = useState(false); - const [downloaded, setDownloaded] = useState(false); const [downloadedBook, setDownloadedBook] = useState(null); const [progress, setProgress] = useState(null); @@ -79,7 +78,6 @@ export function PublicationView({ } setDownloading(true); - setDownloaded(false); setProgress(null); try { @@ -150,13 +148,13 @@ export function PublicationView({
{acquisitionLinks.map(({ rel, links }) => (
- {links.length === 1 ? ( + {links.length === 1 || downloadedBook ? (