gudvinr
ce6cadc176
refactor(mediaproxy): use *url.URL for MEDIA_PROXY_CUSTOM_URL
...
Same behaviour as for HTTP_CLIENT_PROXY.
2025-08-15 18:12:44 -07:00
Frédéric Guillot
63891501e5
refactor(model): add test coverage and simplify ProxifyEnclosureURL
2025-07-07 18:41:44 -07:00
jvoisin
f864a2ed70
refactor(mediaproxy): simplify shouldProxy
...
The original function was non-trivial to understand, as `!A && (B || !C)` isn't
easily grokable by humans.
2025-07-07 15:50:13 -07:00
Frédéric Guillot
d291d6a74d
refactor(config): remove deprecated config options
2025-06-15 14:42:28 -07:00
Julien Voisin
1b0b8b9c42
refactor: use a better construct than doc.Find(…).First()
...
As mentioned in goquery's documentation (https://pkg.go.dev/github.com/PuerkitoBio/goquery#Single ):
> By default, Selection.Find and other functions that accept a selector string
to select nodes will use all matches corresponding to that selector. By using
the Matcher returned by Single, at most the first match will be selected.
>
> The one using Single is optimized to be potentially much faster on large documents.
2024-12-11 19:40:55 -08:00
Frédéric Guillot
4bbc12e3b2
fix: use root URL to generate absolute proxy URL
...
When using `BASE_URL` with a subfolder, the root URL must be used to
avoid base folder appearing twice in the generated URL.
2024-08-19 20:44:46 -07:00
Frédéric Guillot
d048d59d39
fix: use BASE_URL instead of r.Host
to generate absolute media proxy URL
2024-07-29 16:04:31 -07:00
wangb
f847c3e754
fix: video poster image URL is encoded twice when using MEDIA_PROXY_MODE=all
2024-07-13 09:20:55 -07:00
Frédéric Guillot
c2311e316c
Rename PROXY_* options to MEDIA_PROXY_*
2024-03-20 21:28:28 -07:00