typo
This commit is contained in:
parent
304675110a
commit
a894b2ae4f
2 changed files with 1 additions and 4 deletions
3
bin/0xcd
3
bin/0xcd
|
@ -21,9 +21,6 @@ if __name__ == '__main__':
|
||||||
parser.add_option('-r', '--rhythmbox', dest='rhythmbox', help='Rhythmbox xml', default=oxcd.rhythmbox.path())
|
parser.add_option('-r', '--rhythmbox', dest='rhythmbox', help='Rhythmbox xml', default=oxcd.rhythmbox.path())
|
||||||
(opts, args) = parser.parse_args()
|
(opts, args) = parser.parse_args()
|
||||||
|
|
||||||
print (opts.port, )
|
|
||||||
print not filter(None, (opts.itunes, opts.rhythmbox))
|
|
||||||
|
|
||||||
if None in (opts.port, ) or not filter(None, (opts.itunes, opts.rhythmbox)):
|
if None in (opts.port, ) or not filter(None, (opts.itunes, opts.rhythmbox)):
|
||||||
parser.print_help()
|
parser.print_help()
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
|
@ -41,7 +41,7 @@ class iTunes(object):
|
||||||
]
|
]
|
||||||
for t in self.library['Tracks']:
|
for t in self.library['Tracks']:
|
||||||
track = self.library['Tracks'][t]
|
track = self.library['Tracks'][t]
|
||||||
if track.get('kind') in ('MPEG audio file') and not track.get('podcast'):
|
if track.get('kind') in ('MPEG audio file', ) and not track.get('podcast'):
|
||||||
item = {}
|
item = {}
|
||||||
for key in keys:
|
for key in keys:
|
||||||
item[key] = track.get({
|
item[key] = track.get({
|
||||||
|
|
Loading…
Reference in a new issue