You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+27-28Lines changed: 27 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Autoscan
2
2
3
3
Autoscan replaces the default Plex and Emby behaviour for picking up file changes on the file system.
4
-
Autoscan integrates with Sonarr, Radarr and Lidarr (with Google Drive coming soon!) to fetch changes in near real-time without relying on the file system.
4
+
Autoscan integrates with Sonarr, Radarr, Lidarr and Google Drive to fetch changes in near real-time without relying on the file system.
5
5
6
6
Wait, what happened to [Plex Autoscan](https://github.com/l3uddz/plex_autoscan)?
7
7
Well, Autoscan is a rewrite of the original Plex Autoscan written in the Go language.
@@ -53,12 +53,13 @@ However, we are proud of the rewrite and are eager to know your opinion!
53
53
54
54
### Installing autoscan
55
55
56
-
As Autoscan is still in active development, we highly recommend you to fetch the latest state of the master branch at all times.
56
+
Autoscan offers [pre-compiled binaries](https://github.com/Cloudbox/autoscan/releases/latest) for both Linux and MacOS for each official release. In addition, we also offer a [Docker image](#docker)!
57
57
58
-
To install the autoscan CLI on your system, make sure:
58
+
Alternatively, you can build the Autoscan binary yourself.
59
+
To build the autoscan CLI on your system, make sure:
59
60
60
61
1. Your machine runs Linux, macOS or WSL2
61
-
2. You have [Go](https://golang.org/doc/install) installed (1.14 preferred)
62
+
2. You have [Go](https://golang.org/doc/install) installed (1.14 or later preferred)
62
63
3. You have a GCC compiler present \
63
64
*Yup, we need to link to C because of SQLite >:(*
64
65
4. Clone this repository and cd into it from the terminal
@@ -69,8 +70,6 @@ To start autoscan, simply run `./autoscan`. If you want autoscan to be globally
69
70
70
71
If you need to debug certain Autoscan behaviour, either add the `-v` flag for debug mode or the `-vv` flag for trace mode to get even more details about internal behaviour.
71
72
72
-
We also offer a [Docker image](#docker)! However, its configuration may be a bit complex as it requires a good understanding of Autoscan's rewriting capabilities. We hope to provide detailed instructions on these rewriting capabilities in the near future!
73
-
74
73
## Introduction
75
74
76
75
Autoscan is split into three distinct modules:
@@ -108,22 +107,22 @@ triggers:
108
107
- rewrite:
109
108
# /tv contains folders with tv shows
110
109
# This path is used within the Sonarr Docker container
111
-
- from: /tv/*
110
+
- from: /tv/
112
111
113
112
# /mnt/unionfs/Media/TV links to the same folder, though from the host OS
114
113
# This folder is accessed by Autoscan
115
-
to: /mnt/unionfs/Media/TV/$1
114
+
to: /mnt/unionfs/Media/TV/
116
115
117
116
targets:
118
117
plex:
119
118
- rewrite:
120
119
# Same folder as above, accessible by Autoscan.
121
120
# Note how we strip the "TV" part,
122
121
# as we want both Movies and TV.
123
-
- from: /mnt/unionfs/Media/*
122
+
- from: /mnt/unionfs/Media/
124
123
125
124
# This path is used within the Plex Docker container
126
-
to: /data/$1
125
+
to: /data/
127
126
```
128
127
129
128
Let's take a look at the journey of the path `/tv/Westworld/Season 1/s01e01.mkv` coming from Sonarr.
@@ -212,12 +211,12 @@ triggers:
212
211
213
212
# rewrite drive to the local filesystem
214
213
rewrite:
215
-
- from: ^/Media/*
216
-
to: /mnt/unionfs/Media/$1
214
+
- from: ^/Media/
215
+
to: /mnt/unionfs/Media/
217
216
218
217
# filter with regular expressions
219
218
include:
220
-
- '^/mnt/unionfs/Media/*'
219
+
- ^/mnt/unionfs/Media/
221
220
exclude:
222
221
- '\.srt$'
223
222
@@ -226,14 +225,14 @@ triggers:
226
225
227
226
# filter with regular expressions
228
227
include:
229
-
- '^/mnt/unionfs/Media/*'
228
+
- ^/mnt/unionfs/Media/
230
229
exclude:
231
230
- '\.(srt|pdf)$'
232
231
233
232
# rewrite inotify path to unified filesystem
234
233
rewrite:
235
-
- from: ^/mnt/local/Media/*
236
-
to: /mnt/unionfs/Media/$1
234
+
- from: ^/mnt/local/Media/
235
+
to: /mnt/unionfs/Media/
237
236
238
237
# local filesystem paths to monitor
239
238
paths:
@@ -246,8 +245,8 @@ triggers:
246
245
# Rewrite the path from within the container
247
246
# to your local filesystem.
248
247
rewrite:
249
-
- from: /tv/*
250
-
to: /mnt/unionfs/Media/TV/$1
248
+
- from: /tv/
249
+
to: /mnt/unionfs/Media/TV/
251
250
252
251
radarr:
253
252
- name: radarr # /triggers/radarr
@@ -354,8 +353,8 @@ targets:
354
353
- url: https://plex.domain.tld # URL of your Plex server
355
354
token: XXXX # Plex API Token
356
355
rewrite:
357
-
- from: /mnt/unionfs/Media/* # local file system
358
-
to: /data/$1 # path accessible by the Plex docker container (if applicable)
356
+
- from: /mnt/unionfs/Media/ # local file system
357
+
to: /data/ # path accessible by the Plex docker container (if applicable)
359
358
```
360
359
361
360
There are a couple of things to take note of in the config:
@@ -376,8 +375,8 @@ targets:
376
375
- url: https://emby.domain.tld # URL of your Emby server
377
376
token: XXXX # Emby API Token
378
377
rewrite:
379
-
- from: /mnt/unionfs/Media/* # local file system
380
-
to: /data/$1 # path accessible by the Emby docker container (if applicable)
378
+
- from: /mnt/unionfs/Media/ # local file system
379
+
to: /data/ # path accessible by the Emby docker container (if applicable)
381
380
```
382
381
383
382
- URL. The URL can link to the docker container directly, the localhost or a reverse proxy sitting in front of Emby.
@@ -418,8 +417,8 @@ triggers:
418
417
# Rewrite the path from within the container
419
418
# to your local filesystem.
420
419
rewrite:
421
-
- from: /tv/*
422
-
to: /mnt/unionfs/Media/TV/$1
420
+
- from: /tv/
421
+
to: /mnt/unionfs/Media/TV/
423
422
424
423
radarr:
425
424
- name: radarr # /triggers/radarr
@@ -437,15 +436,15 @@ targets:
437
436
- url: https://plex.domain.tld # URL of your Plex server
438
437
token: XXXX # Plex API Token
439
438
rewrite:
440
-
- from: /mnt/unionfs/Media/* # local file system
441
-
to: /data/$1 # path accessible by the Plex docker container (if applicable)
439
+
- from: /mnt/unionfs/Media/ # local file system
440
+
to: /data/ # path accessible by the Plex docker container (if applicable)
442
441
443
442
emby:
444
443
- url: https://emby.domain.tld # URL of your Emby server
445
444
token: XXXX # Emby API Token
446
445
rewrite:
447
-
- from: /mnt/unionfs/Media/* # local file system
448
-
to: /data/$1 # path accessible by the Emby docker container (if applicable)
446
+
- from: /mnt/unionfs/Media/ # local file system
447
+
to: /data/ # path accessible by the Emby docker container (if applicable)
0 commit comments