Commit Graph

209 Commits

Author SHA1 Message Date
Mageas
66f396ce32 Add a button to remove playlist
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-09-10 17:58:21 -05:00
James Taylor
9c7e93ecf8 Redo av codec settings & selections to accomodate webm
Allows for ranked preferences for h264, av1, and vp9 codecs in
settings, along with equal preferences which are tiebroken using
smaller file size.

For each quality, gives av-merge a list of video sources
and audio sources sorted based on preference & file size. It
will pick the first one that the browser supports.

Closes #84

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-09-06 16:18:11 -05:00
James Taylor
2360958862 Subscriptions manager: Make file input required
This avoids an ugly error if the user forgets to select a file

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-09-01 22:31:28 -05:00
James Taylor
cd3383e6e3 Add NewPipe subscriptions import and export
Closes #82

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-09-01 22:01:05 -05:00
Jesús
676536a294 embed: plyr shasum update 2021-08-31 21:07:39 -05:00
Jesús
1632ab5cda plyr: remove sourceMappingURL=plyr.min.js.map 2021-08-31 21:00:43 -05:00
James Taylor
5bf4c284a5 subscriptions: Support new subscriptions.csv format
According to
https://github.com/iv-org/invidious/issues/2319
Google Takeout changed the format from json to csv

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-31 18:36:10 -05:00
Jesús
4a45a699ae fix "Security Error: Content, may not load data from blob" 2021-08-30 00:24:41 -05:00
Jesús
7264bbeaed licenses.html: update 2021-08-29 23:34:18 -05:00
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
Jesús
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
Jesús
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
Jesús
e4af99fd17 Revert "Add support for more qualities, merging video+audio using MSE"
This reverts commit d56df02e7b.
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
Jesús
0c106bb111 [frontend]: fix current version 2021-08-27 12:54:31 -05:00
Jesús
59f32b31d9 [frontend]: improve current version 2021-08-27 12:06:41 -05:00
Jesús
ef66da4d27 [embed]: minor fix 2021-08-14 16:47:49 -05:00
Jesús
ccaf2b9f9f [embed]: fix sha512sum 2021-08-14 16:45:52 -05:00
Jesús
db1b23fea4 [librejs]: add mising plyr-start.js 2021-08-14 14:34:17 -05:00
Jesús
5a09d53053 [Frontend]: fix macro 2021-08-14 13:50:40 -05:00
Jesús
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
Jesús
48f9d06ba3 fix missing plyr on embed 2021-07-05 15:50:41 -05:00
Jesús
33d732f781 fix right click for video 2021-07-05 15:44:07 -05:00
Jesús
49d823e135 Fix request search when is empty 2021-07-04 12:08:21 -05:00
Jesús
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
Jesús
4a9c1422e7 w3c syntax, unnecessary role=button 2021-06-29 19:11:10 -05:00
Jesús
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
Jesús
5906633641 fix settings.subtitles_mode in plyr 2021-06-23 15:48:19 -05:00
Jesús
2c56a24711 fix name id of video 2021-06-23 15:35:01 -05:00
Jesús
61b4518335 Fix set language subtitles 2021-06-23 15:19:31 -05:00
Jesús
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
Jesús
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
Jesús
fc8a23099d Fix shared.css file style missing 2021-06-14 18:39:03 -05:00
Jesús
999173b1ba [error.html]: fix set style 2021-06-14 12:08:28 -05:00
Jesús
31901905e3 Fix name app 2021-06-10 16:48:22 -05:00
Jesús
7fd2c3474f Capitalize name app 2021-06-10 16:41:45 -05:00
Jesús
d35188178b update URL issues 2021-06-10 16:33:25 -05:00
Jesús
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
Jesús
1b860c6917 Not force plyr as player 2021-05-24 21:17:59 -05:00
Jesús
ff8531cb84 [licenses]: fix URL license Expat 2021-05-22 17:55:24 -05:00