fetcher: don't download network metadata if the user doesn't want to
authorSteve Lhomme <robux4@ycbcr.xyz>
Mon, 14 Oct 2024 09:11:36 +0000 (11:11 +0200)
committerSebastian Ramacher <sramacher@debian.org>
Fri, 7 Mar 2025 06:31:22 +0000 (07:31 +0100)
commit99a24662993c54b746d49e52fd397ae20f1f1bf2
treebab7e464d9cc10f28f35c0e1176bb681de493b3a
parent8f60dc64486fcd29f9b2d0e00af23cb5ab382547
fetcher: don't download network metadata if the user doesn't want to

The option is defined as "Allow metadata network access". If it's false (default but query during the first run) that means the
user doesn't want to check metadata from the network.
So we should not start a network job when there's a possibility to do it.

This is a regression from ea88b8d68e252445bcc305fd7a3dd45ef3ce0126.
Before that we only used FETCHER_SCOPE_LOCAL if the option wasn't set.

(cherry picked from commit 1a85d6793948c88afe35692d8c17a82089a58f33)

Gbp-Pq: Name 0079-fetcher-don-t-download-network-metadata-if-the-user-.patch
src/playlist/fetcher.c