mhite / swinsian2itlxml

Generate iTunes library XML from Swinsian database
MIT License
28 stars 4 forks source link

Error when creating normal playlists #2

Closed dashbad closed 7 years ago

dashbad commented 8 years ago

A bug this time.

When running the script I was receiving an error around concatenating a str and int object at line 260:

for x, row in enumerate(rows, x+1):

This seems to be because x is a str when it is passed to enumerate. I've fixed this by simply inserting:

x = int(x) at line 259

I haven't had the chance to work out why this had broken or whether this is the best solution so I haven't created a pull request. My Python/programming knowledge is quite limited

mhite commented 8 years ago

Issue fixed -- it was a corner case that I handled very poorly. I've checked the fix into the amory branch and I will merge it into master soon. Feel free to check out that branch and give it a spin in the meantime.

mhite commented 7 years ago

FYI, the fix is merged into master. I've deleted the test branch.