Skip to content

Commit

Permalink
no errors on discisrc with no isrcs, re #51 (v2)
Browse files Browse the repository at this point in the history
Discisrc displays one line for each track,
even when no ISRCs are found.
  • Loading branch information
JonnyJD committed Mar 12, 2013
1 parent 7c7f553 commit fabb325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isrcsubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def gather_isrcs(backend, device):
for line in isrcout:
if debug:
printf(line) # already includes a newline
if line.startswith("Track"):
if line.startswith("Track") and len(line) > 12:
m = re.search(pattern, line)
if m == None:
print("can't find ISRC in: %s" % line)
Expand Down

0 comments on commit fabb325

Please sign in to comment.