Commit Graph

45 Commits

Author SHA1 Message Date
Cadence Ember 714f1030fb
Channel path fixes I'm pretty sure I already did?
- use "channels" as default path, not "user"
- cache based on the combination of the path and the id
- fix channel latest
2022-09-12 23:13:37 +12:00
Lomanic ac1aa07108 #29 Extract named channels using dynamic endpoint with second__path param instead of /user/ 2022-08-18 18:48:11 +12:00
Cadence Ember 68cfbb809f
Remove `with requests` when it is unnecessary 2022-01-16 21:51:26 +13:00
Lomanic 0a13ab88cb
Stream responses on /vi and /ggpht endpoints
The chunk_size=None parameter to iter_content lets us consume data as
soon as it arrives
https://docs.python-requests.org/en/master/api/#requests.Response.iter_content
2021-12-16 17:11:34 +13:00
Lomanic 3f57d50893
Retrieve the first 20 comments of a video on /api/v1/comments/:videoid
Got some inspiration from https://github.com/nlitsme/youtube_tool (for the x-youtube-client-X
headers).
This is not a complete reimplementation of Invidious API as continuation is not implemented
(to retrieve more than the first 20 comments and comments replies), likes and replies count
are also missing.
2021-07-02 00:53:05 +12:00
Cadence Ember 18f5ef4c62
Quote json keys correctly 2021-05-14 18:46:46 +12:00
Lomanic 5f47e1a71b
Fix extracting with cookie consent page in EU
Fix #27 use maintained yt-dlp lib instead of youtube-dlc

Because of the following changes in YT, we have to switch to a
maintained library https://github.com/ytdl-org/youtube-dl/issues/28604
While yt-dlp is not fixed today, youtube-dl is fixed in master and as
yt-dlp is quick to merge upstream changes back to their repo, we can
hope the issue will also be fixed there timely.

For requests sent by us directly, we include the cookies.

Ref https://github.com/ytdl-org/youtube-dl/issues/28604
2021-04-03 15:09:58 +13:00
Cadence Ember ccd3513c46
Add robots.txt 2021-04-03 14:00:05 +13:00
Olivier 70c95f4b63
Allow configuring the bind host address and port. 2021-03-12 00:18:07 +13:00
Cadence Ember abd6c8df2f
Rename to NewLeaf 2021-02-27 13:09:31 +13:00
Cadence Ember 6c2b67fb6f
Use lowercase only for headers 2021-01-20 22:59:54 +13:00
Cadence Ember c837828a22
Captions: Error checking 2021-01-20 17:37:39 +13:00
bopol 6709aa30c2
Implement captions
Automatic subtitles are not supported, because youtube_dlc does not
provide them.
2021-01-20 17:36:49 +13:00
Cadence Ember 985f0c1c32
Fix ggpht response call order 2021-01-20 17:36:30 +13:00
Cadence Ember adb5dc93d5
Add ggpht proxy (channel-related images) 2021-01-15 01:07:05 +13:00
Cadence Ember ba88c53857
Fix search; use youtube-dlc 2020-12-03 16:32:31 +13:00
Cadence Ember 097b6bf584
Add Access-Control-Allow-Origin header 2020-10-02 23:40:39 +13:00
Cadence Ember e07848788b
Remove unused declarations in index 2020-08-29 19:19:55 +12:00
Cadence Ember 1cac49b641 Fix name of search suggestions function 2020-08-18 00:44:09 +12:00
Cadence Ember 40759efb03
Refactor everything to separate files 2020-08-14 02:20:11 +12:00
Cadence Ember 19beea8723
Fix channel length_seconds assignment 2020-08-14 00:02:54 +12:00
Cadence Ember 6c49edf3ae
Fix past text conversion for past streams 2020-08-14 00:00:36 +12:00
Cadence Ember b36edbf3ae
Convert publishedText to get published 2020-08-13 20:41:16 +12:00
Cadence Ember 968fbaf2bd
Various live video extraction fixes 2020-08-13 20:25:10 +12:00
Cadence Ember 57fb71b97d
Write a new channel parser, using RSS for /latest 2020-08-13 18:54:51 +12:00
Cadence Ember 7ae5232424
Video extraction fixes 2020-08-13 18:54:23 +12:00
Cadence Ember b58d6aa629
General video extraction key fixes
Broken in a past refactor
2020-08-12 02:12:41 +12:00
Cadence Ember 6091cda0e1
Use proxied thumbnail URLs 2020-08-12 02:06:59 +12:00
Cadence Ember 04c4e4d472
Use host 0.0.0.0 2020-08-12 01:28:16 +12:00
Cadence Ember 984781ea3c
Add videoThumbnails 2020-08-12 01:22:41 +12:00
Cadence Ember 9943847e9d
Add search suggestions cache 2020-08-12 00:40:25 +12:00
Cadence Ember 9ee1f3ce89
Implement new extractor for searches 2020-08-12 00:38:26 +12:00
Cadence Ember 577cdd8a24
Move extract_yt_initial_data to function 2020-08-11 23:37:17 +12:00
Cadence Ember 080b00bc0c
Implement search suggestions 2020-08-10 19:47:11 +12:00
Cadence Ember c9e995473f
Add kwargs to all endpoints 2020-08-09 23:42:15 +12:00
Cadence Ember 0493e5a236
Support true dash manifests 2020-08-09 22:31:54 +12:00
Cadence Ember 18b383386f
Replace audio/m4a with audio/mp4 in DASH manifest 2020-08-09 21:28:10 +12:00
Cadence Ember 761561edec
Use description for descriptionHtml 2020-08-09 21:19:45 +12:00
Cadence Ember 831d67e990
Add DASH manifest endpoint 2020-08-09 20:38:40 +12:00
Cadence Ember cb5a1d22f6
Improve recommendation collector on live videos 2020-08-08 02:51:42 +12:00
Cadence Ember 582a19bd1f
Add thumbnail proxy 2020-08-08 02:51:32 +12:00
Cadence Ember 84dd940ac4
Add searches 2020-08-08 02:51:01 +12:00
Cadence Ember ad018b0a0c
Add recommended videos in a terrible way 2020-08-08 02:00:26 +12:00
Cadence Ember 132f814f3a
Use port 3000 2020-08-08 00:42:56 +12:00
Cadence Ember 829b936951
Working code; channels and basic videos 2020-08-08 00:31:44 +12:00