Commit Graph

52 Commits

Author SHA1 Message Date
Samantaz Fox
82ac9a8609 Preferences: Add option to control preloading of video data (#4122)
This PR adds a configuration option to control the preloading of video data on
page load with the HTML5 'preload'[1] attribute on the `<video>` element.

The option is enabled by default, meaning that the `preload` attribute's value
will be 'auto'. If users want to prevent preloading of video data, they
can disable the option, which will set the attribute value to 'none'.

[1](https://www.w3schools.com/tags/att_video_preload.asp)

Closes issue 4110
2024-10-08 17:38:06 +02:00
syeopite
ecbea0b67b Ameba: Fix Lint/ShadowingOuterLocalVar 2024-08-21 02:43:26 -07:00
syeopite
f66068976e Ameba: Fix Naming/PredicateName 2024-08-21 02:43:08 -07:00
Samantaz Fox
5e38ef59da Ameba: Fix Lint/UselessAssign (#4795)
Related to issue 2231
2024-08-11 13:38:29 +02:00
syeopite
fad0a4f52d Ameba: Fix Lint/UselessAssign 2024-07-17 12:39:40 -07:00
syeopite
8258062ec5 Ameba: Fix Lint/NotNilAfterNoBang 2024-07-15 17:36:00 -07:00
Samantaz Fox
2414e7db41 User: Add support for importing Youtube watch history (#4171) 2023-10-21 18:33:05 +02:00
Ulysses Zhan
3b219a4c7f remove a debug statement 2023-10-20 13:45:16 -07:00
ChunkyProgrammer
0bd415158f Fix importing FreeTube subscriptions with multiple profiles
Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
2023-10-16 00:32:24 -04:00
Ulysses Zhan
b9cbdce976 add: importing watch history from YouTube 2023-10-14 15:49:33 -07:00
Thomas Lange
bf470704a5 Add option to control preloading of video data
Fix #4110 by adding an option to control the preloading of video data on
page load. If disabled ("false"), the browser will not preload any video
data until the user explicitly hits the "Play" button.

If enabled ("true"), the default behavior will be used, which means the
browser decides how much of the video will be preloaded.
2023-09-26 22:21:12 +02:00
Brahim Hadriche
0110f865c3 Playlist import no refresh 2023-07-08 16:51:19 -04:00
Samantaz Fox
1b942f4f0a User: Strip empty new lines before parsing CSV 2023-06-10 20:58:21 +02:00
Samantaz Fox
8d434ac06a User: Allow CSV Youtube playlists to be imported (#3595) 2023-05-23 19:34:24 +02:00
Gavin
c421f1f205 Merge branch 'iv-org:master' into youtube-playlist-import 2023-04-03 17:09:34 -07:00
thtmnisamnstr
fffdaa1410 Updated csv reading as per feedback and ran
Signed-off-by: thtmnisamnstr <gavinj1984@gmail.com>
2023-04-03 17:07:58 -07:00
thtmnisamnstr
3341929060 removed unnecessary conditionals and uninitialized variable declarations
Signed-off-by: thtmnisamnstr <gavinj1984@gmail.com>
2023-03-07 15:46:36 -08:00
thtmnisamnstr
b3eea6ab3e improved import algorithm, fixed a referer issue from the playlists page after deleting a playlist
Signed-off-by: thtmnisamnstr <gavinj1984@gmail.com>
2023-02-23 15:55:38 -08:00
Brahim Hadriche
20289a4d01 Fix order for import 2023-02-20 14:56:38 -05:00
thtmnisamnstr
6f01d6eacf ran crystal tool format. it should fix some CI issues
Signed-off-by: thtmnisamnstr <gavinj1984@gmail.com>
2023-02-10 12:00:02 -08:00
Brahim Hadriche
c37d8e3664 Use CONFIG.playlist_length_limit when exporting playlists 2023-02-05 15:49:56 -05:00
Brahim Hadriche
2606decd21 Refactor export function 2023-02-05 15:00:11 -05:00
Gavin Johnson
5c7bda66ae removed comments
Signed-off-by: Gavin Johnson <gavinj1984@gmail.com>
2023-01-28 09:55:36 -08:00
Gavin Johnson
96344f28b4 added youtube playlist import functionality. fixes issue #2114
Signed-off-by: Gavin Johnson <gavinj1984@gmail.com>
2023-01-28 09:26:16 -08:00
Gavin Johnson
855202e40e added youtube playlist import; initial commit
Signed-off-by: Gavin Johnson <gavinj1984@gmail.com>
2023-01-16 15:40:38 -08:00
Jakub Filo
7c45026383 Fix playlist limit 2022-09-28 12:21:23 +02:00
Jakub Filo
4818b89ab1 Allow to set maximum custom playlist length via a config variable. 2022-08-27 22:36:07 +02:00
Emilien Devos
b55c1a35bf Set cookies to Lax 2022-08-06 19:01:57 +02:00
Samantaz Fox
8262aa4138 Merge pull request #2895 from MathiusD/master
Persist player volume/speed
2022-04-09 20:05:28 +02:00
Samantaz Fox
7f445f6167 Merge pull request #2915 from MathiusD/RefreshChannelsJob-frenquency
Allow configuration of the time between 2 RefreshChannelsJob
2022-02-25 00:04:48 +01:00
Le Jester
897f871f99 Make the history recording optional. 2022-02-23 13:03:21 +01:00
Féry Mathieu (Mathius)
09a585c93b Add sameSite policy in cookie management in server side 2022-02-22 18:57:21 +01:00
Féry Mathieu (Mathius)
fd0ac3a671 Update management of channel_refresh_interval
Follow indications:
https://github.com/iv-org/invidious/pull/2915#discussion_r811373503
2022-02-22 01:35:35 +01:00
Féry Mathieu (Mathius)
f109d812a1 Move TimeSpanConverter with another Converters
Follow indications :
https://github.com/iv-org/invidious/pull/2915#discussion_r811373953
2022-02-22 01:34:19 +01:00
Féry Mathieu (Mathius)
7048193f00 Move store of modification in Cookie instead of localStorage 2022-02-14 17:22:06 +01:00
Samantaz Fox
57353fe0c6 Fix Freetube subscriptions import 2022-02-13 22:40:51 +01:00
Samantaz Fox
60e870b277 Fix OPML import 2022-02-12 17:32:20 +01:00
Samantaz Fox
71a8867a4a Move user cookies to their own module 2022-02-07 17:39:15 +01:00
Samantaz Fox
2bbd424fce Move import logic to its own module 2022-02-07 17:38:50 +01:00
Samantaz Fox
ef8dc7272b Put CSV import function under its own module 2022-02-07 17:15:22 +01:00
Samantaz Fox
ad4a06fca5 Move user captcha code to its own module 2022-02-07 17:15:22 +01:00
Samantaz Fox
c04f45d5e3 Move user struct to own file, under Invidious namespace 2022-02-07 17:15:22 +01:00
Samantaz Fox
81a2300af8 Prevent import of insanely large files 2022-01-12 01:28:58 +01:00
bbielsa
6764185543 Add explicit return keyword 2022-01-08 18:07:07 +01:00
bbielsa
0a66a68db8 Move require statement to the correct file 2022-01-08 18:07:07 +01:00
bbielsa
62057e676a Move parse_subscription_export_csv function to user/imports.cr 2022-01-08 18:07:06 +01:00
bbielsa
5abe7fe123 Rename 'remember_position' to 'save_player_pos' for clarity 2021-12-15 19:37:55 +01:00
bbielsa
a6a0bbf398 Add remember_position field to the Preferences and VideoPreferences structs, and add a checkbox in the preferences page to toggle it 2021-12-15 19:37:55 +01:00
Dmitry Sandalov
a629521c37 Feature Request: Localization for trending (remove region from server config) 2021-10-25 10:57:27 +03:00
Dmitry Sandalov
d9c58c4837 Feature Request: Localization for trending iv-org#331 2021-10-21 14:54:15 +03:00