]>
git.gir.st - subscriptionfeed.git/log
girst [Thu, 17 Jun 2021 12:22:10 +0000 (14:22 +0200)]
Revert "Revert "remove useless for loop, implement age-gate bypass""
This reverts commit
80ff9d8a9335559ff59ec1bc0f86733bf583ec00 .
girst [Thu, 17 Jun 2021 12:22:08 +0000 (14:22 +0200)]
Revert "Revert "fix missing metadata""
This reverts commit
2115aa02e37b1d966ee33a618bee2b64b884c111 .
girst [Thu, 17 Jun 2021 12:22:02 +0000 (14:22 +0200)]
Revert "Revert "replace /get_video_info call""
This reverts commit
fa9b2bd0a1b5d34595d3cd0724615f31c7ef0897 .
girst [Thu, 17 Jun 2021 12:20:25 +0000 (14:20 +0200)]
Revert "simpler fix for failing get_video_info"
This reverts commit
aaac9569d599056f02befe7b4cbc9bf9763b6920 .
girst [Mon, 14 Jun 2021 10:57:12 +0000 (12:57 +0200)]
s/freenode/libera.chat/g
girst [Mon, 14 Jun 2021 08:10:40 +0000 (10:10 +0200)]
work around youtube not returning player_response
also fixes an exception that occurred when returning 'exhausted' error
girst [Thu, 3 Jun 2021 18:37:13 +0000 (20:37 +0200)]
fix rating when absent
displayed as -25%up / 125%down -- oops :D
girst [Sat, 29 May 2021 13:52:45 +0000 (15:52 +0200)]
high(er) quality 'video unavailable' error page
girst [Sat, 29 May 2021 13:06:54 +0000 (15:06 +0200)]
use apostrophe as thousands seperator
periods and commas could be interpreted as decimals, thin space was too
easily overlooked (if displayed at all). the swiss version seems to be
an acceptable compromise.
girst [Sat, 29 May 2021 13:01:52 +0000 (15:01 +0200)]
replace star rating with thumbs up/down percentage
also replace 'blacklisted in' with the shorter 'blocked in' for
aesthetic reasons.
girst [Thu, 20 May 2021 15:30:09 +0000 (17:30 +0200)]
cache POST requests, explicity not cache some POSTs
girst [Thu, 20 May 2021 15:24:21 +0000 (17:24 +0200)]
simpler fix for failing get_video_info
youtube-dl issue that suggested that fix:
https://github.com/ytdl-org/youtube-dl/issues/29086
in the long term, we should probably move to the innertube api, but for
now this feels safer.
youtube-dlp innertube patch:
https://github.com/yt-dlp/yt-dlp/pull/328
girst [Thu, 20 May 2021 15:23:31 +0000 (17:23 +0200)]
Revert "replace /get_video_info call"
This reverts commit
c19bf7d000590f032275cb744c86f57dddb48dba .
girst [Thu, 20 May 2021 15:23:29 +0000 (17:23 +0200)]
Revert "fix missing metadata"
This reverts commit
890fc200e8b3834f21ddfce18ae458bae5333537 .
girst [Thu, 20 May 2021 15:23:20 +0000 (17:23 +0200)]
Revert "remove useless for loop, implement age-gate bypass"
This reverts commit
5ca7bc097abf30de5f5872cc51e58974a4b2a56a .
girst [Thu, 20 May 2021 15:21:27 +0000 (17:21 +0200)]
remove useless for loop, implement age-gate bypass
girst [Thu, 20 May 2021 15:07:32 +0000 (17:07 +0200)]
fix missing metadata
web_embedded_player doesn't return metadata, so viewing watch.j2 failed.
girst [Thu, 20 May 2021 14:18:29 +0000 (16:18 +0200)]
replace /get_video_info call
this has sporadically returned errors for the last few days, and now
does it all the time. youtube.com/watch and /embed have moved to this
endpoint, with the same key as is used elsewhere in the innertube api.
this probably is the beginning of the end of the seperate /browse
endpoint, as innertube is now required in core.
girst [Sat, 1 May 2021 15:46:16 +0000 (17:46 +0200)]
add ellipsis to truncated video titles
all browsers have this implemented with the -webkit- prefix, even
firefox.
girst [Sat, 27 Mar 2021 20:34:15 +0000 (21:34 +0100)]
naively add length badge to reddit videos if available
e.g. /r/mealtimevideos suffixes video titles with '[mm:ss]'. this patch
makes no attempt at validating or cleaning up the returned string.
matching is so lax, it sometimes matches production year e.g. '(2021)'.
note that the string is also not escaped; but no unsafe chars (<&'")
are matched in the regex. I'm sure it'll bite me somewhere in the
future.
girst [Sat, 20 Mar 2021 20:26:58 +0000 (21:26 +0100)]
don't load livestreams through proxy for osx(?) devices
some browsers reporting as osx will request the hls_manifest way too
often, causing strain on the server. however, it just so happens that
osx supports native hls playback, so we can just have them talk to
google's servers directly.
this commit also introduces EXT-X-ENDLIST to */hls_variant/*, so it
only gets requested once.
girst [Thu, 18 Mar 2021 21:49:11 +0000 (22:49 +0100)]
[DATABASE CHANGE: Migration below] make login tokens revocable
Note that without the migration, nothing except magic-token-login will
break.
Migration:
INSERT INTO user_tokens SELECT id, token FROM users;
girst [Sat, 13 Mar 2021 21:33:45 +0000 (22:33 +0100)]
fix cipher extraction
was probably broken for a while :|
new element to extract looks like this:
<script src="/s/player/
d29f3109 /player_ias.vflset/en_US/base.js" nonce="Cw+Vevjw67B1RSjJHbh/fw">
girst [Sat, 13 Mar 2021 10:43:45 +0000 (11:43 +0100)]
exclude /static files from anticsrf
girst [Wed, 10 Mar 2021 15:07:03 +0000 (16:07 +0100)]
add info flash when (un)pinning/(un)subscribing/etc. with undo
makes it ovious what happened and allows undoing fat-fingered actions.
girst [Wed, 10 Mar 2021 14:23:15 +0000 (15:23 +0100)]
fix port80 auto-restart
girst [Tue, 9 Mar 2021 21:35:21 +0000 (22:35 +0100)]
display innertube error to user
example: /channel/UCpExuV8qJMfCaSQNL1YG6bQ/
refactored prepare_channel while i was at it to use |G().
girst [Tue, 9 Mar 2021 19:52:23 +0000 (20:52 +0100)]
remove hls test route
girst [Tue, 9 Mar 2021 19:39:00 +0000 (20:39 +0100)]
add a in-tree copy of hls.js, update licensing section in readme
girst [Tue, 9 Mar 2021 19:30:35 +0000 (20:30 +0100)]
remove implemented TODOs
re. hls/cors in browser: https://bugzil.la/
1263150 #c5
girst [Tue, 9 Mar 2021 18:43:05 +0000 (19:43 +0100)]
enable hls proxying, simplify /api/hls_* munging, format code
girst [Sun, 3 Jan 2021 14:47:37 +0000 (15:47 +0100)]
working HLS proxy (for livestreams)
girst [Tue, 9 Mar 2021 15:13:29 +0000 (16:13 +0100)]
fix flask_logger()
girst [Tue, 9 Mar 2021 15:11:35 +0000 (16:11 +0100)]
add note about api key
girst [Fri, 5 Mar 2021 20:32:50 +0000 (21:32 +0100)]
takes some shortcuts with captcha busting
girst [Fri, 5 Mar 2021 19:08:13 +0000 (20:08 +0100)]
integrate anticaptcha into common and clean it up a bit
doesn't make sense as a seperate blueprint; can be disabled in the
config.
girst [Fri, 5 Mar 2021 18:20:15 +0000 (19:20 +0100)]
[WARNING: CONFIG CHANGE] reorganize webhooks config
girst [Fri, 5 Mar 2021 17:39:26 +0000 (18:39 +0100)]
working prototype for anticaptcha
needs heavy cleanup!
girst [Fri, 5 Mar 2021 15:47:56 +0000 (16:47 +0100)]
move anticsrf out of __init__, provide decorator for opting out
this also fixes running the webhooks blueprint on the same flask
instance as the frontend, which couldn't have worked before this. oops!
girst [Wed, 3 Mar 2021 19:46:10 +0000 (20:46 +0100)]
switch browse endpoint from browse_ajax to youtubei/v1/browse
apparently, https://youtubei.googleapis.com/youtubei/v1/browse is the same endpoint.
see also:
https://github.com/TeamNewPipe/NewPipeExtractor/issues/566
https://github.com/iv-org/invidious/issues/1838
https://github.com/ytdl-org/youtube-dl/issues/28289
girst [Thu, 21 Jan 2021 07:11:57 +0000 (08:11 +0100)]
allow trailing slash on /r/<subreddit>
girst [Wed, 13 Jan 2021 12:03:07 +0000 (13:03 +0100)]
support /embed/videoseries
girst [Sun, 3 Jan 2021 17:20:25 +0000 (18:20 +0100)]
Restructure readme
girst [Sun, 3 Jan 2021 16:35:26 +0000 (17:35 +0100)]
fix subreddit manager's button styling
girst [Sun, 3 Jan 2021 16:28:02 +0000 (17:28 +0100)]
remove obsolete invidious plugin
girst [Sun, 3 Jan 2021 16:13:31 +0000 (17:13 +0100)]
clean up playlist error handling
support fallback for mix playlists (RD<video_id>, e.g. RDFiThjLcB1Qk)
girst [Sun, 3 Jan 2021 14:50:15 +0000 (15:50 +0100)]
support /embed/videoseries urls
/embed/videoseries?list=PLZHQObOWTQDNPOjrT6KVlfJuKtYTftqH6&autoplay=0
girst [Sat, 12 Dec 2020 19:44:10 +0000 (20:44 +0100)]
update channel sort ui
remove obsolete entries, can't sort search, reword.
girst [Sat, 12 Dec 2020 19:32:50 +0000 (20:32 +0100)]
fix channel playlists tab
now uses v3 formatted protobuf.
girst [Wed, 9 Dec 2020 17:58:19 +0000 (18:58 +0100)]
add youtube-nocookie link
useful for livestreams, which i'm still procrastinating implementing
girst [Sun, 6 Dec 2020 18:14:17 +0000 (19:14 +0100)]
expose feature and extra filters
girst [Sun, 6 Dec 2020 17:56:54 +0000 (18:56 +0100)]
add comment explaning 0:00 length subscription videos
girst [Sun, 6 Dec 2020 17:46:19 +0000 (18:46 +0100)]
fix canonicalisation of legacy usernames
girst [Mon, 30 Nov 2020 16:19:54 +0000 (17:19 +0100)]
add browse/ override for /<something> endpoint
doing this as an override, so the /youtube module doesn't gain a
dependency on this endpoint.
girst [Mon, 30 Nov 2020 15:42:24 +0000 (16:42 +0100)]
followup-fix for playlists in feed
this caused videos that are in any playlist to only be displayed if the
user subscribed via playlists. fixed.
girst [Mon, 30 Nov 2020 15:39:08 +0000 (16:39 +0100)]
show playlist subscriptions in /feed/subscriptions
"slight" oversight. :/
girst [Sun, 29 Nov 2020 02:28:21 +0000 (03:28 +0100)]
slightly better /<something> error message
girst [Sun, 29 Nov 2020 02:24:13 +0000 (03:24 +0100)]
fix channel search
girst [Tue, 17 Nov 2020 13:50:47 +0000 (14:50 +0100)]
make sure header+<video> fit above the fold
girst [Sat, 31 Oct 2020 12:24:03 +0000 (13:24 +0100)]
document python version requirements
girst [Mon, 26 Oct 2020 22:04:48 +0000 (23:04 +0100)]
clean up broken-youtube-response handling
girst [Mon, 26 Oct 2020 21:53:27 +0000 (22:53 +0100)]
link to sponsor.ajay.app; simplify js
now shows 0 segments when sponsorblock hasn't found the video id
girst [Mon, 26 Oct 2020 21:49:19 +0000 (22:49 +0100)]
fix search pagination
old ?q= stopped displaying pages >= 2
protobuf field9 reversed by youtube-local
girst [Sat, 24 Oct 2020 14:14:42 +0000 (16:14 +0200)]
polish some stuff
girst [Thu, 22 Oct 2020 18:01:53 +0000 (20:01 +0200)]
fix /<something> 500 errors
m(
girst [Tue, 20 Oct 2020 17:20:33 +0000 (19:20 +0200)]
further improve <something> detector
girst [Sat, 17 Oct 2020 23:13:41 +0000 (01:13 +0200)]
better /<something> algorithm
note: using strict_slashes=False instread of two route decorators to
avoid useless redirect.
girst [Sat, 10 Oct 2020 15:59:54 +0000 (17:59 +0200)]
implement a tiny port80-to-443 redirector
girst [Fri, 9 Oct 2020 13:09:47 +0000 (15:09 +0200)]
fix reddit feed if 0 subscriptions
girst [Thu, 8 Oct 2020 14:34:35 +0000 (16:34 +0200)]
exclude search filters from new details style
girst [Thu, 8 Oct 2020 14:22:11 +0000 (16:22 +0200)]
better <details> css
girst [Sun, 4 Oct 2020 14:07:16 +0000 (16:07 +0200)]
update TODOs
girst [Sun, 4 Oct 2020 13:35:17 +0000 (15:35 +0200)]
implement pagination of channel/ucid/playlists (VERY HACKY)
i'm less ashamed of this code as i should be.
girst [Sun, 4 Oct 2020 13:30:57 +0000 (15:30 +0200)]
fix JSONDecodeError on search for real this time
example of a broken response: https://paste.ubuntu.com/p/NbpSMWKQcX/
girst [Fri, 2 Oct 2020 09:52:39 +0000 (11:52 +0200)]
prevent iter_content from raising ChunkedEncodingError when yt aborts connection
girst [Mon, 28 Sep 2020 22:13:32 +0000 (00:13 +0200)]
add &t= to redirect-to-watch
girst [Fri, 25 Sep 2020 14:41:08 +0000 (16:41 +0200)]
support "?t=1h2m3s" and "?t=123s" style start-offsets
documentation on media fragments:
https://www.w3.org/TR/2012/REC-media-frags-
20120925 /
girst [Thu, 24 Sep 2020 18:11:09 +0000 (20:11 +0200)]
remove more button from xmlfeeds
makes it necessary to remove the fallback from invidious (untested)
girst [Thu, 24 Sep 2020 16:49:51 +0000 (18:49 +0200)]
remove v1 usage from /channels/
doesn't appear to be used any more after a small and informal survey on
girst [Thu, 24 Sep 2020 17:47:18 +0000 (19:47 +0200)]
add sponsor segments debug info
girst [Wed, 23 Sep 2020 21:02:51 +0000 (23:02 +0200)]
make title in video cards selectable
girst [Wed, 23 Sep 2020 20:48:03 +0000 (22:48 +0200)]
fix exception on bad search results
r.json() can raise 'json.decoder.JSONDecodeError: Expecting value: line
1 column 1 (char 0)' when the response is an empty string
girst [Tue, 22 Sep 2020 12:11:22 +0000 (14:11 +0200)]
remove superfluous title text
girst [Mon, 21 Sep 2020 09:30:33 +0000 (11:30 +0200)]
video age: use 'm' for months, 'min' for minutes
girst [Sat, 19 Sep 2020 23:15:18 +0000 (01:15 +0200)]
change pinned style
fully css defined; no more html boilerplate. also, the <hr> breaking
the grid was ugly.
girst [Sat, 19 Sep 2020 23:11:04 +0000 (01:11 +0200)]
add display flags to /c/*; dedup flag retrieval code
girst [Sat, 19 Sep 2020 18:54:15 +0000 (20:54 +0200)]
remove 'return "foo", 400' style error responses (browse/)
girst [Sat, 19 Sep 2020 18:12:58 +0000 (20:12 +0200)]
expose hls/dash streams to template
note that this can't be used, since no browsers implement native
hls/dash, and any js-polyfills will trigger cors-errors.
girst [Sat, 19 Sep 2020 18:11:04 +0000 (20:11 +0200)]
(re)add subscribe button to channel page
girst [Sat, 19 Sep 2020 18:05:22 +0000 (20:05 +0200)]
redirect youtube.com/<username>, fix /c/ trailing slash
girst [Sat, 19 Sep 2020 15:06:04 +0000 (17:06 +0200)]
rename 'dangerous' blueprint, as its safe
has been running long enough in production now that I'm relatively
confident that it doesn't get blocked by Big Goog' (*knocks on wood*).
girst [Sat, 19 Sep 2020 14:57:06 +0000 (16:57 +0200)]
clean up dead protobuf structures
girst [Sat, 19 Sep 2020 13:56:52 +0000 (15:56 +0200)]
fix exception in pagination code on &foo=<emptystring>
girst [Sat, 19 Sep 2020 13:53:19 +0000 (15:53 +0200)]
fix strange exception on reddit api usage
data.data might be null (maybe if subreddit list is []?)
girst [Sat, 19 Sep 2020 13:50:13 +0000 (15:50 +0200)]
document perl installation
girst [Sat, 19 Sep 2020 13:49:09 +0000 (15:49 +0200)]
redirect /c/<ucid> to /channel/<ucid>
girst [Sat, 19 Sep 2020 13:47:48 +0000 (15:47 +0200)]
move to v3 channel format
modeled after
https://github.com/user234683/youtube-local/commit/
1ff97bfde1467f7f18d4d2715a9357c41d9e9b8f
girst [Sat, 19 Sep 2020 13:25:55 +0000 (15:25 +0200)]
store length when pinning videos
girst [Thu, 17 Sep 2020 11:03:47 +0000 (13:03 +0200)]
add link to source code
girst [Thu, 17 Sep 2020 11:03:26 +0000 (13:03 +0200)]
fix pinning the first (oldest) subscription