]> git.gir.st - subscriptionfeed.git/log
subscriptionfeed.git
3 years agoadd functional overview (preliminary)
girst [Mon, 22 Jun 2020 19:46:41 +0000 (21:46 +0200)]
add functional overview (preliminary)

3 years agoimplement websub hmac verification (not yet enforced)
girst [Fri, 19 Jun 2020 16:50:58 +0000 (18:50 +0200)]
implement websub hmac verification (not yet enforced)

only enforcing this once all current websub-subscriptions have expired

3 years agofix requests debugging if not within flask
girst [Fri, 19 Jun 2020 15:01:37 +0000 (17:01 +0200)]
fix requests debugging if not within flask

3 years agofixup 72b1f8
girst [Fri, 19 Jun 2020 02:38:39 +0000 (04:38 +0200)]
fixup 72b1f8

3 years agofix exception and bad syntax
girst [Wed, 17 Jun 2020 14:32:18 +0000 (16:32 +0200)]
fix exception and bad syntax

3 years agoallow pinning and hiding reddit posts
girst [Tue, 16 Jun 2020 16:17:46 +0000 (18:17 +0200)]
allow pinning and hiding reddit posts

3 years agodon't assume video_id == post_id
girst [Tue, 16 Jun 2020 16:16:58 +0000 (18:16 +0200)]
don't assume video_id == post_id

3 years agosplit fetch_reddit into fetching and parsing blocks
girst [Tue, 16 Jun 2020 14:22:14 +0000 (16:22 +0200)]
split fetch_reddit into fetching and parsing blocks

3 years agotoken auth: don't 500 if user doesn't exist
girst [Tue, 16 Jun 2020 14:17:56 +0000 (16:17 +0200)]
token auth: don't 500 if user doesn't exist

3 years agoload initial channel page ourselves
girst [Tue, 16 Jun 2020 11:18:05 +0000 (13:18 +0200)]
load initial channel page ourselves

*way* faster

3 years agosometime playabilityStatus will have a messages array instead of a reason
girst [Tue, 16 Jun 2020 11:08:53 +0000 (13:08 +0200)]
sometime playabilityStatus will have a messages array instead of a reason

3 years agoimplement shadowing invidious routes
girst [Mon, 15 Jun 2020 19:14:23 +0000 (21:14 +0200)]
implement shadowing invidious routes

3 years agoimplement fallback_route()
girst [Mon, 15 Jun 2020 18:31:58 +0000 (20:31 +0200)]
implement fallback_route()

allows us to override minimalistic youtube routes with better invidious
routes and fall back to the minimalistic ones, if our invidious instance
is blocked.

3 years agodon't double escape reddit submission titles
girst [Mon, 15 Jun 2020 16:53:33 +0000 (18:53 +0200)]
don't double escape reddit submission titles

3 years agodocument dynamic blueprint loading
girst [Mon, 15 Jun 2020 16:46:32 +0000 (18:46 +0200)]
document dynamic blueprint loading

3 years agomake token login persistent
girst [Mon, 15 Jun 2020 16:44:20 +0000 (18:44 +0200)]
make token login persistent

when a user logs in using the ?token= method, we save their session in
a cookie, same as with regular login.

3 years agomove subscription cronjobs into common/utils
girst [Mon, 15 Jun 2020 16:18:37 +0000 (18:18 +0200)]
move subscription cronjobs into common/utils

in preparation for an eventually implemented job queue approach

3 years agoraise error if config file not found, some comments
girst [Mon, 15 Jun 2020 15:36:18 +0000 (17:36 +0200)]
raise error if config file not found, some comments

3 years agolog api responses on error
girst [Mon, 15 Jun 2020 14:15:02 +0000 (16:15 +0200)]
log api responses on error

3 years agouse "prepared" query strings with requests
girst [Sun, 14 Jun 2020 16:59:43 +0000 (18:59 +0200)]
use "prepared" query strings with requests

3 years agoobject-fit:cover for video poster
girst [Sun, 14 Jun 2020 16:15:53 +0000 (18:15 +0200)]
object-fit:cover for video poster

note that this only works because the video element has the exact
proportions of the video file.

3 years ago/search using invidious api (very ugly)
girst [Sun, 14 Jun 2020 14:39:29 +0000 (16:39 +0200)]
/search using invidious api (very ugly)

3 years agostub out tombstones/deleted-entry support
girst [Sun, 14 Jun 2020 14:38:16 +0000 (16:38 +0200)]
stub out tombstones/deleted-entry support

