Commit Graph

470 Commits

Author SHA1 Message Date
simon b8b95f9d79
inheirt VideoProgressView from base class to get auth 2022-02-21 20:59:04 +07:00
simon ec00568008
fix auto reset of playlist_subscribed 2022-02-20 19:22:11 +07:00
simon 241d8326f7
add video progress API endpoints 2022-02-17 18:20:30 +07:00
simon 4d83af7c14
bump redis client 2022-02-17 18:19:52 +07:00
simon 265795f4a9
add config key to api response 2022-02-17 16:59:59 +07:00
simon 047fc1f3f1
bump release version 2022-02-13 10:58:58 +07:00
simon 8fce31b983
fix reindex and deactivate error 2022-02-13 10:05:08 +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 78720b33b7
clean exit when auto subtitle extract fails 2022-02-12 18:52:03 +07:00
simon ce4fa8ee61
delete existing before of reindexing subtitles 2022-02-12 18:22:01 +07:00
simon a5f6be16e1
switch subtitle source order 2022-02-12 17:09:05 +07:00
simon b494fc10af
cover edge cases where end timestamp is after start timestamp of new cue 2022-02-12 16:03:04 +07:00
simon 09500557c8
open fail on subtitle line parse error 2022-02-11 18:47:29 +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 af8e01cd8c
fix clean exit if no subtitles selected 2022-02-11 09:03:56 +07:00
Nathan DeTar 656a0c7327
Added subtitle support to JS player. (#168) 2022-02-11 08:53:09 +07:00
simon 16f33feda0
process subtitle media url paths 2022-02-10 19:45:22 +07:00
simon 3ea5e9c537
bump dependencies 2022-02-10 19:27:05 +07:00
simon 4d30bed3cc
extend delete video to also delete subtitles 2022-02-10 19:09:07 +07:00
simon 0e56efc428
limit filesystem scan to mp4 files only 2022-02-10 18:48:35 +07:00
simon 077692987b
fix multi language subtitle extractor, and better regex for timestamp matching 2022-02-10 18:32:23 +07:00
simon b071612038
better error raising for add player info 2022-02-10 17:34:21 +07:00
simon 0414df0de0
fix key error for subtitle source 2022-02-10 17:10:30 +07:00
simon a2cae51f48
bulk import subtitle lines into es 2022-02-10 17:02:19 +07:00
simon 9f652802ae
add new mapping for subtitle index 2022-02-10 11:47:14 +07:00
simon 4e4cfe3334
pass whole video object into YoutubeSubtitle class 2022-02-09 23:40:15 +07:00
simon 6cb892a811
integrate auto generated subtitle cleaner 2022-02-09 21:33:41 +07:00
simon 5f6158243e
auto generated subtitle parser and cleaner 2022-02-07 21:18:52 +07:00
simon 1664b0d4fc
restructure video tag to add subtitle tracks 2022-02-06 00:08:24 +07:00
simon e98ffc0050
add subtitles mapping to video index 2022-02-05 23:50:47 +07:00
simon 52013aff3f
fix subtitle download of first video of channel without folder 2022-02-05 23:42:42 +07:00
simon 44af78b7e3
handle NA in ffprobe duration extractor 2022-02-05 23:09:05 +07:00
simon 2bf9e9683b
error handeling in _normalize_lang to skip livechat and ignore missing 2022-02-05 22:51:38 +07:00
simon f5f46349b2
handle rescan name change 2022-02-05 22:38:59 +07:00
simon 851fbae900
fix video template dislike icon and add watched icon 2022-02-05 18:42:09 +07:00
simon 91452b5114
remove redundant video player api endpoint 2022-02-05 18:35:02 +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 8fe00e2152
process api return values for frontend use 2022-02-05 17:46:14 +07:00
simon ac531affb5
standardize country specific subtitle language codes 2022-02-05 16:07:11 +07:00
simon 3ef35a9d53
raise FileNotFoundError to catch for reindex 2022-02-05 09:30:34 +07:00
simon 7aaf140ccb
index subtitle url to video 2022-02-04 17:14:00 +07:00
simon ad2647c4ba
upgrade libs 2022-02-04 17:13:30 +07:00
simon a82e78f8bf
index selected subtitles if available 2022-01-30 23:57:58 +07:00
simon 365a2bf59f
add frontend subtitle dl settings 2022-01-30 20:10:29 +07:00
simon e5e83287ab
fix channel delete for channel_id fallback folders 2022-01-30 08:33:10 +07:00
simon 8e860d4f01
fix last page error for more than 10k results, #156 2022-01-27 23:39:07 +07:00
simon 0749202d5d
add fallback for none ascii channel names, #127 #146 2022-01-27 22:50:02 +07:00
simon 160676acc1
add mapping for channel_tvart_url 2022-01-27 21:56:48 +07:00
simon 2b2ff814e3
red hover logout button 2022-01-27 16:04:04 +07:00
simon 87b72a571d
simplify reading json files 2022-01-27 15:32:58 +07:00
simon b6f9fb58ad refactor VideoDownloader class, better obs builder 2022-01-26 19:37:36 +07:00
simon 2fc0cbacf5
update doc strings to represent new module structure 2022-01-23 19:32:08 +07:00
simon 0fc0cc8e87
major refactor, split up modules 2022-01-22 22:13:37 +07:00
simon f3efca7464
bump yt_dlp version 2022-01-22 17:57:36 +07:00
simon b64a2f8195
squash index.py refactor commits 2022-01-22 17:48:54 +07:00
simon 2f4d4e715b
refactor index class in to base and video classes 2022-01-19 13:04:15 +07:00
simon 44733adf4d Merge branch 'master' into testing 2022-01-18 17:28:50 +07:00
Nathan DeTar 26bc2d2af4
Add theme to scrollbar. (#153)
* Add theme to scrollbar.

* add firefox scroll bar color

Co-authored-by: simon <simobilleter@gmail.com>
2022-01-18 17:27:49 +07:00
simon 68f19b1719
make SearchHandler use new ElasticWrap class 2022-01-18 13:37:22 +07:00
simon 3eb0353fa9
new base class to make all es calls from 2022-01-18 13:36:41 +07:00
simon af2783c18a
remove unneeded auth 2022-01-18 13:35:48 +07:00
simon 8b15ea5dc8
bump redis version 2022-01-18 11:27:24 +07:00
simon 3d26f320bf
new logout icon 2022-01-18 11:26:26 +07:00
simon 7028621bc5 merge new api view, #build
Changes:
- merges new cast improvements
- merges toggle invert
- merges new video player api endpoint
- merges basic browser extension example
2022-01-15 14:19:11 +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
simon 79b0a989be
new api view to return video player 2022-01-15 14:14:18 +07:00
simon cccb8e570a Merge cast changes from 'master' into testing 2022-01-15 13:35:16 +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 fec6237907
add chrome-extension to CORS_ALLOWED_ORIGIN 2022-01-15 12:27:36 +07:00
simon 3df8f65db6
implement cors for browser extension 2022-01-14 14:46:00 +07:00
simon c703105c5e
fix ryd 404 error for reindex and deactivate 2022-01-11 18:54:40 +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 c4a547f407
cleanup and typos 2022-01-11 17:05:04 +07:00
simon b28773b3a0
add exmples, auth docs, and list endpoints 2022-01-11 16:53:58 +07:00
simon 50006e423c
implement channel list and subscribe api 2022-01-11 16:53:02 +07:00
simon 8d5b4ac242
implement api return status code 2022-01-11 16:16:28 +07:00
simon 52a54fbe31
add to queue api endpoint 2022-01-11 15:58:50 +07:00
simon 382e89abb7
implement api token auth 2022-01-11 14:15:36 +07:00
simon 917e73ec4d
new django api app, implementing basic get views 2022-01-10 22:51:52 +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 9ad8177b7a
retry failed commit 2022-01-08 23:57:51 +07:00
simon 8ba9ced833
move ryd to avoid celery missing redis var 2022-01-08 21:10:38 +07:00
simon 1a95797997
improve scheduler validation with regex, #126 2022-01-08 20:04:51 +07:00
simon c660edd997
bump library versions 2022-01-07 18:35:59 +07:00
simon 9498cf94f3
fix playlist view_origin 2022-01-07 18:30:40 +07:00
simon 099f9dfe00
make search results follow default view styles 2022-01-07 18:29:25 +07:00
simon 1cbe0bbfc0
delete playlists of channel when deleting channel, #118 2022-01-05 15:39:41 +07:00
simon 49cd272557
size limit for ryd missing rating query 2022-01-05 15:10:33 +07:00
simon 1c27934d77
remove redundant lock 2022-01-05 14:51:02 +07:00
simon c85be45846
extend ryd to refresh when missing average_rating 2022-01-05 14:43:24 +07:00
simon 7a1f77e548
bump library versions 2022-01-05 14:42:28 +07:00
simon 3999d679e3
fix linting 2022-01-05 14:09:35 +07:00