Skip to content

Commit

Permalink
added comment to explain if condition for youtube video
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahim-nazari committed Aug 22, 2024
1 parent 5de3f50 commit 45da7dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ app.post("/", async (req, res) => {
};
}
}
// check here if it is youtube video
if (newData.mediaType == "video.other") {
const videoId = youtube_parser(url);
newData = { ...newData, videoId };
Expand Down

0 comments on commit 45da7dc

Please sign in to comment.