mitodl / ocw-to-hugo

A command line utility for taking master.json output from ocw-data-parser and producing markdown for use with hugo-course-publisher
3 stars 0 forks source link

fix missing youtube videos with mislabled id #509

Closed gumaerc closed 2 years ago

gumaerc commented 2 years ago

Pre-Flight checklist

What are the relevant tickets?

Part of a fix for https://github.com/mitodl/ocw-data-parser/issues/193, doesn't completely close the issue

What's this PR do?

If you look at the attached issue, it's about a number of videos being missing from some courses. Upon investigation, it was found that these videos have embedded_media objects for their YouTube videos with an id property of copy_of_Video-YouTube-Stream. This PR simply adds this ID to VIDEO_EMBEDDED_MEDIA_IDS so that these videos aren't skipped over.

How should this be manually tested?