200 Commits

Author SHA1 Message Date
James Taylor
a7527986c8
Fix embed page broken due to changes to jinja variables
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 23:24:32 -05:00
309ff40943
watch.html: Move loose inline javascript into watch.js
The number of inline code blocks and the dependencies between them
became unmanageable.

From 9d96c07a3c2e68f1893634574c3be64e41a2c041 Mon Sep 17 00:00:00 2001
From: James Taylor <user234683@users.noreply.github.com>
2021-08-29 22:43:10 -05:00
James Taylor
6e39ae19b6
Prevent Firefox from remembering quality select on page refresh
The video quality is only changed when the quality selector
changes. If it was changed and the user refreshes, Firefox
remembers the selected value, but since no change event is fired,
the select will display the wrong quality.

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 21:51:41 -05:00
James Taylor
9f44e0474b
Integrate quality selection into Plyr
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 21:47:14 -05:00
ee581c56a3
fix missing data variable 2021-08-29 21:44:08 -05:00
James Taylor
fa3b78583f
avmerge: Close streams to avoid errors while changing quality
If a fetchRange network request finished after the quality was
changed, there would be a "InvalidStateError: An attempt was made
to use an object that is not, or is no longer, usable" because
appendSegment was trying to append to the sourceBuffer that was
unusable after the video src was changed to a new mediaSource.

Adds a close method to the AVMerge class to properly clean and
close everything so these sorts of errors won't happen.

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 21:00:30 -05:00
James Taylor
a7da23c6da
Add video quality selector
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 20:52:57 -05:00
James Taylor
c9a75042d2
Add support for more qualities, merging video+audio using MSE
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 18:48:56 -05:00
e4af99fd17
Revert "Add support for more qualities, merging video+audio using MSE"
This reverts commit d56df02e7b1eba86baf511289208295b1f6c5a50.
2021-08-29 18:48:01 -05:00
James Taylor
d56df02e7b
Add support for more qualities, merging video+audio using MSE
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 18:44:26 -05:00
0c106bb111
[frontend]: fix current version 2021-08-27 12:54:31 -05:00
59f32b31d9
[frontend]: improve current version 2021-08-27 12:06:41 -05:00
ef66da4d27
[embed]: minor fix 2021-08-14 16:47:49 -05:00
ccaf2b9f9f
[embed]: fix sha512sum 2021-08-14 16:45:52 -05:00
db1b23fea4
[librejs]: add mising plyr-start.js 2021-08-14 14:34:17 -05:00
5a09d53053
[Frontend]: fix macro 2021-08-14 13:50:40 -05:00
af1df31161
[plyr]: update 2021-08-09 22:09:04 -05:00
James Taylor
bee14ea9ea
Comments: Fix exceptions when ctoken metadata are missing (None)
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-09 12:00:18 -05:00
48f9d06ba3
fix missing plyr on embed 2021-07-05 15:50:41 -05:00
33d732f781
fix right click for video 2021-07-05 15:44:07 -05:00
49d823e135
Fix request search when is empty 2021-07-04 12:08:21 -05:00
de5510d3e3
Improved plyr configuration 2021-07-03 23:38:50 -05:00
James Taylor
acfa31ff59
Change search url path to match the YouTube path
Fixes #67

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-07-01 21:04:33 -05:00
4a9c1422e7
w3c syntax, unnecessary role=button 2021-06-29 19:11:10 -05:00
c6fe980a7a
autoplay-toggle: use label tag
from upstream:

<label> is semantic and makes clicking the text activate in checkbox
2021-06-29 19:07:40 -05:00
5906633641
fix settings.subtitles_mode in plyr 2021-06-23 15:48:19 -05:00
2c56a24711
fix name id of video 2021-06-23 15:35:01 -05:00
61b4518335
Fix set language subtitles 2021-06-23 15:19:31 -05:00
7f79269cf3
usage let not var 2021-06-23 14:43:10 -05:00
Umimaso
2d1794889a
feat: autoplay for related videos
Add autoplay support for related videos. Move the playlist autoplay code
into this shared script. Add the SameSite=Strict attribute to the
autoplay cookie due to Firefox soon rejecting cookies which use
SameSite=None without the secure attribute.

Closes: #50

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-06-23 14:34:55 -05:00
ff7aae05c4
Open direct link in new tab 2021-06-23 12:43:55 -05:00
Umimaso
5b4c99c702
feat: add direct link
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-06-23 12:42:17 -05:00
fc8a23099d
Fix shared.css file style missing 2021-06-14 18:39:03 -05:00
999173b1ba
[error.html]: fix set style 2021-06-14 12:08:28 -05:00
31901905e3
Fix name app 2021-06-10 16:48:22 -05:00
7fd2c3474f
Capitalize name app 2021-06-10 16:41:45 -05:00
d35188178b
update URL issues 2021-06-10 16:33:25 -05:00
46f4ed1dc6
Fix design error message 2021-06-10 16:32:42 -05:00
James Taylor
a9edc54aac
Use extract_approx_int for comment likes
Full digits no longer available

Closes #64

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-06-10 12:47:09 -05:00
1b860c6917
Not force plyr as player 2021-05-24 21:17:59 -05:00
ff8531cb84
[licenses]: fix URL license Expat 2021-05-22 17:55:24 -05:00
b3abec81e1
Add plyr as main player
Also plyr supports switch quality
2021-05-22 17:05:39 -05:00
7feea3f839
Add subscriptions export
plus design by heckyel
2021-05-06 15:18:19 -05:00
James Taylor
0ee1aabc74
Add local playlist export option
Temporary workaround for #61

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-05-06 14:24:00 -05:00
James Taylor
d88a69d811
Add tooltip to video speed box to improve discoverability
See #60

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-04-13 21:08:08 -05:00
James Taylor
e549b5f67c
Channel: Allow going to next pages of playlists page
Uses previous and next buttons. Now can view more than just
first page of playlists page

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-03-15 22:22:15 -05:00
65300003cd
Fix data comments 00ef1c862744ec00886bc3fa4b95fdfc6c151866 2021-02-26 13:16:01 -05:00
James Taylor
00ef1c8627
Fix comment replies
Comment reply protobuf now requires the channel id of the uploader
of the video. Otherwise the endpoint returns 500.

Instead of making the protobuf ourselves and passing this data
around through query parameters, just use the ctoken provided to us
but modify the max_replies field from 10 to 250.

Fixes #53

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-02-26 11:39:23 -05:00
f26c9be85e
Fix URL 2021-02-25 14:27:46 -05:00
875e1ef986
Change URL repo 2021-02-25 13:08:25 -05:00