Objective
Import the YouTube TV Commercials and Client Video Testimonials playlists into the standalone video library without duplicating videos already present in the manifest.
Completed
- Imported 104 new YouTube playlist entries into
data/manifest.json.
- Added 62 TV Commercials entries to
Video Ads.
- Added 42 Client Video Testimonials entries to
Testimonials.
- Skipped 17 duplicate candidates: 14 title-and-duration matches against existing Vimeo/current entries, and 3 existing YouTube ID matches.
- Classified four videos that appeared in both TV Commercials and Client Video Testimonials under Testimonials to avoid duplicate cards while using the better semantic tab.
- Deployed to Vercel production and confirmed alias: https://video-library-kappa-flax.vercel.app/
- Committed local repo change:
ce464c5 Import YouTube ads and testimonials.
Verification
- Static checks passed:
python3 -m json.tool data/manifest.json, node --check assets/js/app.js, and node --check assets/js/upload.js.
- Bulk QA sample checked 14 imported entries across first, middle, and last imports for YouTube ID, category, city, duration, date, and playlist tags.
- Production manifest readback: 385 total videos, 141 Video Ads, 116 Testimonials, 20 Brand, 60 Case Stories, 48 Organic Social, 121 YouTube entries, and no duplicate manifest IDs or duplicate YouTube IDs.
- Production rendered QA: nav shows Video Ads 141 and Testimonials 116; imported ad
yt-C28EDnAHQEc renders in Video Ads; imported testimonial yt-R82COeDYddQ renders in Testimonials and opens https://www.youtube.com/embed/R82COeDYddQ?autoplay=1&rel=0 with source link https://www.youtube.com/watch?v=R82COeDYddQ.
Duplicate Rule Used
- Skip if the YouTube ID already exists in the manifest.
- Skip if the imported title base and duration match an existing current-library item.
- Allow distinct duration variants, such as 10/15/30-second versions, when they do not match an existing title-duration pair.
- For the same YouTube ID appearing in both imported playlists, keep one card and prefer Testimonials over Ads when the video is also in the testimonial playlist.