3 years agouse binary strings for cronjob error logging and other small fixes
girst [Sun, 14 Jun 2020 14:31:35 +0000 (16:31 +0200)]
use binary strings for cronjob error logging and other small fixes

3 years agomore TODOs
girst [Sun, 14 Jun 2020 14:29:31 +0000 (16:29 +0200)]
more TODOs

3 years agofix metadata on completely unavailable videos
girst [Sun, 14 Jun 2020 13:50:21 +0000 (15:50 +0200)]
fix metadata on completely unavailable videos

e.g. J2-6srITpKE: has metadata, but no 'availableCountries' key

3 years agoadd search bar (no impl yet)
girst [Sat, 13 Jun 2020 20:41:58 +0000 (22:41 +0200)]
add search bar (no impl yet)

3 years agofix currently-running livestream detection
girst [Sat, 13 Jun 2020 20:40:54 +0000 (22:40 +0200)]
fix currently-running livestream detection

3 years agoharmonize layout; headerbar macro
girst [Sat, 13 Jun 2020 20:07:22 +0000 (22:07 +0200)]
harmonize layout; headerbar macro

3 years agorework fetch_reddit() params, support non-hot-ordering (undocumented)
girst [Fri, 12 Jun 2020 19:21:59 +0000 (21:21 +0200)]
rework fetch_reddit() params, support non-hot-ordering (undocumented)

3 years agofix livestream detection
girst [Fri, 12 Jun 2020 18:36:55 +0000 (20:36 +0200)]
fix livestream detection

isPostLiveDvr is not present if False.

3 years agodon't hardcode welcome message for anonymous users
girst [Fri, 12 Jun 2020 14:10:29 +0000 (16:10 +0200)]
don't hardcode welcome message for anonymous users

3 years agoreddit footer: show all subscribed subreddits all the time
girst [Fri, 12 Jun 2020 13:57:59 +0000 (15:57 +0200)]
reddit footer: show all subscribed subreddits all the time

