Skip to content

Commit

Permalink
Merge pull request #2 from ibrahim-nazari/main
Browse files Browse the repository at this point in the history
added comment to explain if condition for youtube video
  • Loading branch information
ibrahim-nazari authored Aug 22, 2024
2 parents 66cdd8f + 45da7dc commit 0a1a409
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 0a1a409

Please sign in to comment.