Commit Graph

148 Commits

Author SHA1 Message Date
simon 774220ab1f
add channel overwrite form to frontend, store in es 2022-03-15 12:00:48 +07:00
simon f6950a2ca5
list all in progress videos 2022-03-12 17:29:34 +07:00
Nathan DeTar 6e3df21f8c
Continue Watching Section (#188)
* Replaced isWatched() function.

* Switched to `updateVideoWatchStatus()` function

* Updated Onclick to `updateVideoWatchStatus(this)`

* Handle `this` input in `updateVideoWatchStatus()`
2022-03-10 20:20:23 +07:00
simon 40c8e6d146
standardize template jinja indentation 2022-03-07 20:58:17 +07:00
simon fb12a32d4f
use generic data-id and data-status attributes for watched checkbox 2022-03-07 20:48:45 +07:00
simon 437e83b2ae
add continue watching section to home page 2022-03-07 20:26:37 +07:00
simon b28905bbae
bump footer version v0.1.2 2022-02-25 12:27:16 +07:00
Nathan DeTar 99c97a703f
Reduce API Calls (#181)
* 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
2022-02-25 10:39:33 +07:00
simon df777104af
add video progress bar to channel_id and playlist_id views 2022-02-24 19:30:12 +07:00
simon d88d6d6a61
add video progress bar 2022-02-24 18:58:26 +07:00
Nathan DeTar 4812b8da55
Save Video Progress (#179)
* 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
2022-02-24 09:36:31 +07:00
simon 047fc1f3f1
bump release version 2022-02-13 10:58:58 +07:00
simon fef866bf0b
indicate max page size on downloads page, add note to wiki, #156 2022-02-12 19:42:07 +07:00
simon 428cc315e4
Subtitle improvements, #build
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
2022-02-12 19:11:47 +07:00
Nathan DeTar 385d6bace8
Fix cast support to handle new video tag format. (#169)
* 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 `&amp` with `&` in video titles.

* Check if the video is already marked as watched

* Switch to HTML watched check.
2022-02-12 19:08:19 +07:00
simon 7524691b79
implement API token revoke 2022-02-11 18:19:10 +07:00
simon f1de8db4f3
hide API token by default 2022-02-11 17:18:37 +07:00
simon 08f5248e7a
make subtitle index optional 2022-02-11 13:36:36 +07:00
Stephen Herbein 4467e97f3c
When no videos are found, add a hint to start a search/download (#167) 2022-02-11 12:52:26 +07:00
simon 1664b0d4fc
restructure video tag to add subtitle tracks 2022-02-06 00:08:24 +07:00
simon 851fbae900
fix video template dislike icon and add watched icon 2022-02-05 18:42:09 +07:00
simon 5b37bd059c Merge branch 'testing'
combine new api endpoints from #151
2022-02-05 18:27:24 +07:00
Nathan DeTar 9079a2a78b
Get Video Player Data Using New API (#151)
* 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>
2022-02-05 18:26:31 +07:00
simon 365a2bf59f
add frontend subtitle dl settings 2022-01-30 20:10:29 +07:00
simon 8e860d4f01
fix last page error for more than 10k results, #156 2022-01-27 23:39:07 +07:00
simon 2b2ff814e3
red hover logout button 2022-01-27 16:04:04 +07:00
Laurant Marijnissen 385771cba0
invert the hide button to more clearly show what it is currently set as. (#150) 2022-01-15 14:18:23 +07:00
Nathan DeTar b7922d171d
Improved Cast Support (#143)
* Added cast integration requirements.

HTTPS and a supported browser are required for this integration.

* Improved cast handeling.

* Theme cast button.

* Improved cast support.

* Added proper cast button.

* Moved cast button location

* Moved button location

* Reorder cast button

* Fix typo

* Revert cast setting description.

* Match master branch

* Added comments

* Added id `cast-script` to cast-videos.js

* Reworked event listener

* Add cast  button to home player

* Check if active media on cast, pause browser video

* Commented out console logging

* Uncommented cast failed console log

* Cast video at current playback position

* use theme vars for cast color buttons

* add cast variable to base ArchivistViewConfig class

Co-authored-by: simon <simobilleter@gmail.com>
2022-01-15 13:33:16 +07:00
simon 51f63f7b71 Merge api app from branch 'testing' 2022-01-11 18:43:03 +07:00
Nathan DeTar 45518dc3d2
Basic Google Cast Support (#140)
* Added Start and Stop cast buttons.

* Modified from the internet.

* Code to initialize casting

* Added `video-item` id to video

* Renamed function to make more sense

* Renamed cast functions to make more sense

* Renamed cast functions to make more sense

* Changed console logging message.

* Make cast buttons appear if enabled in settings.

* Make cast scripts only load if enabled in settings

* add cast configuration form, #140

* fix spelling

Co-authored-by: simon <simobilleter@gmail.com>
2022-01-11 18:31:22 +07:00
simon 382e89abb7
implement api token auth 2022-01-11 14:15:36 +07:00
Nathan DeTar edc9f3fe15
Added a button to download a video to the local device. (#137)
* Add video download button.

* Swapped <a> and <button> tags to fix theme issue.

* Download button renamed to `Download File`
2022-01-10 09:00:29 +07:00
simon e8a533bbbe
add social links and update to v0.1.0 2022-01-08 23:58:41 +07:00
simon 099f9dfe00
make search results follow default view styles 2022-01-07 18:29:25 +07:00
simon c85be45846
extend ryd to refresh when missing average_rating 2022-01-05 14:43:24 +07:00
simon dc2fb65312
add optin returnyoutubedislike.com integration 2022-01-05 14:06:07 +07:00
simon 49eb565e2a
fix sort_by selected attribute and animation toggle 2022-01-02 16:25:05 +07:00
simon 08f74caef0
simplify the sort_order and sort_by and standardize player location in page 2022-01-01 18:13:12 +07:00
simon f7fce001c4
simplify the subscribe buttons 2022-01-01 17:25:57 +07:00
simon 4915aa0c11
remove now redundant search forms 2021-12-31 13:42:07 +07:00
simon 5616d3ee0d
add search page link to top move about to footer 2021-12-31 12:41:54 +07:00
simon e823d6e1b3
add multi search js functions to dynamically populate results 2021-12-30 22:13:47 +07:00
simon e8eb7077ed
add initial search endpoint and improve results$ 2021-12-30 20:42:42 +07:00
simon 4c46f0bdbd
refactor playlist and playlist-id views inheritance, #116 2021-12-27 16:58:08 +07:00
simon 30cf54c49c
refactor channel and channel-id views inheritance, #116 2021-12-27 15:23:52 +07:00
simon fb512b26ea
further consolidate by adding query results in parent class 2021-12-27 12:01:49 +07:00
simon 2ae25540d1
refacter DownloadView to use new inheritance structure, #116 2021-12-27 10:58:49 +07:00
simon 42f4f4cb6f
improved sort order mobile layout on home 2021-12-18 18:38:01 +07:00
simon 2d6cc43a9e
better label placement on toggle box 2021-12-18 18:22:57 +07:00
simon 3015e59a29
fix styling of sub unsub frontent feedback with span tag 2021-12-18 16:56:32 +07:00