Skip to content

Commit

Permalink
revert videos
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Jun 6, 2024
1 parent 3020106 commit 8873a90
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions src/components/admin/ContentRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,30 @@ export const getMetadata = async (contentId: number) => {
// },
// });
//@ts-ignore
if (metadata.migration_status === 'MIGRATED') {
return {
//@ts-ignore
1080: metadata[`migrated_video_1080p_mp4_1`].replace(
'100x.b-cdn.net',
'cdn.100xdevs.com',
),
//@ts-ignore
720: metadata[`migrated_video_720p_mp4_1`].replace(
'100x.b-cdn.net',
'cdn.100xdevs.com',
),
//@ts-ignore
360: metadata[`migrated_video_360p_mp4_1`].replace(
'100x.b-cdn.net',
'cdn.100xdevs.com',
),
subtitles: metadata['subtitles'],
//@ts-ignore
slides: metadata['slides'],
//@ts-ignore
segments: metadata['segments'],
};
}
// if (metadata.migration_status === 'MIGRATED') {
// return {
// //@ts-ignore
// 1080: metadata[`migrated_video_1080p_mp4_1`].replace(
// '100x.b-cdn.net',
// 'cdn.100xdevs.com',
// ),
// //@ts-ignore
// 720: metadata[`migrated_video_720p_mp4_1`].replace(
// '100x.b-cdn.net',
// 'cdn.100xdevs.com',
// ),
// //@ts-ignore
// 360: metadata[`migrated_video_360p_mp4_1`].replace(
// '100x.b-cdn.net',
// 'cdn.100xdevs.com',
// ),
// subtitles: metadata['subtitles'],
// //@ts-ignore
// slides: metadata['slides'],
// //@ts-ignore
// segments: metadata['segments'],
// };
// }
return {
//@ts-ignore
1080: metadata[`video_1080p_mp4_${userId}`],
Expand Down

0 comments on commit 8873a90

Please sign in to comment.