mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 07:25:08 +00:00
docs: sweep docs to zero ste_lint findings and one remote session name
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Post-scripts { #post-scripts }
|
||||
# Post-Scripts { #post-scripts }
|
||||
|
||||
Operate your own script when a download finishes, with unshackle's metadata passed in as
|
||||
`{variable}` placeholders. Use it to hand a finished file to an uploader, send a
|
||||
@@ -42,7 +42,7 @@ extra argument or a shell operator, and you never have to think about quoting. I
|
||||
means a path containing spaces always arrives as a single argument on every OS.
|
||||
|
||||
!!! warning "Prefix your variables"
|
||||
Titles, episode names and IDs come from the streaming service, not from you. Tokenizing
|
||||
Titles, episode names and IDs come from the streaming service, not from you. Tokenising
|
||||
first stops a value becoming a *new* argument, but a value on its own can still be a
|
||||
whole argument. A bare `{title}` whose value is `--upload-file=/etc/passwd` would arrive
|
||||
as an option to your script, not as text. Write `--title={title}`, not a bare `{title}`,
|
||||
@@ -106,7 +106,7 @@ values.
|
||||
| `{folder}` | Absolute path of its parent folder |
|
||||
| `{ext}` | Its extension, including the dot |
|
||||
| `{sidecars}` | Sidecar subtitle files written for this output, newline separated |
|
||||
| `{title}` | Show, movie or track name, sanitized |
|
||||
| `{title}` | Show, movie or track name, sanitised |
|
||||
| `{title_raw}` | Exactly what the service returned, untouched |
|
||||
| `{title_id}` | The service's ID for the title |
|
||||
| `{service}` | Service tag |
|
||||
@@ -173,7 +173,7 @@ track arrived in, such as `.flac`, because a music download is not muxed.
|
||||
|
||||
`{tmdb}`, `{imdb}` and `{tvdb}` carry the IDs unshackle tags the file with. unshackle reads
|
||||
them at the moment it dispatches the post-script, and not at the start of the run. The title search
|
||||
inside the download loop finds an episode's TMDB ID, so a post-script fires with it already filled in.
|
||||
that runs during the download finds an episode's TMDB ID, so a post-script fires with it already filled in.
|
||||
|
||||
They hold an ID you passed with `--tmdb`, `--imdb` or `--tvdb`, plus a TMDB ID the episode
|
||||
search resolved. No such search runs for a movie, so a movie post-script gets them empty unless you
|
||||
|
||||
Reference in New Issue
Block a user