Skip to content

Commit 97fcad1

Browse files
committed
yt-desc: remove playlist/video titles, remove CC number
1 parent 0d618d1 commit 97fcad1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

β€Žnode-scripts/yt-description.mjs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ function writeDescription(video) {
413413
if (otherParts.length > 0) {
414414
description += '\nOther Parts of this Challenge:';
415415
for (const part of otherParts) {
416-
description += `\nπŸ“Ί ${part.data.partTitle}: https://youtu.be/${part.data.videoId}`;
416+
description += `\nπŸ“Ί https://youtu.be/${part.data.videoId}`;
417417
}
418418
description += '\n';
419419
}
@@ -506,9 +506,8 @@ function writeDescription(video) {
506506
vid.urls.includes(`challenges/${challenge}`)
507507
);
508508
if (challengeData) {
509-
const { videoNumber, challengeTitle } = challengeData.data;
510509
const url = challengeData.canonicalURL;
511-
description += `πŸš‚ CC${videoNumber} ${resolveCTLink(url)}` + '\n';
510+
description += `πŸš‚ ${resolveCTLink(url)}` + '\n';
512511
} else {
513512
console.log(`Challenge ${challenge} not found`);
514513
}
@@ -558,8 +557,8 @@ Music from Epidemic Sound`;
558557
πŸ–‹οΈ Twitter: https://twitter.com/thecodingtrain
559558
πŸ“Έ Instagram: https://www.instagram.com/the.coding.train/
560559
561-
πŸŽ₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
562-
πŸŽ₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
560+
πŸŽ₯ https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
561+
πŸŽ₯ https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
563562
564563
πŸ”— p5.js: https://p5js.org
565564
πŸ”— p5.js Web Editor: https://editor.p5js.org/

0 commit comments

Comments
Β (0)