Commit Graph

70 Commits

Author SHA1 Message Date
southerntofu e495305434 Proper journalctl-friendly logger 2021-09-06 19:03:45 +00:00
southerntofu fe0b83bd0e First attempt at multiple pages of homepage subscriptions 2021-08-04 20:54:23 +02:00
southerntofu 90c054e258 Homepage videos can be filtered by lang (eg. /fr) 2021-08-04 14:03:48 +02:00
southerntofu 1d42b5fef0 Homepage uses new Context API, and unifies failed requests into "failures" context key 2021-08-04 13:08:38 +02:00
southerntofu c7cf3eddaa More consistent naming for accounts templates 2021-08-04 12:11:52 +02:00
southerntofu 00d74023dd More consistent template names for channels 2021-08-04 12:10:33 +02:00
southerntofu 9493f79dcb More consistent naming for search templates 2021-08-04 12:07:12 +02:00
southerntofu bf8d3b9275 Subscriptions use the new MultipleResults API 2021-08-03 20:10:27 +02:00
southerntofu aaa081eea9 Same key for search results whether global or per-instance 2021-08-02 20:06:37 +02:00
southerntofu bcb1018256 Finally fix pagination 2021-08-02 18:03:44 +02:00
southerntofu bb1780fefd Overall don't run useless requests 2021-08-02 00:30:24 +02:00
southerntofu 53703352d7 Introduce Context.insert_future_result() to prevent running requests when one failed previously 2021-08-01 23:53:59 +02:00
southerntofu 574f480a43 Channels routes use new Context API 2021-08-01 21:54:49 +02:00
southerntofu adb95d1c79 Account routes use new Context API, better pagination error handling 2021-08-01 21:29:30 +02:00
southerntofu 1973690e4a Video route uses new Context API 2021-08-01 20:51:47 +02:00
southerntofu 0d481ef6b7 Instance routes use new Context API 2021-08-01 19:51:00 +02:00
southerntofu f088cee3a2 Start new Context API, currently only for search 2021-08-01 19:45:38 +02:00
southerntofu 707f4d36eb Don't forget pagination URL on search page 2021-08-01 18:18:37 +02:00
southerntofu e15fc55c93 Everything now uses the new API.request() wrapper 2021-08-01 17:15:48 +02:00
southerntofu 71a3285c70 Allow newlines in error, still preventing HTML injection 2021-08-01 14:27:36 +02:00
southerntofu 0b837783ff No requests should hard-fail as long as remote Peertube server respects the API 2021-08-01 13:06:55 +02:00
southerntofu 84d01821c0 error.html can render several errors 2021-08-01 12:35:19 +02:00
southerntofu 77a2bd1431 Better error formatting before passing to templates 2021-08-01 12:13:31 +02:00
southerntofu c2034732d2 Fix homepage subscriptions, handle multiple failures gracefully 2021-08-01 11:51:22 +02:00
southerntofu a6ac579832 Everything uses new API, only homepage is broken 2021-08-01 02:12:24 +02:00
southerntofu 009ce82b5a Add deprecation notices, use new API for account info, unify "instance" as instance name in templates 2021-08-01 00:04:18 +02:00
southerntofu 0523e16b02 Accounts use the new API 2021-07-31 23:37:43 +02:00
southerntofu 9561c49e24 Captions use new API 2021-07-31 22:34:47 +02:00
southerntofu 1f3ba92dba Video and comments use new API 2021-07-31 22:24:12 +02:00
southerntofu 0b87b922e2 Move build_channel_or_account_name to utils.py 2021-07-31 17:25:24 +02:00
southerntofu 96505b96cc Update instance routes to new API 2021-07-31 17:22:26 +02:00
southerntofu 77226ac8f2 Reimplement search features with new API, move helpers to utils.py 2021-07-31 16:05:11 +02:00
southerntofu 9e295430df Introduce an error-proof Peertube API, use it for search 2021-07-31 15:35:48 +02:00
southerntofu 59ad38651d First draft for a better API, fails due to lack of context in templates?! 2021-07-31 15:09:21 +02:00
metalune a624de1ec3 Fix check for faulty channel identifier not working 2021-07-31 12:12:35 +02:00
metalune c56dbd0f38 Fix check for faulty account identifier not working 2021-07-31 12:11:22 +02:00
metalune 726faaa28d Also add statuscode 200 check for latest acocunt videos 2021-07-31 12:08:57 +02:00
metalune 7c3d3531e8 Add check for statuscode 200 when fetching frontpage videos 2021-07-31 12:05:28 +02:00
southerntofu 287b2cdbc4 A filter is not a list, but silently casts to an empty list? WTF python? 2021-07-31 11:31:58 +02:00
southerntofu 57dad72d9b Allow comments and multiple account/channel formats in subscriptions 2021-07-31 11:31:50 +02:00
southerntofu 40c1613582 Also load videos on homepage from subscribed channels.list 2021-07-31 11:31:37 +02:00
southerntofu 2b837c887d Cache accepts arbitrary (lambda) condition for refreshing 2021-07-31 11:31:13 +02:00
southerntofu 2eabe5c1eb Display latest videos from account subs in accounts.list on homepage, if any 2021-07-31 11:31:08 +02:00
southerntofu 0763e2a0bf Serve /opensearch.xml to add SimpleerTube as search engine to your webbrowser 2021-07-31 11:23:49 +02:00
southerntofu 404b6e73f6 Also serve /favicon.ico directly as 404 to avoid pointless requests 2021-07-31 11:23:32 +02:00
metalune a01b5547ee Stop printing captions into log 2021-07-30 19:27:53 +02:00
southerntofu 90a7a03b34 Fix subtitles proxying, every URL is unique and beautiful 2021-07-30 19:26:35 +02:00
southerntofu 0b47bda1aa /search supports GET forms, as required by OpenSearch 2021-07-30 19:20:27 +02:00
southerntofu ee6b30b0c0 Propose subtitles in the native video player 2021-07-30 19:18:57 +02:00
southerntofu d51a5089f5 Don't traceback when favicon.ico is requested, display a nice error instead 2021-07-30 19:16:08 +02:00