iheanyi / bandcamp-dl

Simple python script to download Bandcamp albums

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Download fails if track name has Japanese characters

sumsare opened this issue · comments

EDIT I fixed the issue by entering set PYTHONIOENCODING=utf-8 into the command prompt before trying again. This time it didn't produce any errors and downloaded all tracks fine. With the small exception of the foreign characters being represented as '?' in the mp3 tags. The characters stay in the filename, though.

e.g.
image

Python version:
Python 3.5.4

Bandcamp-dl version:
0.0.8-12

Bancamp-dl options:
--base-dir=\Users\Richard\Music

url:
https://nanidato.bandcamp.com/album/mobile-sailor-gundam (fails on the first song)
https://nanidato.bandcamp.com/track/doki-doki-no-disco (link used in the screenshot)
https://neoncityrecords.bandcamp.com/album/a-million-miles-away (fails on the 9th song)

Describe the issue:
Track/album fails to download when there are Japanese (Kanji/Kana) characters in the title.
In the case of an album, once it encounters a track with such a name, the entire album's download is aborted.
The artist's name doesn't seem to be an issue as I tested it with an album by マクロスMACROSS 82-99 (download only failed after it ran into a song with Japanese characters).

image

EDIT: Looking through previously closed issues, I discovered that --no-slugify lets me download the URL properly!

Seems like the set PYTHONIOENCODING=utf-8 only worked on that example, since trying it with this link, it gives me a new type of error.

image