File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 33- (new) serve on unix socket (thanks to @rvighne )
44- (new) more auto-refresh options: 12h & 24h (thanks to @aswerkljh for suggestion)
55- (fix) smooth scrolling on iOS (thanks to gatheraled)
6+ - (fix) displaying youtube shorts in "Read Here" (thanks to @Dean-Corso for the report)
67- (etc) theme-color support (thanks to @asimpson )
78- (etc) cookie security measures (thanks to Tom Fitzhenry)
89- (etc) restrict access to internal IPs for page crawler (thanks to Omar Kurt)
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ func VideoIFrame(link string) string {
2222 youtubeID := ""
2323 if l .Host == "www.youtube.com" && l .Path == "/watch" {
2424 youtubeID = l .Query ().Get ("v" )
25+ } else if l .Host == "www.youtube.com" && strings .HasPrefix (l .Path , "/shorts/" ) {
26+ youtubeID = strings .TrimPrefix (l .Path , "/shorts/" )
2527 } else if l .Host == "youtu.be" {
2628 youtubeID = strings .TrimLeft (l .Path , "/" )
2729 }
You can’t perform that action at this time.
0 commit comments