Commit Graph
67 Commits
Author SHA1 Message Date
syeopite 6f19a3a21e Delete lock.yml 2021-10-26 15:31:13 +02:00
syeopiteandSamantaz Fox 88ad7c8d8d Update src/invidious/routes/playlists.cr
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2021-10-25 01:14:09 -07:00
syeopiteandSamantaz Fox 1adcac175e Update src/invidious/routes/channels.cr
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2021-10-25 01:14:09 -07:00
syeopite 129779a757 Merge pull request #2433 from iv-org/increase-channel-refresh-delay
Decrease channel refresh frequency (1 min -> 1 h)
2021-10-20 19:12:35 +00:00
syeopite c8a985cc77 Merge pull request #2477 from SamantazFox/move-prefs-and-config
Move user preferences and server config
2021-10-18 17:06:07 +00:00
syeopite db7e7aae46 Merge pull request #2478 from SamantazFox/code-cleanup
Code cleanup
2021-10-18 16:52:37 +00:00
syeopite 5f65e92500 Merge pull request #2508 from syeopite/lazy-load-images
Lazy load (some) images
2021-10-17 18:25:59 +00:00
syeopite a65b9b2b53 Merge pull request #2406 from TechnicalSuwako/fix-non-js-player
fix non-JS player #2405
2021-10-17 18:22:08 +00:00
syeopite 21b96a3159 Merge pull request #2506 from syeopite/handle-empty-playlist-tabs
Handle YT tabs without content
2021-10-15 22:13:25 +00:00
syeopite 888c7e2c29 Merge pull request #2491 from syeopite/extract-image-routes
Extract image routes
2021-10-15 22:13:10 +00:00
syeopite d6eaeef8a6 Add Crystal 1.2.0 to CI and bump install-crystal (#2517) 2021-10-15 16:01:03 +02:00
syeopite 17e6093abb Merge pull request #2497 from Yetangitu/videorendererparser_parse_missing_title
Handle missing title fields in VideoRendererParser.parse (fixes #2495)
2021-10-12 19:04:51 +00:00
syeopite b10f37bea9 Use kemal in production mode (#2455) 2021-10-11 14:42:22 +02:00
syeopite 21e29411af Fix extractor bugs (#2454)
* Add debug/trace logging to extract_items
* Handle invalid timestamps for livestreams extraction
* Make use of author_fallback in playlist extractor
* Don't use extract_text for video length extraction

The extract_text function attempts to extract from both the simpleText and
the runs route. This is typically what we'd want for text extraction as
it could appear in both locations. However, while this still holds true,
the thumbnailOverlayTimeStatusRenderer writes a numerical length (when
present on the video) to the simpleText route and uses runs for a
text overlay like "LIVE" or "PREMIERE".

Therefore, when a video has a text overlay instead of a numerical one,
Invidious still passes it onto decode_length_seconds, which obviously
raises since it cannot be converted into integers.

In the future, if more routes requires one text route over the other, we
should go ahead and add an argument to extract_text itself. Though for
now, this is sufficient.

* Handle unsupported "special" categories
2021-10-07 23:39:21 +02:00
syeopite fd29cb9023 Add missing filter ui locales (#1912) 2021-10-05 14:46:19 +00:00
syeopite 347c189f3f Merge pull request #1678 from Rjevski/idempotent-database-migrations
Make DB migrations idempotent.
2021-10-03 18:53:35 +00:00
syeopite 81b12b8001 Add support to make invidious API-only via flag (#2363) 2021-10-02 20:04:02 +00:00
syeopite 3e781b7d13 Merge pull request #2443 from iv-org/syeopite-patch-1
Use make_client when querying instance api
2021-10-02 20:00:37 +00:00
syeopite 9c44e41a4c Merge pull request #2228 from syeopite/extract-items-overhaul
Overhaul extract_item(s) functions and add infrastructure for parsing YouTube categories
2021-10-02 20:00:16 +00:00
syeopite 402bb01151 Update container-release.yml 2021-10-02 16:10:23 +00:00
syeopite 82a1d9dffa Install Crystal in container-release for linter 2021-10-02 16:10:07 +00:00
syeopite 570541ba49 Run linter in container-release workflow 2021-10-02 16:00:43 +00:00
syeopite 77131cff91 Use make_client when querying instance api 2021-10-02 15:16:07 +00:00
syeopiteandSamantaz Fox 6df85718e6 Apply suggestions from code review
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2021-09-28 15:23:36 +00:00
syeopite 82e6f6e095 Create CODEOWNERS (#2417)
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

Allows automatically assigning PRs to teams/users when it modifies a 
specific section of the repo that they "own".
2021-09-28 06:14:42 +00:00
syeopite b20f72b963 Use default timeout (5 seconds) for YT pool (#2430) 2021-09-26 23:03:45 +02:00
syeopite 6d68fbc31d Fix livestream regex regression caused by #2271
Closes #2352

Special thanks to @WaywardHeart for finding this issue!
2021-09-25 02:47:52 +00:00
syeopite 86ca568d6d Remove login type button from frontend (#2423) 2021-09-23 08:44:26 +02:00
syeopite 92b04a30f3 Prevent indexing of Invidious instances (#2420)
Closes #2418
2021-09-22 01:29:51 +02:00
syeopite 87f46a7532 Unregister captcha job (#2390) 2021-09-19 10:30:19 +00:00
syeopite 5054510d15 Prevent VR from being initialized in listen mode (#2396) 2021-09-15 01:37:23 +02:00
syeopite 50c8afb525 Handle equirectangular projections for VR (#2379) 2021-09-10 07:42:39 +00:00
syeopite a539de4f97 Bump dependencies (#2378)
* Upgrade to Kemal v1.1.0

* Bump postgres driver
2021-09-10 07:42:15 +00:00
syeopite a4ff0b62ce Skip container release for insignficant changes (#2367) 2021-09-01 11:28:20 +00:00
syeopite dd141daefd Make building in release mode optional (#2368) 2021-09-01 13:24:17 +02:00
syeopite a1001ada47 Properly transform youtu.be links to be /watch routes in comments and descriptions (#2365) 2021-09-01 12:59:47 +02:00
syeopite 4fcd0964cd Extract API routes (#2271)
* Extract API routes from invidious.cr
* Remove deprecated APIs
  - insights
  - top feed
2021-08-30 18:27:47 +02:00
syeopite 5005212bec Extract feed routes (#2269)
* Extract feed routes from invidious.cr
* Removes the deprecated route for /feed/top
* Deprecate /view_all_playlist & use /feed/playlists
* Move feed views into their own directory

* Add haltf method to halt current route context
* Change status_code + return blocks to use haltf

* Set appropriate response headers for RSS routes
2021-08-30 16:58:24 +02:00
syeopite fceb8093f1 Use athena-negotiation to detect language through Accept-Language header (#2324)
Detect language through Accept-Language header
2021-08-24 19:59:27 +00:00
syeopite 1d4dd4484d Add cache(?) to arm docker build (#2337)
* Add cache(?) to arm docker build

* Update ci.yml
2021-08-21 06:32:28 -07:00
syeopite 25362f16a0 Readd paid attribute for videos (#2330) 2021-08-15 10:38:30 +02:00
syeopite cea38de4ad Check for existance of "adaptiveFormats" in videos
Combined from commits:
- Check for existance of "adaptiveFormats" in videos
- Remove usage of ternary conditional
2021-08-12 19:26:50 +00:00
syeopite 2fdb2c7c9a Exempt "blocked" PRs from being marked as stale (#2321) 2021-08-12 08:42:09 -07:00
syeopite 7afa027b95 Switch routing logic to use modules (#2298)
* Switch routing logic to use modules
* Add more macros for adding routes of different HTTP methods
2021-08-11 12:36:25 +02:00
syeopite 637a5cc14f Add CI for testing arm64 docker (#2315)
* Add CI for testing build of docker-arm64

* Add specs check to dockerfiles
2021-08-09 22:34:52 -07:00
syeopite 81e77693b2 Merge pull request #2294 from weblate/weblate-invidious-translations
Translations update from Weblate
2021-08-09 03:28:41 -07:00
syeopite 7ddab5b8cd Don't run CI on locale only changes (#2306) 2021-08-06 11:08:44 +02:00
syeopite a26adb162c Bump Crystal 1.1.0 to 1.1.1 2021-08-06 00:40:54 -07:00
syeopite 1321c90920 Extract channel routes (#2227)
* Extract primary channel routes from invidious.cr

Also removes timedtext_video stub since all it does is redirect to the
homepage. However, Invidious's 404 handler already does this.

--
As the template for the channel about page doesn't exist yet, the
behavior for the /channel/:ucid/about endpoint has been changed to be
the same as what's currently present on Invidious

(cherry picked from commit 8fad19d8057d7d22e3de27ebbc88a9978c1df27b)

* Manually extract brand_redirect from 1b569bbc99207cae7c20aa285f42477ae361dd30

This commit manually extracts the brand_redirect function from the
commit mentioned.

However, the redirect to the  `.../about` endpoint is removed due to the
fact that it doesn't exist yet.

This commit is also mainly just a bridge for the next few cherry picks from
\#2215

* Update brand_redirect to use youtubei resolve_url

(cherry picked from commit 53335fe7cfdfac392365b7cac447bc7cc6478134)

* Add additional channel endpoints to brand_redirect

(cherry picked from commit 8fc6f3add637dabb09b2034f4d82fc3d039ba15c)

* Add separate handler for /profile endpoint

* Add /channel/:ucid/home route

* Document all channel brand_urls
2021-08-03 23:46:15 +02:00
syeopite e9add69e26 Fix #resolve_url by adding ClientConfig argument
The private `_post_json` method of the YoutubeAPI requires a ClientConfig
as the third parameter. This was passed in all Youtube API methods except the
`#resolve_url` method.
2021-08-03 00:48:58 -07:00
syeopite 578bbcd181 Fix raw parameter for videos in listen mode (#2270) 2021-07-28 16:28:09 -07:00
syeopite 095c894548 Merge pull request #2201 from pinchese/patch-1
futureproof comment avatars
2021-07-16 21:43:37 -07:00
syeopite 3e5c353298 Merge pull request #2205 from syeopite/fix-age-restricted-videos
Partial (and temporary) fix for age restricted videos
2021-07-14 10:11:03 -07:00
syeopite ae61662f61 Debloat channels.cr into multiple files (#2225)
Cherry picked from ui overhaul branch with a few modifications:
  - channel folder is renamed to channels
  - parsing for channel home and featured channels are removed due to
    lack of infrastructure from other commits

(cherry picked from commit 44d18b8e147b47ad06a54cc6fd08423d9f39074d)
2021-07-14 17:46:12 +02:00
syeopite 75d04a92c8 Merge pull request #1043 from makos/display-username
Display username of currently logged in user
2021-06-19 05:28:30 -07:00
syeopite 09f7e38eed Disable automatic instance redirection by default 2021-06-19 04:17:49 -07:00
syeopite f4c0ee49a7 Merge pull request #2158 from 808-cowbell/increase-hr-margins
Add 10px margin to top and bottom of hr element
2021-06-18 12:45:22 -07:00
syeopite 2fc0a6df93 Prevent CI run when src or wrkflows aren't chngd 2021-06-18 11:53:28 -07:00
syeopite 0a9c804940 Reduce PR stale length
PRs should be active. Anything that hasn't had activity in more than 45 days should be considered abandoned.
2021-06-18 11:10:11 -07:00
syeopite 31466785ad Merge pull request #2157 from MrPaulBlack/master
Disallow /watch path for bots again
2021-06-14 01:47:23 -07:00
syeopite 5c0d4c4408 Merge pull request #2144 from iv-org/silence-thread-locker
Silence thread locker
2021-06-11 01:39:33 -07:00
syeopite 5f8e47a14d Temporarily remove thread locker comments 2021-06-11 01:38:54 -07:00
syeopite a6e38e2ad2 Merge pull request #2115 from syeopite/crystal-1.0.0-2
Upgrade to crystal 1.0.0
2021-06-10 05:03:37 -07:00
syeopite 7f272f1293 Allow issue/pull locker to be manually dispatched 2021-06-08 12:13:58 -07:00
syeopite e67f50f157 Merge pull request #2129 from syeopite/lock-stale-closed-issues
Add workflow to lock inactive closed issues
2021-06-08 12:07:33 -07:00
syeopite d82734641b Merge pull request #1985 from SamantazFox/improve-youtube-api-helper
Improve youtube api calls
2021-06-07 13:59:26 -07:00
syeopite 49ed485145 Merge pull request #2128 from unixfox/patch-1
fix typo in the template file
2021-06-04 21:52:26 -07:00