Addresses the bug where the wrong media type is uploaded to JWPlatform for an SMS media item. It was indeterminate which media item clip (video or audio) was chosen (for instance it was wrong on transcode1 but right when testing in developement). To be honest, I'm not exactly sure what root cause was, but seeing as the code supported a 2 to 1 mapping which was no longer required, I simplified the code to just support a 1 to 1 mapping (same as for collections), which seems to have done the trick.
In addition to this - the last 2 commits address 2 different, but equally important bugs:
If a video was played and deleted on the same day, this caused an error in the analytics module.
No image_load or image_check jobs were being generated due to faulty indentation (!)
Addresses the bug where the wrong media type is uploaded to JWPlatform for an SMS media item. It was indeterminate which media item clip (video or audio) was chosen (for instance it was wrong on transcode1 but right when testing in developement). To be honest, I'm not exactly sure what root cause was, but seeing as the code supported a 2 to 1 mapping which was no longer required, I simplified the code to just support a 1 to 1 mapping (same as for collections), which seems to have done the trick.
In addition to this - the last 2 commits address 2 different, but equally important bugs: