This commit is contained in:
j 2012-09-08 19:40:41 +02:00
parent 304675110a
commit a894b2ae4f
2 changed files with 1 additions and 4 deletions

View File

@ -21,9 +21,6 @@ if __name__ == '__main__':
parser.add_option('-r', '--rhythmbox', dest='rhythmbox', help='Rhythmbox xml', default=oxcd.rhythmbox.path())
(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)):
parser.print_help()
sys.exit()

View File

@ -41,7 +41,7 @@ class iTunes(object):
]
for t in self.library['Tracks']:
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 = {}
for key in keys:
item[key] = track.get({