mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-07 16:08:00 +09:00
Added shortcut parameters (-p, -t, -d, etc.)
This commit is contained in:
parent
30c68e9b41
commit
938405eb29
1 changed files with 7 additions and 7 deletions
|
|
@ -701,26 +701,26 @@ if __name__ == '__main__':
|
||||||
'Python script for building the Track and Playlist database '
|
'Python script for building the Track and Playlist database '
|
||||||
'for the newer gen IPod Shuffle. Version 1.4')
|
'for the newer gen IPod Shuffle. Version 1.4')
|
||||||
|
|
||||||
parser.add_argument('--track-voiceover', action='store_true',
|
parser.add_argument('-t', '--track-voiceover', action='store_true',
|
||||||
help='Enable track voiceover feature')
|
help='Enable track voiceover feature')
|
||||||
|
|
||||||
parser.add_argument('--playlist-voiceover', action='store_true',
|
parser.add_argument('-p', '--playlist-voiceover', action='store_true',
|
||||||
help='Enable playlist voiceover feature')
|
help='Enable playlist voiceover feature')
|
||||||
|
|
||||||
parser.add_argument('--rename-unicode', action='store_true',
|
parser.add_argument('-u', '--rename-unicode', action='store_true',
|
||||||
help='Rename files causing unicode errors, will do minimal required renaming')
|
help='Rename files causing unicode errors, will do minimal required renaming')
|
||||||
|
|
||||||
parser.add_argument('--track-gain', type=nonnegative_int, default='0',
|
parser.add_argument('-g', '--track-gain', type=nonnegative_int, default='0',
|
||||||
help='Specify volume gain (0-99) for all tracks; '
|
help='Specify volume gain (0-99) for all tracks; '
|
||||||
'0 (default) means no gain and is usually fine; '
|
'0 (default) means no gain and is usually fine; '
|
||||||
'e.g. 60 is very loud even on minimal player volume')
|
'e.g. 60 is very loud even on minimal player volume')
|
||||||
|
|
||||||
parser.add_argument('--auto-dir-playlists', type=int, default=None, const=-1, nargs='?',
|
parser.add_argument('-d', '--auto-dir-playlists', type=int, default=None, const=-1, nargs='?',
|
||||||
help='Generate automatic playlists for each folder recursively inside '
|
help='Generate automatic playlists for each folder recursively inside '
|
||||||
'"IPod_Control/Music/". You can optionally limit the depth: '
|
'"IPod_Control/Music/". You can optionally limit the depth: '
|
||||||
'0=root, 1=artist, 2=album, n=subfoldername, default=-1 (No Limit).')
|
'0=root, 1=artist, 2=album, n=subfoldername, default=-1 (No Limit).')
|
||||||
|
|
||||||
parser.add_argument('--auto-id3-playlists', type=str, default=None, metavar='ID3_TEMPLATE', const='{artist}', nargs='?',
|
parser.add_argument('-i', '--auto-id3-playlists', type=str, default=None, metavar='ID3_TEMPLATE', const='{artist}', nargs='?',
|
||||||
help='Generate automatic playlists based on the id3 tags of any music '
|
help='Generate automatic playlists based on the id3 tags of any music '
|
||||||
'added to the iPod. You can optionally specify a template string '
|
'added to the iPod. You can optionally specify a template string '
|
||||||
'based on which id3 tags are used to generate playlists. For eg. '
|
'based on which id3 tags are used to generate playlists. For eg. '
|
||||||
|
|
@ -728,7 +728,7 @@ if __name__ == '__main__':
|
||||||
'tracks under one playlist. Similarly \'{genre}\' will group tracks based '
|
'tracks under one playlist. Similarly \'{genre}\' will group tracks based '
|
||||||
'on their genre tag. Default template used is \'{artist}\'')
|
'on their genre tag. Default template used is \'{artist}\'')
|
||||||
|
|
||||||
parser.add_argument('--verbose', action='store_true',
|
parser.add_argument('-v', '--verbose', action='store_true',
|
||||||
help='Show verbose output of database generation.')
|
help='Show verbose output of database generation.')
|
||||||
|
|
||||||
parser.add_argument('path', help='Path to the IPod\'s root directory')
|
parser.add_argument('path', help='Path to the IPod\'s root directory')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue