修复无法获取数据的问题
This commit is contained in:
@@ -116,7 +116,7 @@ app.get('/api/videos', async (req, res) => {
|
|||||||
'.ogm', '.ogv', '.qt', '.rm', '.rmvb', '.ts', '.vob', '.vro',
|
'.ogm', '.ogv', '.qt', '.rm', '.rmvb', '.ts', '.vob', '.vro',
|
||||||
'.webm', '.wmv'
|
'.webm', '.wmv'
|
||||||
];
|
];
|
||||||
const videos = (response.Contents || [])
|
const videos = allObjects
|
||||||
.map(item => item.Key)
|
.map(item => item.Key)
|
||||||
.filter(key => {
|
.filter(key => {
|
||||||
if (!key) return false;
|
if (!key) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user