Skip to content

Commit

Permalink
Added option to AMC to download artwork.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesage committed Oct 29, 2019
1 parent 795ee5c commit 7bf52fd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ ENV APP_NAME="FileBot" \
AMC_ACTION="test" \
AMC_CONFLICT="auto" \
AMC_MATCH_MODE="opportunistic" \
AMC_ARTWORK="n" \
AMC_MUSIC_FORMAT="{plex}" \
AMC_MOVIE_FORMAT="{plex}" \
AMC_SERIES_FORMAT="{plex}" \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ of this parameter has the format `<VARIABLE_NAME>=<VALUE>`.
|`AMC_ACTION`| Action performed by the Automated Media Center (AMC) script on files. Valid values are `test`, `copy`, `move`, `symlink`, `hardlink`, `keeplink`, `duplicate` or `clone`. Use the `test` operation to perform a dry-run and verify that everything gets matched up correctly. | `test` |
|`AMC_CONFLICT`| Conflict resolution strategy used by the Automated Media Center (AMC) script: `skip` never overrides existing files, while `auto` overrides existing file only if new media is better. | `auto` |
|`AMC_MATCH_MODE`| Match mode used by the Automated Media Center (AMC) script: `opportunistic` mode works for all files regardless how badly they are named, while `strict` mode works for reasonably well-named files and ignore files that cannot be matched accurately. See [Match Mode](https://www.filebot.net/forums/viewtopic.php?t=4695) for complete documentation. | `opportunistic` |
|`AMC_ARTWORK`| When set to `y`, artwork is fetched and NFO file is generated by the Automated Media Center (AMC) script. | `n` |
|`AMC_MUSIC_FORMAT`| Define how music files are renamed by the Automated Media Center (AMC) script. Filebot supports a very powerful naming scheme. See [Format Expressions](https://www.filebot.net/naming.html) for complete documentation. | `{plex}` |
|`AMC_MOVIE_FORMAT`| Define how movie files are renamed by the Automated Media Center (AMC) script. Filebot supports a very powerful naming scheme. See [Format Expressions](https://www.filebot.net/naming.html) for complete documentation. | `{plex}` |
|`AMC_SERIES_FORMAT`| Define how TV series files are renamed by the Automated Media Center (AMC) script. Filebot supports a very powerful naming scheme. See [Format Expressions](https://www.filebot.net/naming.html) for complete documentation. | `{plex}` |
Expand Down
12 changes: 12 additions & 0 deletions appdefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,18 @@ changes to the file system.
<mask>false</mask>
</unraid_template>
</environment_variable>
<environment_variable>
<name>AMC_ARTWORK</name>
<description>When set to `y`, artwork is fetched and NFO file is generated by the Automated Media Center (AMC) script.</description>
<default>n</default>
<unraid_template>
<title>Automated Media Center: Artwork</title>
<description>When set to [b][i]y[/i][/b], artwork is fetched and NFO file is generated by the Automated Media Center (AMC) script.</description>
<display>always</display>
<required>false</required>
<mask>false</mask>
</unraid_template>
</environment_variable>
<environment_variable>
<name>AMC_MUSIC_FORMAT</name>
<description>Define how music files are renamed by the Automated Media Center (AMC) script. Filebot supports a very powerful naming scheme. See [Format Expressions](https://www.filebot.net/naming.html) for complete documentation.</description>
Expand Down
2 changes: 2 additions & 0 deletions rootfs/etc/services.d/amc/run
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ AMC_INPUT_STABLE_TIME="${AMC_INPUT_STABLE_TIME:-10}"
AMC_ACTION="${AMC_ACTION:-test}"
AMC_CONFLICT="${AMC_CONFLICT:-auto}"
AMC_MATCH_MODE="${AMC_MATCH_MODE:-opportunistic}"
AMC_ARTWORK="${AMC_ARTWORK:-n}"
AMC_MUSIC_FORMAT="${AMC_MUSIC_FORMAT:-\{plex\}}"
AMC_MOVIE_FORMAT="${AMC_MOVIE_FORMAT:-\{plex\}}"
AMC_SERIES_FORMAT="${AMC_SERIES_FORMAT:-\{plex\}}"
Expand Down Expand Up @@ -120,6 +121,7 @@ while true; do
--output "$AMC_OUTPUT_DIR" \
--action "$AMC_ACTION" \
--conflict "$AMC_CONFLICT" \
--def artwork="$AMC_ARTWORK" \
--def music="$AMC_PROCESS_MUSIC" \
--def clean=y \
--def excludeList="$AMC_EXCLUDE_LIST" \
Expand Down

0 comments on commit 7bf52fd

Please sign in to comment.