mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-03 07:26:45 +00:00
Merge pull request #1760 from tangly1024/fix/media-video-play
Fix/media video play
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# 环境变量 @see https://www.nextjs.cn/docs/basic-features/environment-variables
|
# 环境变量 @see https://www.nextjs.cn/docs/basic-features/environment-variables
|
||||||
NEXT_PUBLIC_VERSION=4.1.3
|
NEXT_PUBLIC_VERSION=4.1.4
|
||||||
|
|
||||||
|
|
||||||
# 可在此添加环境变量,去掉最左边的(# )注释即可
|
# 可在此添加环境变量,去掉最左边的(# )注释即可
|
||||||
|
|||||||
@@ -102,7 +102,10 @@ function filterPostBlocks(id, pageBlock, slice) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 如果是文件,或嵌入式PDF,需要重新加密签名
|
// 如果是文件,或嵌入式PDF,需要重新加密签名
|
||||||
if ((b?.value?.type === 'file' || b?.value?.type === 'pdf' || b?.value?.type === 'video') && b?.value?.properties?.source?.[0][0]) {
|
if ((b?.value?.type === 'file' || b?.value?.type === 'pdf' || b?.value?.type === 'video' || b?.value?.type === 'audio') &&
|
||||||
|
b?.value?.properties?.source?.[0][0] &&
|
||||||
|
b?.value?.properties?.source?.[0][0].indexOf('amazonaws.com') > 0
|
||||||
|
) {
|
||||||
const oldUrl = b?.value?.properties?.source?.[0][0]
|
const oldUrl = b?.value?.properties?.source?.[0][0]
|
||||||
const newUrl = `https://notion.so/signed/${encodeURIComponent(oldUrl)}?table=block&id=${b?.value?.id}`
|
const newUrl = `https://notion.so/signed/${encodeURIComponent(oldUrl)}?table=block&id=${b?.value?.id}`
|
||||||
b.value.properties.source[0][0] = newUrl
|
b.value.properties.source[0][0] = newUrl
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "notion-next",
|
"name": "notion-next",
|
||||||
"version": "4.1.3",
|
"version": "4.1.4",
|
||||||
"homepage": "https://github.com/tangly1024/NotionNext.git",
|
"homepage": "https://github.com/tangly1024/NotionNext.git",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user