====== Docker - Media Server - Sonarr - Configure Media Management ======
===== Configure Media Management =====
Navigate to **Settings -> Media Management**.
In **Episode Naming**:
* Rename Episodes: **Checked**.
* Replace Illegal Characters: **Checked**.
* Standard Episode Format: **{Series Title}.S{season:00}E{episode:00}.{Episode Title}.{MediaInfo VideoCodec}.{Quality Title}**. Change this as required.
{{:docker:media_server:sonarr_-_media_management_-_episode_naming.png?800|}}
----
In **Folders**:
* Create empty series folders: **Checked**.
* Delete empty folders: **Not Checked**.
{{:docker:media_server:sonarr_-_media_management_-_folders.png?800|}}
----
In **Importing**:
* Episode Title Required: **Always**.
* Skip Free Space Check: **Not Checked**.
* Minimum Free Space: **100**.
* Use Hardlinks instead of Copy: **Checked**.
* Import Extra Files: **Not Checked**.
{{:docker:media_server:sonarr_-_media_management_-_importing.png?800|}}
----
In **File Management**:
* Ignore Deleted Episodes: **Not Checked**.
* Propers and Repacks: **Prefer and Upgrade**.
* Analyse video files: **Checked**.
* Rescan Series Folder after Refresh: **Always**.
* Change File Date: **None**.
* Recycling Bin: ****.
* Recycling Bin Cleanup: **7**.
{{:docker:media_server:sonarr_-_media_management_-_file_management.png?800|}}
----
In **Permissions**:
* Set Permissions: **Not Checked**.
* File chmod mode: **0644**.
* Folder chmod mode: **0755**.
* chown User: ****.
* chown Group: ****.
{{:docker:media_server:sonarr_-_media_management_-_permissions.png?800|}}
----
In **Root Folders**:
* Click on **Add Root Folder** button, and select **Tv**.
**NOTE:** This **Tv** folder is connected with the actual path where your TV shows exists.
This **Tv** folder is the virtual directory within the Sonarr docker container.
The following line from the **Sonarr** section in the Dockerfile connects this **Tv** directory to the **/home/peter/Documents/nas_tv_shows/** in this example.
The **rw** at the end of the line indicates to allow Read and Write to that directory.
- /home/peter/Documents/nas_tv_shows/:/tv:rw
----