refactor the syncVideos function
Merge pull request #7 from Vinelab/fix/sync

refactor the syncVideos function