Samantaz Fox
42d9fd9c88
Rewrite response headers
...
Fixes #2018 and #2153
2021-06-17 19:53:39 +02:00
Samantaz Fox
3de92b337d
Use if/else instead of return in search route
2021-06-14 17:27:47 +02:00
Samantaz Fox
a2f5342a83
Multiple search fixes
...
* Remove percent-encoding of the search query when calling youtube API, as it
breaks UTF-8
* Empty search redirects to /search, not /
* Show the fullscreen search "home page" (from #1977 ) at /search
* Allow 'region=' parameter to be passed to /search
* Other minor fixes
2021-06-13 21:52:36 +02:00
Samantaz Fox
9407b91060
Fix typo in hu-HU translation
...
Change requested by the original translator, see https://github.com/iv-org/invidious/pull/2141#pullrequestreview-679868487
2021-06-10 17:22:20 +02:00
Samantaz Fox
b7fe212a18
Fix youtube API function's documentation
2021-05-24 15:25:00 +02:00
Samantaz Fox
cbabf0ae7e
Craft the "context" data in a dedicated function
...
As the amount of API endpoint function grow, this will
prevent ugly code copy/pasta
2021-05-24 13:44:49 +02:00
Samantaz Fox
344ccf3b03
Use '/youtubei/v1/browse' endpoint for playlists
2021-05-24 13:19:28 +02:00
Samantaz Fox
26a7e1b049
Use '/youtubei/v1/search' endpoint for search queries
2021-05-24 13:19:28 +02:00
Samantaz Fox
43bd331e48
Multiple youtube_api.cr helper fixes
...
Add documentation
Bump web client version string
Add charset=UTF-8 to the 'content-type' header
Parse JSON and return it as a Hash
Handle API error messages
2021-05-24 13:19:28 +02:00
Samantaz Fox
2c47ef31c0
Add newline at end of file for 'el' and 'zh-TW'
2021-04-21 16:22:20 +02:00
Samantaz Fox
d69b9f9cf8
Minor fixes in locales after synchronization
2021-04-21 16:11:39 +02:00
Samantaz Fox
a52e9be3e8
Add missing fields to locales (part 6)
...
Updated da.json (Danish)
Updated de.json (German)
Updated eo.json (Esperando)
Updated es.json (Spanigh)
Updated nb-NO.json (Norvegian)
Updated nl.json (Dutch)
Updated pl.json (Polish)
Updated pt-BR.json (Portuguese, Brasil)
Updated ro.json (Romanian)
Updated ru.json (Russian)
Updated sv-SE.json (Swedish)
Updated uk.json (Ukrainian)
Updated zh-CN.json (Chinese, China)
2021-04-21 16:11:00 +02:00
Samantaz Fox
21f9141500
Add missing fields to locales (part 5)
...
* Also includes minor fixes when I could (french, italian, icelandic)
* Added a new line at the end of en-US translation.
Updated ar.json (Arabic)
Updated el.json (Greek)
Updated fa.json (Persian)
Updated fr.json (French)
Updated is.json (Icelandic)
Updated it.json (Italian)
Updated tr.json (Turkish)
Updated zh-TW.json (Chinese, Taiwan)
2021-04-21 16:11:00 +02:00
Samantaz Fox
0e000e44aa
Make the linter happy, again
2021-04-21 16:10:25 +02:00
Samantaz Fox
ad9fe3be09
Add missing fields to locales (part 4)
...
Updated el.json (Greek)
Updated fa.json (Persian)
Updated fi.json (Finnish)
Updated it.json (Italian)
Updated pt-PT.json (Portuguese, Portugal)
Updated zh-TW.json (Chinese, Taiwan)
2021-04-21 16:10:25 +02:00
Samantaz Fox
3829bdf198
Add missing fields to locales (part 3)
...
Updated el.json (Greek)
Updated fa.json (Persian)
Updated fi.json (Finnish)
Updated it.json (Italian)
Updated pt-PT.json (Portuguese, Portugal)
Updated sv-SE.json (Swedish)
Updated tr.json (Turkish)
Updated uk.json (Ukrainian)
Updated zh-CN.json (Chinese, China)
Updated zh-TW.json (Chinese, Taiwan)
2021-04-21 16:10:25 +02:00
Samantaz Fox
6933a049b1
Add missing fields to locales (part 2)
...
Updated ja.json (Japanese)
Updated nb-NO.json (Norwegian Bokmål)
Updated nl.json (Dutch)
Updated pl.json (Polish)
Updated pt-BR.json (Portuguese, Brazil)
Updated ro.json (Romanian)
Updated ru.json (Russian)
2021-04-21 16:10:25 +02:00
Samantaz Fox
e3544bf4bc
Add missing fields to locales (part 1)
...
Updated ar.json (Arabic)
Updated de.json (German)
Updated eo.json (Esperanto)
Updated es.json (Spanish)
Updated fr.json (French)
Updated hr.json (Hungarian)
Updated id.json (Indonesian)
Updated is.json (Icelandic)
2021-04-21 16:10:25 +02:00
Samantaz Fox
d5d0cb6a0c
Add spec (test case) for locale files consistency
2021-04-21 16:10:25 +02:00
Samantaz Fox
cac5f20a28
Move locales definition to i18n.cr
2021-04-21 16:10:25 +02:00
Samantaz Fox
93198438b8
Fix for issue #1989
...
Fixes #1989
2021-04-07 15:13:41 +02:00
Samantaz Fox
62e46b7a36
Fix missing last page in playlists
2021-04-01 18:46:49 +00:00
Samantaz Fox
87c25f83a4
Fix API giving ytimg instead of instance URLs for thumbnails
2021-04-01 02:36:35 +02:00
Samantaz Fox
23e5b6ba72
Remove extra 'next page' button at then end of a playlist
2021-03-23 02:25:47 +00:00
Samantaz Fox
3e88b72316
Remove useless parameter 'youtubei_browse' in get_channel_videos_response()
2021-03-22 18:53:17 +01:00
Samantaz Fox
aaefa38602
Make the linter happy
2021-03-21 16:05:50 +01:00
Samantaz Fox
de6db4141f
Fix produce_playlist_continuation checks in spec/helpers_spec.cr
2021-03-21 15:57:41 +01:00
Samantaz Fox
a61735e29a
Print detailed error message when playlist can't be retrieved
2021-03-21 15:47:51 +01:00
Samantaz Fox
9bdfb0a32b
Playlist: Support edge case where 'content' in JSON may be erroneously plural
2021-03-21 15:47:44 +01:00
Samantaz Fox
94ecd29e35
Make use of youtube API helper in src/invidious/channels.cr
2021-03-21 15:47:26 +01:00
Samantaz Fox
980f5f1299
Playlist: Fix video continuation (100+ videos playlists)
2021-03-21 15:47:03 +01:00
Samantaz Fox
f99d62a2bc
Create youtube API wrapper fo /youtubei/v1/browse
2021-03-21 15:44:18 +01:00
Samantaz Fox
89be1975ea
Playlist: Fix continuation token generation
2021-03-21 15:43:49 +01:00
Samantaz Fox
fec82df451
Fix fetching of large playlist
2021-03-21 00:15:39 +01:00
Samantaz Fox
3de39698dd
Make the build tests happy: remove blank lines
2021-03-11 03:46:17 +00:00
Samantaz Fox
b86476410f
playlists: Fix description being simple text (issue #1767 )
2021-03-11 00:44:35 +00:00
Samantaz Fox
57ea45ff51
content_to_comment_html: Fix /watch links + make newline replace universal
2021-03-11 00:42:13 +00:00