* Replaced isWatched() function.
* Switched to `updateVideoWatchStatus()` function
* Updated Onclick to `updateVideoWatchStatus(this)`
* Handle `this` input in `updateVideoWatchStatus()`
* Reduce API calls
* Fix video id
* Updated `createVideoTag()` description.
* Fixed URL used for cast integration
* Check video duration
* Updates progress bar on watched and close.
* Set progress bar width to 0% by default
* Cleanup, function descriptions
* Cleanup console logging
* Update progress bar on cast progress every 10s
* Catch short <30s videos and mark as watched
* Added cast integration docs.
* Changed header sizes.
* Added more space above Requirements
* Added cast integration docs.
* Removed separate cast integration docs
* Further indented quote from Google
* Switch to HTML based video position.
* Ground work for API changes and video progress
* Added onpause attribute to video.
* Added save video progress feature.
* Added API check for subtitle status.
* Switch method to DELETE if position is 0
* Added `createVideoTag()` function
* Added `InsertVideoTag()` function
* Switch to JS generated video tag, add on page load
* Removed extra data from DELETE request
* Removed unused code
* Reduced duplicate code
* Cleanup & groundwork cast pull metadata from API
* Minor bug fix
* Fix saving video progress on player close.
* Only send video progress when unwatched
* Cleanup
* Added `getURL()` function
* Cast use API & save progress/mark as watched
* Added cast progress checks
* Changed thresholds for marking videos as watched
* Added `watchedThreshold()` function
Changes:
- merges subtitle suport for JS video player
- merges hint what to do when no videos found
- merges better indexing and error handeling of subtitles
* Added subtitle support to JS player.
* Move `video-item` id to source tag.
* Move `video-item` id to source tag.
* Fix cast support to handle new video tag format
* Add subtitle support to cast integration, WIP
* Replace `&` with `&` in video titles.
* Check if the video is already marked as watched
* Switch to HTML watched check.
* Get video player data using new API
* Spelling
* Removed extra data from play button
* Reworked createPlayer, switched functions to API
* Add theme to scrollbar
* Removed extra metadata from playlist page
* Removed extra metadat from channel page
* Reworked createPlayer, switched functions to API
* Update style.css
* Changed watched indicator to match createVideo()
* Fixed createPlayer() watched button
* Fix watched indicator duplication
* Minor clean up
* Removed player-wrapper background
* Added video/channel info to generated player
* Removed description due to textReveal() conflict
* Mark video as played at 90% playback
* Groundwork for saving video playback
* Add half and empty stars to getStarRating()
* Check videoProgress input.
* Added last refresh and date published
* Switched date in create functions to API
* Fomatted dates to match the old format
* Remove console log from formatDates()
* Cleaned up error on video player close
* Added check for ryd dislikes/rating
* Refined ryd check
* Simplified player
* Added player stats css formatting
* Formatting for playlist name/link
* Add playlist title/link to player
* Commented out no longer used code
* Fix missing end `"` on video-player class
* Additional playlist error checking
* Change setting video progress to html method
* center thumbs icon, add eye icon for watched
* add playerStats builder example, change some spacing
* Removed `-` before playlist, reordered cast button
* Minor cleanup of unused code.
* Corrected POST data formating
* consolidate video api calls into one
* remove redundant api calls for search result population
* do some jshint
* shorten unit and add K to formatNumbers
Co-authored-by: simon <simobilleter@gmail.com>