yyyyyyyan / bandcamper

Bandcamp downloader
MIT License
44 stars 9 forks source link

Assume a Single if track_num is None and set to 1 #8

Closed falsh-grodon closed 9 months ago

falsh-grodon commented 11 months ago

When a single track is found in a URL such as this one:

https://acidwaxa.bandcamp.com/track/1-2-3-4-505-2

The track numbering returns None causing an error in the fallback mp3 download.

The patch makes an assumption that it is a single and assigns the value 1 as the track number