54 Commits

Author SHA1 Message Date
syeopite 438467f69a Add playback success rate to /api/v1/stats (#4085)
* Add stats-based /videoplayback blockage status

* Count when YouTube returns wrong video as failure

* Cast playback stats hash type prior to return

* Bump stats refresh timer to 10 minutes
2023-11-04 13:52:30 +00:00
Émilien (perso) 0e4d3d89fc update params for fetching stream data (#4156)
* update params for fetching stream data

* Remove link about special parameter
2023-10-20 08:48:56 +02:00
syeopite be2feba17c Lint 2023-09-23 09:57:26 -04:00
syeopite d371eb50f2 WebVTT::Builder: rename #line to #cue 2023-09-23 09:41:41 -04:00
syeopite 0cb7d0b441 Refactor Invidious's VTT logic to use WebVtt.build 2023-09-23 09:40:04 -04:00
Samantaz Fox 842e9fade5 Captions: Add ability to use Innertube's transcripts API (#4001) 2023-09-18 23:31:56 +02:00
syeopite 3615bb0e62 Update src/invidious/videos/caption.cr
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2023-08-24 16:21:05 -07:00
syeopite 7d435f082b Update src/invidious/videos/transcript.cr
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2023-08-24 23:20:20 +00:00
syeopite 1f7592e599 Refactor structure of caption.cr
Rename CaptionsMetadata to Metadata
Nest Metadata under Captions
Unnest LANGUAGES constant from Metadata to main Captions module
2023-08-24 16:00:02 -07:00
syeopite 6b17bb5250 Regression from #4037 | Fix storyboards
PR #4037 introduced a workaround around YouTube's new integrity checks
on streaming URLs. However, the usage of this workaround prevents
storyboard data from being returned by InnerTube.

This commit fixes that by only using the workaround when calling try_fetch_streaming_data
2023-08-08 15:28:01 -07:00
syeopite 2f6b2688bb Use workaround for fetching streaming URLs
YouTube appears to be A/B testing some new integrity checks. Adding the
parameter "CgIQBg" to InnerTube player requests appears to workaround
the problem

See https://github.com/TeamNewPipe/NewPipeExtractor/pull/1084
2023-08-06 12:22:22 -07:00
syeopite e4942b188f Integrate transcript captions into captions API 2023-07-23 14:40:09 -07:00
syeopite caac7e2166 Add method to convert transcripts response to vtt 2023-07-23 14:40:08 -07:00
syeopite 4b3ac1a757 Add method to parse transcript JSON into structs 2023-07-23 14:40:08 -07:00
syeopite 8e18d445a7 Add method to generate params for transcripts api 2023-07-23 14:40:08 -07:00
syeopite 7e5935a9da Rename Caption struct to CaptionMetadata
The Caption object does not actually store any text lines for the
subtitles. Instead it stores the metadata needed to display and fetch
the actual captions from the YT timedtext API.

Therefore it may be wiser to rename the struct to be more reflective of
its current usage as well as the future usage once the current caption
retrival system is replaced via InnerTube's transcript API
2023-07-23 14:40:08 -07:00
Emilien Devos 8e4833d21a temp explanation about video not available issue 2023-06-11 16:54:30 +02:00
chunky programmer 1b10446e5e move url parsing to utils method 2023-04-30 18:58:39 -04:00
chunky programmer d420741cc1 Allow channel urls to be displayed in YT description 2023-04-30 18:58:08 -04:00
Samantaz Fox adc605024f Videos: Add support for attributed descriptions (#3701) 2023-04-10 17:54:22 +02:00
Samantaz Fox b3c0afef02 Videos: fix description text offset when emojis are present 2023-04-05 23:43:41 +02:00
techmetx11 73d2ed6f77 Optimize some redundant stuff 2023-03-29 23:33:23 +00:00
ChunkyProgrammer f840addd93 Fix error when song title is missing from the track 2023-03-27 22:10:28 -04:00
techmetx11 7755ed4ac8 Fix regexs 2023-03-23 20:12:54 +00:00
techmetx11 49ddf8b6bd Added attributed description support 2023-03-23 05:10:21 +00:00
Samantaz Fox 8a44bd11d2 Videos: Fix 0 views and empty license field (#3557) 2023-03-20 19:15:12 +01:00
Samantaz Fox 4ae158ef6d Videos: Add back support for views on livestreams 2023-03-19 22:44:59 +01:00
ChunkyProgrammer e3081ef1a9 Apply style change suggestions
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2023-03-07 14:23:08 -05:00
ChunkyProgrammer 742c951bc9 support videos with multiple songs 2023-03-07 13:06:15 -05:00
ChunkyProgrammer d8e23d34b6 add song title for music tracks 2023-03-07 11:38:09 -05:00
techmetx11 8eca5b270e Video: Fix 0 views, and empty license field 2023-02-26 14:01:08 +01:00
Samantaz Fox c7f34042a2 Video: Add support for the music description section (#3559) 2023-02-02 21:49:09 +01:00
Samantaz Fox 624425cfa8 Add support for timedtext captions (#3533) 2023-01-22 18:34:40 +01:00
techmetx11 caf9520c86 Major improvements 2023-01-22 00:12:04 +01:00
techmetx11 fe5b81f2c3 Add support for multiple songs 2023-01-16 14:04:20 +01:00
Émilien Devos d6087fac47 Don't continue when LOGIN_REQUIRED and no videoDetails 2023-01-15 16:22:05 +01:00
techmetx11 1b5fbfc13e Video: Add support for the music section 2023-01-14 13:16:20 +01:00
DUOLabs333 4b2d942024 Convert tabs to spaces 2023-01-11 15:58:07 -05:00
DUOLabs333 456e91426a Formatting 2023-01-08 16:44:44 -05:00
DUOLabs333 4fc1b8ae86 Remove superfluous 'end' 2023-01-08 16:20:23 -05:00
DUOLabs333 32471382c4 Different cosmetic fixes 2023-01-08 16:18:35 -05:00
DUOLabs333 76758baab8 Removed unneccesary String::Builder and removed cues that was just a blank line 2023-01-03 13:10:26 -05:00
DUOLabs333 b49ed65a07 Linting 2023-01-03 10:21:16 -05:00
DUOLabs333 8df1c3bb57 Add support for timedtext captions 2023-01-03 10:17:47 -05:00
Samantaz Fox 09b9b758de Add param 8AEB for getting youtube stories (#3258) 2022-11-21 21:29:49 +01:00
Samantaz Fox cc5c83333f videos: improve fetching of streaming data 2022-11-13 14:40:00 +01:00
Samantaz Fox 2acff70811 videos: handle different JSON structs being present in cache 2022-10-31 20:30:35 +01:00
Samantaz Fox db91d3af66 videos: Fix some bugs 2022-10-31 20:30:35 +01:00
Samantaz Fox 83795c245a videos: Support the new like button's structure 2022-10-31 20:30:30 +01:00
Samantaz Fox ae03ed7bf7 videos: move player/next parsing code to a dedicated file 2022-10-31 20:09:04 +01:00