3 years agofix webhook error loggin m(
girst [Fri, 12 Jun 2020 11:18:39 +0000 (13:18 +0200)]
fix webhook error loggin m(

one. job.

3 years agotweak reddit template
girst [Fri, 12 Jun 2020 10:41:53 +0000 (12:41 +0200)]
tweak reddit template

3 years agotemporary fix for utils/ config import
girst [Fri, 12 Jun 2020 10:41:16 +0000 (12:41 +0200)]
temporary fix for utils/ config import

3 years agofix webhook config import
girst [Fri, 12 Jun 2020 10:40:35 +0000 (12:40 +0200)]
fix webhook config import

3 years agoremove /r/ endpoints from youtube blueprint
girst [Fri, 12 Jun 2020 10:39:29 +0000 (12:39 +0200)]
remove /r/ endpoints from youtube blueprint

those shadowed the actual reddit ones

3 years agoremove superfluous imports
girst [Thu, 11 Jun 2020 18:30:18 +0000 (20:30 +0200)]
remove superfluous imports

3 years agode-hardcode subreddit footer
girst [Thu, 11 Jun 2020 18:28:07 +0000 (20:28 +0200)]
de-hardcode subreddit footer

3 years agoprovide guest user default subscriptions
girst [Thu, 11 Jun 2020 17:49:23 +0000 (19:49 +0200)]
provide guest user default subscriptions

3 years agomake __main__.py less fragile
girst [Thu, 11 Jun 2020 17:45:18 +0000 (19:45 +0200)]
make __main__.py less fragile

3 years agomove youtube templates into blueprint
girst [Thu, 11 Jun 2020 17:43:02 +0000 (19:43 +0200)]
move youtube templates into blueprint

3 years agoadd reddit database tables
girst [Thu, 11 Jun 2020 17:49:57 +0000 (19:49 +0200)]
add reddit database tables

3 years agofinish reddit blueprint
girst [Thu, 11 Jun 2020 17:32:58 +0000 (19:32 +0200)]
finish reddit blueprint

3 years agomove reddit to seperate blueprint
girst [Thu, 11 Jun 2020 16:56:22 +0000 (18:56 +0200)]
move reddit to seperate blueprint

needs cleanup

3 years agoname main app 'app' again
girst [Thu, 11 Jun 2020 12:39:35 +0000 (14:39 +0200)]
name main app 'app' again

stupid import! hardly ever seen such a useless error message

3 years agosplit app into blueprints - part 3: login/user module
girst [Thu, 11 Jun 2020 12:18:57 +0000 (14:18 +0200)]
split app into blueprints - part 3: login/user module

3 years agosplit app into blueprints - part 2: __main__
girst [Thu, 11 Jun 2020 12:18:11 +0000 (14:18 +0200)]
split app into blueprints - part 2: __main__

3 years agosplit app into blueprints - part 1
girst [Thu, 11 Jun 2020 11:58:53 +0000 (13:58 +0200)]
split app into blueprints - part 1

moves everything into the youtube blueprint, except csrf and user
handling. those two will go into a common blueprint later.

3 years agomore TODOs
girst [Thu, 11 Jun 2020 11:55:41 +0000 (13:55 +0200)]
more TODOs

3 years agorefresh-cipher: enforce 1-row-maximum
girst [Thu, 11 Jun 2020 11:01:24 +0000 (13:01 +0200)]
refresh-cipher: enforce 1-row-maximum

3 years agofix sponsorblock off-by-two
girst [Thu, 11 Jun 2020 10:41:33 +0000 (12:41 +0200)]
fix sponsorblock off-by-two

m(

3 years agoimprove card handling, better is-livestream, better aspect-detection
girst [Thu, 11 Jun 2020 10:40:52 +0000 (12:40 +0200)]
improve card handling, better is-livestream, better aspect-detection

3 years agoupdate INSTALL somewhat
girst [Tue, 9 Jun 2020 18:14:28 +0000 (20:14 +0200)]
update INSTALL somewhat

3 years agouse semantic tag for main content
girst [Tue, 9 Jun 2020 17:59:55 +0000 (19:59 +0200)]
use semantic tag for main content

also unifies centering to use css. this makes cards left-aligned within
the container, but that's fine with me.

3 years agouse tokens to identify users
girst [Tue, 9 Jun 2020 17:56:06 +0000 (19:56 +0200)]
use tokens to identify users

in the future, tokens will be exirable by the user.

3 years agorewrite TODOs
girst [Tue, 9 Jun 2020 17:21:40 +0000 (19:21 +0200)]
rewrite TODOs

3 years agoMerge branch 'flask_login'
girst [Tue, 9 Jun 2020 16:43:26 +0000 (18:43 +0200)]
Merge branch 'flask_login'

3 years agoadd helper utility for generating password hashes
girst [Tue, 9 Jun 2020 16:40:28 +0000 (18:40 +0200)]
add helper utility for generating password hashes

3 years agoschema for users table
girst [Tue, 9 Jun 2020 16:39:19 +0000 (18:39 +0200)]
schema for users table

3 years agomove login form to a template; stub out registration
girst [Tue, 9 Jun 2020 16:07:53 +0000 (18:07 +0200)]
move login form to a template; stub out registration

3 years agodecorate all login-required routes, or allow guest user
girst [Tue, 9 Jun 2020 15:56:31 +0000 (17:56 +0200)]
decorate all login-required routes, or allow guest user

3 years agouse same flash message format as flask-login
girst [Tue, 9 Jun 2020 15:24:14 +0000 (17:24 +0200)]
use same flash message format as flask-login

or decoding will fail

3 years agospeed up pull-subscriptions.py
girst [Tue, 9 Jun 2020 14:55:45 +0000 (16:55 +0200)]
speed up pull-subscriptions.py

3 years agomove /subscription_manager to /manage/subscriptions, ...
girst [Tue, 9 Jun 2020 14:46:00 +0000 (16:46 +0200)]
move /subscription_manager to /manage/subscriptions, ...

... also some minor fixes:
- unsubscribing
- match channel ids (for subscribing) at any position (so one can paste
  a full URL)

3 years agoprevent hanging/looping with sponsorblock
girst [Sun, 7 Jun 2020 12:24:55 +0000 (14:24 +0200)]
prevent hanging/looping with sponsorblock

given a sponsor time of e.g. [0,10.01], we might seek to 10.00 (seeking
isn't frame-perfect), which is still within the block-time, causing us
to loop between 10.00 and 10.01. 1sec is more than enough slack to avoid
this.

3 years agomove flask secret_key to config.ini
girst [Fri, 5 Jun 2020 18:28:44 +0000 (20:28 +0200)]
move flask secret_key to config.ini

3 years agoinitial version of user authentication using flask-login
girst [Fri, 5 Jun 2020 19:05:20 +0000 (21:05 +0200)]
initial version of user authentication using flask-login

3 years agomove flask secret_key to config.ini
girst [Fri, 5 Jun 2020 18:28:44 +0000 (20:28 +0200)]
move flask secret_key to config.ini

3 years agofix cipher refresh script m(
girst [Fri, 5 Jun 2020 17:55:51 +0000 (19:55 +0200)]
fix cipher refresh script m(

3 years agodisable subtitles, as they raise CORS errors
girst [Fri, 5 Jun 2020 14:15:53 +0000 (16:15 +0200)]
disable subtitles, as they raise CORS errors

subtitles aren't served with A-C-A-O header, so they fail. will have to
proxy :(

3 years agosponsorblock (first draft), links to invidious/youtube/show=*
girst [Fri, 5 Jun 2020 13:30:21 +0000 (15:30 +0200)]
sponsorblock (first draft), links to invidious/youtube/show=*

sponsorblock not active by default, as it sends youtube ids to 3rd
party. requires cleanup, de-inlining, configurability.

3 years agobetter error messages on EXHAUSTED, fix invidious_url, minor cleanups
girst [Fri, 5 Jun 2020 11:40:25 +0000 (13:40 +0200)]
better error messages on EXHAUSTED, fix invidious_url, minor cleanups

3 years agodeduplicate info and endcards
girst [Fri, 5 Jun 2020 11:38:54 +0000 (13:38 +0200)]
deduplicate info and endcards

3 years agoswitch to threaded workers, so in-memory-caching works
girst [Fri, 5 Jun 2020 10:23:44 +0000 (12:23 +0200)]
switch to threaded workers, so in-memory-caching works

when using worker processes, each process is torn down after handling a
request, taking the cache with them.

3 years agoshow arrow on '.advanced' details/summary
girst [Thu, 4 Jun 2020 21:26:17 +0000 (23:26 +0200)]
show arrow on '.advanced' details/summary

makes it more obvious that it's clickable

3 years agovideo card: json button, consistent use of '.advanced' element
girst [Thu, 4 Jun 2020 20:54:44 +0000 (22:54 +0200)]
video card: json button, consistent use of '.advanced' element

3 years agofix WEBSITE urls
girst [Thu, 4 Jun 2020 19:22:56 +0000 (21:22 +0200)]
fix WEBSITE urls

introduced in cleanup changes

3 years agoapply aspect ratio to video element
girst [Thu, 4 Jun 2020 19:10:59 +0000 (21:10 +0200)]
apply aspect ratio to video element

test videos: vertical video: Vn1-Jvnhz6U; 2:1: l06PlYNShpQ
object-fit *does* affect the video too :(

3 years agocalculate exact aspect ratio
girst [Thu, 4 Jun 2020 18:20:36 +0000 (20:20 +0200)]
calculate exact aspect ratio

3 years agorework video error messages (/watch)
girst [Thu, 4 Jun 2020 15:35:38 +0000 (17:35 +0200)]
rework video error messages (/watch)

3 years agoprevent big wall of whitelisted regions
girst [Thu, 4 Jun 2020 13:58:58 +0000 (15:58 +0200)]
prevent big wall of whitelisted regions

if a video is available in most regions, show only blacklisted ones;
videos that are available in only a few will still show the list of
available regions.

3 years agocleanup a lot, support CREATOR_MERCHANDISE endcard (as website)
girst [Thu, 4 Jun 2020 13:42:24 +0000 (15:42 +0200)]
cleanup a lot, support CREATOR_MERCHANDISE endcard (as website)

3 years agofix old videos from showing up in subscriptions
girst [Thu, 4 Jun 2020 07:29:40 +0000 (09:29 +0200)]
fix old videos from showing up in subscriptions

3 years agosome error handling improvements
girst [Tue, 2 Jun 2020 17:40:38 +0000 (19:40 +0200)]
some error handling improvements

3 years agopop csrf token in @before_request
girst [Tue, 2 Jun 2020 16:32:39 +0000 (18:32 +0200)]
pop csrf token in @before_request

3 years agomove non-web related subroutines out of frontend
girst [Tue, 2 Jun 2020 16:24:11 +0000 (18:24 +0200)]
move non-web related subroutines out of frontend

3 years agoswitch to html watch page by default, fix csrf bugs
girst [Tue, 2 Jun 2020 15:41:13 +0000 (17:41 +0200)]
switch to html watch page by default, fix csrf bugs

3 years agofix UndefinedError for WEBSITE infocard thumnail
girst [Mon, 1 Jun 2020 20:46:15 +0000 (22:46 +0200)]
fix UndefinedError for WEBSITE infocard thumnail

website endcards have icons, but infocards don't. same for channels.

3 years agoimplement csrf protection
girst [Mon, 1 Jun 2020 20:40:21 +0000 (22:40 +0200)]
implement csrf protection

3 years agoinitial commit
girst [Sun, 31 May 2020 16:40:10 +0000 (18:40 +0200)]
initial commit

Imprint / Impressum