Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Daniel Nakonieczny
PLUS
Daniel Nakonieczny
Courses Plus Student 54,657 Points

Does anyone have issues with the video not showing the checkbox/showing as completed when going through a course?

If you're going through a course and are frustrated that every so often a video doesn't register as completed, especially if you watch the videos at 1.2x or faster, I found a temporary solution until Treehouse fixes it.

Here's a bookmarklet that you can save and manually run after you watch a video:

const duration = $('video').data('duration') / 1000;
$.ajax({
    type: 'PUT',
    url: `https://teamtreehouse.com/videos/${$('video').data('video-id')}/track/progress`,
    headers: {
        "X-HTTP-Method-Override": "PUT"
    },
    data: `started=${duration-60}&ended=${duration}`,
    success: function() {},
});

Just make sure you wrap it in javascript:(function() { } )();

Basically it does the same thing that the page is already doing, it calls the /progress API with a param that says that you finished watching.