Commit Graph

112 Commits

Author SHA1 Message Date
syeopite
9fbe3944b0 Channels: Add Courses to channel page and channel API (#5158)
Closes #5144
2025-02-26 14:08:44 -08:00
syeopite
4ea4878d1a User: Batch notifications together 2025-02-26 13:55:25 -08:00
ChunkyProgrammer
eaf47385c5 Add Courses to channel page and channel API 2025-01-25 14:43:39 -05:00
Samantaz Fox
2a19dbb1fe Channels: Use the same structure as in the other ctoken functions
Change explanation, courtesy of iBicha:
The \n is basically a decimal 10, which is 1010 binary. That is a field number
1, and a wire type 2 (length-delimited). Then the $ is a decimal 36, which is
exactly the length of 00000000-0000-0000-0000-000000000000.
So both objects end up being encoded into the same data.
2024-11-08 18:28:58 +01:00
Samantaz Fox
d27a5e7fae Channels: Rename ctoken generator functions as requested 2024-11-08 14:00:35 +01:00
Samantaz Fox
cbc546f032 Channels: Add function to generate the new ctoken objects 2024-11-07 23:08:31 +01:00
Brahim Hadriche
c243d08afb refactor 2024-10-30 13:38:13 -04:00
Brahim Hadriche
ee72809282 [Alternative] Fix for channel live videos 2024-10-26 12:40:31 -04:00
ChunkyProgrammer
1961fc3b11 switch to enum flag instead of adding lots of properties to SearchVideo 2024-09-30 22:02:57 -04:00
Sophie Tauchert
5d0149844f Batch user notifications together 2024-08-26 21:24:27 +02:00
syeopite
ccecc6d318 Fix lint errors introduced in #4146 and #4295 (#4876)
* Ameba: Fix Naming/VariableNames

Introduced in #4295

* Ameba: Fix Naming/PredicateName

Introduced in #4146
2024-08-24 18:11:11 +00:00
ChunkyProgrammer
e31053e812 Use dig to get properties
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2024-08-13 15:09:16 -04:00
ChunkyProgrammer
96ade642fa Channel: Render age restricted channels 2024-08-13 15:09:16 -04:00
Samantaz Fox
5e38ef59da Ameba: Fix Lint/UselessAssign (#4795)
Related to issue 2231
2024-08-11 13:38:29 +02:00
Samantaz Fox
325561e755 Channel: parse subscriber count and channel banner (#4785)
This PR adds support for parsing the newer channel header format
(banner + subscription parsing)

Before this change:
* 0 subscribers
* No banner image

After this change:
* Example with Mr Breast channel: 299M
* Image banner is visible

Closes issue 4783
2024-07-21 17:24:09 +02:00
syeopite
fad0a4f52d Ameba: Fix Lint/UselessAssign 2024-07-17 12:39:40 -07:00
Samantaz Fox
bad92093bf Channels: Add sort options to streams (#4224) 2024-07-10 22:28:22 +02:00
ChunkyProgrammer
911dad6935 Channel: parse subscriber count and channel banner 2024-07-09 14:43:14 -04:00
src-tinkerer
72fe8af850 Merge branch 'master' into stream-sort 2024-03-26 12:19:45 +00:00
ChunkyProgrammer
0aaa3e6a08 API: Parse channel's tags 2024-03-11 13:31:14 -04:00
Samantaz Fox
07fe648a9c Remove anti-captcha (#4277) 2023-12-06 18:29:16 +01:00
Samantaz Fox
37c2f5caed Misc: Use #splat method for macro expressions (#4242) 2023-12-06 18:22:50 +01:00
src-tinkerer
5f2b43d653 Remove unecessary if condition in videos.cr 2023-11-25 00:48:27 +03:30
src-tinkerer
6251d8d43f Rename a variable in videos.cr 2023-11-25 00:46:11 +03:30
src-tinkerer
162b89d942 Fix format in videos.cr 2023-11-23 14:44:37 +03:30
src-tinkerer
0d63ad5a7f Use a single function for fetching channel contents 2023-11-22 14:52:17 +03:30
Samantaz Fox
3a5d408602 Remove leftover functions/specs used by the anti-captcha job 2023-11-20 17:40:31 +01:00
src-tinkerer
63e5d72466 Remove unused function produce_channel_livestream_url 2023-11-20 15:50:59 +03:30
syeopite
ed8b84ed15 Replace more * in macro with #splat 2023-11-08 00:49:37 -08:00
syeopite
ab4c0a1d3c Fetch channel info from home tab instead of about 2023-11-07 23:53:14 -08:00
syeopite
c31908a011 Update params protobuf for channel about tab 2023-11-07 22:19:56 -08:00
src-tinkerer
b0df3774db Add sort options to streams 2023-11-01 21:56:25 +03:30
ChunkyProgrammer
f55b96a53b Always craft Community Post params 2023-09-18 20:10:41 -04:00
ChunkyProgrammer
734f1b7764 Simplify resolveUrl api call
Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
2023-09-18 20:10:41 -04:00
ChunkyProgrammer
e3c365f3d6 Add support for post page 2023-09-18 20:10:41 -04:00
Samantaz Fox
d956b1826e Community: Parse quiz attachments (#3978) 2023-07-20 08:16:10 +02:00
Samantaz Fox
c1a69e4a4a Channels: Use innertube to fetch the community tab 2023-07-18 00:29:25 +02:00
ChunkyProgrammer
70145cba31 Community: Parse Quiz attachments 2023-07-15 06:41:03 -07:00
ChunkyProgrammer
f2fa3da9d2 Add support for releases and podcasts tabs 2023-07-14 16:15:20 -07:00
Samantaz Fox
16b8b6034f Channels: Use new ctoken value for "sort by oldest" 2023-06-21 21:41:53 +02:00
Samantaz Fox
e10f6b6626 Comments: Move 'template_youtube' function to own file + module 2023-05-25 22:53:53 +02:00
Samantaz Fox
10fee9da61 Community: Fix live video + parse playlist attachments (#3767) 2023-05-08 15:42:06 +02:00
Samantaz Fox
c385a944e6 Subscriptions: Fix casing of XML tag names 2023-05-08 13:10:18 +02:00
Samantaz Fox
ce1fb8d08c Use XML.parse instead of XML.parse_html
Due to recent changes to libxml2 (between 2.9.14 and 2.10.4,
See https://gitlab.gnome.org/GNOME/libxml2/-/issues/508), the
HTML parser doesn't take into account the namespaces (xmlns).

Because HTML shouldn't contain namespaces anyway, there is no
reason for use to keep using it. But switching to the XML
parser means that we have to pass the namespaces to every
single 'xpath_node(s)' method for it to be able to properly
navigate the XML structure.
2023-05-08 01:05:48 +02:00
ChunkyProgrammer
2d5145614b Fix unknown type attachment
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2023-05-02 21:10:57 -04:00
chunky programmer
f298e225a1 fix live video attachments, parse playlists 2023-04-30 18:55:02 -04:00
chunky programmer
5517a4eadb fix fetching community continuations 2023-04-22 09:13:04 -04:00
ChunkyProgrammer
dc929be198 Merge branch 'master' into fix-shorts 2023-04-02 16:42:46 -04:00
Emilien Devos
e0600f4553 quick fix for channel videos page 2023-03-31 22:16:01 +02:00
ChunkyProgrammer
5767344746 Fix parsing shorts on channel page 2023-03-22 09:56:22 -04:00