mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-25 10:25:09 +00:00
refactor(core): write a service's launch keys through one module
This commit is contained in:
@@ -116,7 +116,7 @@ up the objects your methods rely on:
|
||||
| `self.track_request` | A `TrackRequest` describing the requested codecs, ranges, and best-available flag (see below). |
|
||||
|
||||
The constructor also resolves proxies: it reads `--proxy` and the `proxy_query` and
|
||||
`proxy_provider` context params that `dl` derives from it, consults the per-service
|
||||
`proxy_provider` context params that `dl` and `search` derive from it, consults the per-service
|
||||
`proxy_map`, and, if `GEOFENCE` is set and you did not give an explicit proxy, does a live
|
||||
IP check and auto-fetches a proxy to `GEOFENCE[0]` when it detects a geoblock. A
|
||||
`GEOBLOCK` hit with no `GEOFENCE` stops the run with a "not available in your region"
|
||||
|
||||
@@ -10,6 +10,7 @@ Per-service configuration, keyed by the canonical service tag (for example `EXAM
|
||||
- **`proxy_map`**: remaps the region query you passed to `-p/--proxy` for this service.
|
||||
A config key is that query, or `"provider:query"` when the flag also named a proxy provider. The value is
|
||||
the query asked of the proxy provider instead. It has no effect when you give `-p` a full proxy URL.
|
||||
`dl`, `search` and a REST API download job apply it. The other REST API routes and a `--remote` remote session do not.
|
||||
- **`title_map`**: an exact-match rename map applied to fetched titles (source name →
|
||||
desired name), so a service that names a title differently from your library still matches.
|
||||
- **`dl`**: per-service download defaults, using the same keys as the global
|
||||
|
||||
Reference in New Issue
Block a user