diff --git a/.gitignore b/.gitignore index 3f02ac9..313b131 100644 --- a/.gitignore +++ b/.gitignore @@ -19,7 +19,6 @@ public/sitemap.xml *.xml # rss feed /public/feed.xml -/public/static/ # misc .DS_Store diff --git a/public/static/images/video/01f54af1022ab71d20a485a6911740f90626e60e.jpg b/public/static/images/video/01f54af1022ab71d20a485a6911740f90626e60e.jpg new file mode 100644 index 0000000..f208b20 Binary files /dev/null and b/public/static/images/video/01f54af1022ab71d20a485a6911740f90626e60e.jpg differ diff --git a/public/static/images/video/0416abb3db10c6a927ee87699b8df0b45b6ee335.jpg b/public/static/images/video/0416abb3db10c6a927ee87699b8df0b45b6ee335.jpg new file mode 100644 index 0000000..aae8fe0 Binary files /dev/null and b/public/static/images/video/0416abb3db10c6a927ee87699b8df0b45b6ee335.jpg differ diff --git a/public/static/images/video/0dfbe34c355a42f24f227e85a75bd5d20617d080.jpg b/public/static/images/video/0dfbe34c355a42f24f227e85a75bd5d20617d080.jpg new file mode 100644 index 0000000..63edb82 Binary files /dev/null and b/public/static/images/video/0dfbe34c355a42f24f227e85a75bd5d20617d080.jpg differ diff --git a/public/static/images/video/1095c727412c1c5cd56a520b13dc7a55f459b3be.jpg b/public/static/images/video/1095c727412c1c5cd56a520b13dc7a55f459b3be.jpg new file mode 100644 index 0000000..c44cb07 Binary files /dev/null and b/public/static/images/video/1095c727412c1c5cd56a520b13dc7a55f459b3be.jpg differ diff --git a/public/static/images/video/1b7fa05e47c1853fce30d2d27b0fdcfcaadc39a9.jpg b/public/static/images/video/1b7fa05e47c1853fce30d2d27b0fdcfcaadc39a9.jpg new file mode 100644 index 0000000..a0d5c03 Binary files /dev/null and b/public/static/images/video/1b7fa05e47c1853fce30d2d27b0fdcfcaadc39a9.jpg differ diff --git a/public/static/images/video/27f237ba0d232317352a1ec077c5d26bb9ce2f8d.jpg b/public/static/images/video/27f237ba0d232317352a1ec077c5d26bb9ce2f8d.jpg new file mode 100644 index 0000000..cc58d5d Binary files /dev/null and b/public/static/images/video/27f237ba0d232317352a1ec077c5d26bb9ce2f8d.jpg differ diff --git a/public/static/images/video/2d4e3f90474b46d9348a8cca4eb42acd2a6d8ab3.jpg b/public/static/images/video/2d4e3f90474b46d9348a8cca4eb42acd2a6d8ab3.jpg new file mode 100644 index 0000000..7f61bc0 Binary files /dev/null and b/public/static/images/video/2d4e3f90474b46d9348a8cca4eb42acd2a6d8ab3.jpg differ diff --git a/public/static/images/video/363cbdca0632f318b510a145564e0a2b23429754.jpg b/public/static/images/video/363cbdca0632f318b510a145564e0a2b23429754.jpg new file mode 100644 index 0000000..b412e6e Binary files /dev/null and b/public/static/images/video/363cbdca0632f318b510a145564e0a2b23429754.jpg differ diff --git a/public/static/images/video/3f699ca198ced5f398d7e459c8a183043b9f05ee.jpg b/public/static/images/video/3f699ca198ced5f398d7e459c8a183043b9f05ee.jpg new file mode 100644 index 0000000..56d4145 Binary files /dev/null and b/public/static/images/video/3f699ca198ced5f398d7e459c8a183043b9f05ee.jpg differ diff --git a/public/static/images/video/4b96d4b3772ee61c025681fcda3aa9ae4af704d9.jpg b/public/static/images/video/4b96d4b3772ee61c025681fcda3aa9ae4af704d9.jpg new file mode 100644 index 0000000..8079949 Binary files /dev/null and b/public/static/images/video/4b96d4b3772ee61c025681fcda3aa9ae4af704d9.jpg differ diff --git a/public/static/images/video/503e01999fc63c98f512cf6ca2d1ab8c6260314d.jpg b/public/static/images/video/503e01999fc63c98f512cf6ca2d1ab8c6260314d.jpg new file mode 100644 index 0000000..9ff0470 Binary files /dev/null and b/public/static/images/video/503e01999fc63c98f512cf6ca2d1ab8c6260314d.jpg differ diff --git a/public/static/images/video/647c3eba5d8ecad9b4115b9e099d5480a900340a.jpg b/public/static/images/video/647c3eba5d8ecad9b4115b9e099d5480a900340a.jpg new file mode 100644 index 0000000..fc48eed Binary files /dev/null and b/public/static/images/video/647c3eba5d8ecad9b4115b9e099d5480a900340a.jpg differ diff --git a/public/static/images/video/692ae925cfd877c09e58171b24182c7a3060c6f2.jpg b/public/static/images/video/692ae925cfd877c09e58171b24182c7a3060c6f2.jpg new file mode 100644 index 0000000..344a4ef Binary files /dev/null and b/public/static/images/video/692ae925cfd877c09e58171b24182c7a3060c6f2.jpg differ diff --git a/public/static/images/video/69ebeda9482bbd4cf2e7b7bfeabe48883e98290c.jpg b/public/static/images/video/69ebeda9482bbd4cf2e7b7bfeabe48883e98290c.jpg new file mode 100644 index 0000000..5a4fc80 Binary files /dev/null and b/public/static/images/video/69ebeda9482bbd4cf2e7b7bfeabe48883e98290c.jpg differ diff --git a/public/static/images/video/6bc2db6b9aed224c2dce1bd8bccfe37070fec3c2.jpg b/public/static/images/video/6bc2db6b9aed224c2dce1bd8bccfe37070fec3c2.jpg new file mode 100644 index 0000000..9a2c46a Binary files /dev/null and b/public/static/images/video/6bc2db6b9aed224c2dce1bd8bccfe37070fec3c2.jpg differ diff --git a/public/static/images/video/808a5f031808d98aaaa3c3c6df290c730c06eb9c.jpg b/public/static/images/video/808a5f031808d98aaaa3c3c6df290c730c06eb9c.jpg new file mode 100644 index 0000000..a43c315 Binary files /dev/null and b/public/static/images/video/808a5f031808d98aaaa3c3c6df290c730c06eb9c.jpg differ diff --git a/public/static/images/video/9edff3a734d596150e76edf0f79eddb093790c35.jpg b/public/static/images/video/9edff3a734d596150e76edf0f79eddb093790c35.jpg new file mode 100644 index 0000000..031bd92 Binary files /dev/null and b/public/static/images/video/9edff3a734d596150e76edf0f79eddb093790c35.jpg differ diff --git a/public/static/images/video/bd6fcb47f48e411c6665b692666d508fc24806bc.jpg b/public/static/images/video/bd6fcb47f48e411c6665b692666d508fc24806bc.jpg new file mode 100644 index 0000000..eda34ac Binary files /dev/null and b/public/static/images/video/bd6fcb47f48e411c6665b692666d508fc24806bc.jpg differ diff --git a/public/static/images/video/d1dcf56c1cd888c0c15e0c723930508a938567c4.jpg b/public/static/images/video/d1dcf56c1cd888c0c15e0c723930508a938567c4.jpg new file mode 100644 index 0000000..8434605 Binary files /dev/null and b/public/static/images/video/d1dcf56c1cd888c0c15e0c723930508a938567c4.jpg differ diff --git a/public/static/images/video/d54a3adfd80729bf6e8781e97f81d893814b11ed.jpg b/public/static/images/video/d54a3adfd80729bf6e8781e97f81d893814b11ed.jpg new file mode 100644 index 0000000..f6be603 Binary files /dev/null and b/public/static/images/video/d54a3adfd80729bf6e8781e97f81d893814b11ed.jpg differ diff --git a/public/static/images/video/eb2df5c1eb6e1952f43ce4a4fe57bd6e33f25e49.jpg b/public/static/images/video/eb2df5c1eb6e1952f43ce4a4fe57bd6e33f25e49.jpg new file mode 100644 index 0000000..453af7d Binary files /dev/null and b/public/static/images/video/eb2df5c1eb6e1952f43ce4a4fe57bd6e33f25e49.jpg differ diff --git a/public/static/images/video/ee79fc6ba0849bf8a6ec5f7d49da25a02e30c004.jpg b/public/static/images/video/ee79fc6ba0849bf8a6ec5f7d49da25a02e30c004.jpg new file mode 100644 index 0000000..1c6d9c4 Binary files /dev/null and b/public/static/images/video/ee79fc6ba0849bf8a6ec5f7d49da25a02e30c004.jpg differ diff --git a/public/static/images/video/ef0fb56bf79f504dd50959fab1f91c965e24bc08.jpg b/public/static/images/video/ef0fb56bf79f504dd50959fab1f91c965e24bc08.jpg new file mode 100644 index 0000000..c6d5c4c Binary files /dev/null and b/public/static/images/video/ef0fb56bf79f504dd50959fab1f91c965e24bc08.jpg differ diff --git a/public/static/images/video/efdacc3a132baf41a4ef781e7ddd43cbc860a708.jpg b/public/static/images/video/efdacc3a132baf41a4ef781e7ddd43cbc860a708.jpg new file mode 100644 index 0000000..e3d7231 Binary files /dev/null and b/public/static/images/video/efdacc3a132baf41a4ef781e7ddd43cbc860a708.jpg differ diff --git a/public/static/images/video/f77185e59e3d87eb160191ce6c7c8c971309330b.jpg b/public/static/images/video/f77185e59e3d87eb160191ce6c7c8c971309330b.jpg new file mode 100644 index 0000000..6be7d9d Binary files /dev/null and b/public/static/images/video/f77185e59e3d87eb160191ce6c7c8c971309330b.jpg differ diff --git a/src/lib/video.ts b/src/lib/video.ts index 843a1a7..a079896 100644 --- a/src/lib/video.ts +++ b/src/lib/video.ts @@ -36,11 +36,10 @@ function download(url: string) { export async function getVideos() { const videos = res.data.list.vlist - for (let index = 0; index < videos.length; index++) { const vitem = videos[index] - const pic = await download(vitem.pic) - vitem.pic = pic + const items = vitem.pic.split('/') + vitem.pic = items[items.length - 1] } return videos diff --git a/src/pages/video.tsx b/src/pages/video.tsx index 79b7a53..e681558 100644 --- a/src/pages/video.tsx +++ b/src/pages/video.tsx @@ -6,7 +6,6 @@ import { GetStaticProps, InferGetStaticPropsType } from 'next' export const getStaticProps: GetStaticProps<{ videos: VItem[] }> = async () => { const videos = await getVideos() - console.log(videos) return { props: { videos: JSON.parse(JSON.stringify(videos)) } } }