Skip to content
This repository was archived by the owner on Oct 20, 2018. It is now read-only.

Commit 7a3617e

Browse files
committed
Fix error when --max-depth isn't set
1 parent 7331121 commit 7a3617e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

USAGE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Options | Description
9090
-q, --quiet | Don't output status messages<br>With -l,--log will display gmusicapi warnings<br>With -d,--dry-run will display song list
9191
--delete-on-success | Delete successfully uploaded local files.
9292
-R, --no-recursion | Disable recursion when scanning for local files.<br>This is equivalent to setting --max-depth to 1.
93-
--max-depth DEPTH | Set maximum depth of recursion when scanning for local files.
93+
--max-depth DEPTH | Set maximum depth of recursion when scanning for local files.<br>Default is infinite recursion.
9494
-e, -exclude | Exclude file paths matching a Python regex pattern<br>This option can be set multiple times
9595
-f, --include-filter | Include Google songs (download) or local songs (upload) by field:pattern filter (e.g. "artist:Muse").*<br>Values can be any valid [Python regex pattern](http://docs.python.org/2/library/re.html)<br>This option can be set multiple times
9696
-F, --exclude-filter | Exclude Google songs (download) or local songs (upload) by field:pattern filter (e.g. "artist:Muse").*<br>Values can be any valid [Python regex pattern](http://docs.python.org/2/library/re.html)<br>This option can be set multiple times
@@ -138,7 +138,7 @@ Options | Description
138138
-q, --quiet | Don't output status messages<br>With -l,--log will display gmusicapi warnings<br>With -d,--dry-run will display song list
139139
--delete-on-success | Delete successfully uploaded local files.
140140
-R, --no-recursion | Disable recursion when scanning for local files.<br>This is equivalent to setting --max-depth to 1.
141-
--max-depth DEPTH | Set maximum depth of recursion when scanning for local files.
141+
--max-depth DEPTH | Set maximum depth of recursion when scanning for local files.<br>Default is infinite recursion.
142142
-e, -exclude | Exclude file paths matching a Python regex pattern<br>This option can be set multiple times
143143
-f, --include-filter | Include local songs by field:pattern filter (e.g. "artist:Muse").*<br>Values can be any valid [Python regex pattern](http://docs.python.org/2/library/re.html)<br>This option can be set multiple times
144144
-F, --exclude-filter | Exclude local songs by field:pattern filter (e.g. "artist:Muse").*<br>Values can be any valid [Python regex pattern](http://docs.python.org/2/library/re.html)<br>This option can be set multiple times

gmusicapi_scripts/gmsync.py

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
-R, --no-recursion Disable recursion when scanning for local files.
3737
This is equivalent to setting --max-depth to 1.
3838
--max-depth DEPTH Set maximum depth of recursion when scanning for local files.
39+
Default is infinite recursion. [Default: 0]
3940
-e PATTERN, --exclude PATTERN Exclude file paths matching pattern.
4041
This option can be set multiple times.
4142
-f FILTER, --include-filter FILTER Include Google songs (download) or local songs (upload)

gmusicapi_scripts/gmupload.py

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
-R, --no-recursion Disable recursion when scanning for local files.
2929
This is equivalent to setting --max-depth to 1.
3030
--max-depth DEPTH Set maximum depth of recursion when scanning for local files.
31+
Default is infinite recursion. [Default: 0]
3132
-e PATTERN, --exclude PATTERN Exclude file paths matching a Python regex pattern.
3233
-f FILTER, --include-filter FILTER Include local songs by field:pattern filter (e.g. "artist:Muse").
3334
Songs can match any filter criteria.

0 commit comments

Comments
 (0)