ytmdl cannot download music with non-English characters.
See original GitHub issueBug report
Checklist
- I have searched for similar bugs in the issues.
- I will add the bug label to this issue.
Version Info
- Ytmdl version: 2021.11.07
- Youtube-dl version: 2021.12.17
How Ytmdl was installed?
I installed ytmdl through pip, I did rename the file in the scripts folder because of #178
Console Log
==> Logger running in DEBUG mode
==> Passed args: Namespace(SONG_NAME=['ashes', 'on', 'the', 'fire'], quiet=False, output_dir=None, song=None, choice=None, artist=None, album=None, disable_metaadd=False, skip_meta=False, manual_meta=False, itunes_id=None, spotify_id=None, disable_sort=False, ask_meta_name=False, on_meta_error=None, proxy=None, url=None, list=None, nolocal=False, format='mp3', trim=False, get_opts=False, keep_chapter_name=False, download_archive=None, ignore_chapters=False, pl_start=None, pl_end=None, pl_items=None, ignore_errors=False, title_as_name=False, level='DEBUG', disable_file=False, list_level=False)
==> on_meta_error before: None
==> on_meta_error after: exit
==> itunes_country: US
==> ['ashes', 'on', 'the', 'fire']
==> ashes on the fire
==> None
==> Searching to see if already present in C:\Users\Cwavs\Music
==> proxy passed: None
==> Passed format: mp3
==> Searching Youtube for ashes on the fire
==> Choose One (One with [M] is verified music)
[1] Attack on Titan Season 4 OST - Ashes on The Fire『Main Theme』 by AniMelody – Anime Music with dur 4:48
[2] Ashes on The Fire (Extended) | Attack on Titan Season 4 by Kamui Extends with dur 13:17
[3] Attack on Titan S4: Ashes on The Fire | EPIC VERSION by Samuel Kim Music with dur 5:32
[4] 進撃の巨人 | Attack on Titan OST - Ashes on The Fire[Official Live] by ぽにきゃん-Anime PONY CANYON with dur 4:29
[5] [M] Ashes on The Fire (進撃の巨人 The Final Season Original Soundtrack) by KOHTA YAMAMOTO - Topic with dur 4:35
[0] More results
==> Enter Choice (5): 5
==> 5
==> Downloading Ashes on The Fire (進撃の巨人 The Final Season Original Soundtrack) in 320kbps
Traceback (most recent call last):
File "C:\Python39\Scripts\yt-dlm.py", line 562, in <module>
extract_data()
File "C:\Python39\Scripts\yt-dlm.py", line 557, in extract_data
main(args)
File "C:\Python39\Scripts\yt-dlm.py", line 279, in main
path = download(link, yt_title, args)
File "C:\Python39\lib\site-packages\ytmdl\core.py", line 109, in download
logger.info('Downloading {}{}{} in {}{}kbps{}'.format(
File "C:\Python39\lib\site-packages\simber\logger.py", line 366, in info
self._write(message, args, LEVEL_NUMBER)
File "C:\Python39\lib\site-packages\simber\logger.py", line 203, in _write
stream.write(
File "C:\Python39\lib\site-packages\simber\stream.py", line 138, in write
print(_formatted_out, **params)
File "C:\Python39\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 67-71: character maps to <undefined>
Description
It seems that the program cannot download any music with none English characters in it.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
ytmdl/README.md at master - GitHub
YouTube Music Downloader. Download songs from YouTube by getting the audio from YouTube and the metadata from sources like Itunes, Spotify, Gaana etc....
Read more >Youtube-dl and Non-English Characters : r/youtubedl - Reddit
Is there anyway to get Youtube-dl to recognize non-English characters when it comes to generating a filename?
Read more >AUR (en) - ytmdl - Arch Linux
Description: Download songs from YouTube with metadata from sources like Itunes, Gaana, Deezer etc. Upstream URL: https://github.com/deepjyoti30/ytmdl.
Read more >Compare Packages Between Distributions - DistroWatch.com
In this way we can not only compare two competing projects, but also track the progress of distributions as they adopt newer versions...
Read more >Ritual And Belief In Morocco
Other rites of a prophylactic or purificatoiy character practised at ^dSdra^ p. 73 ... should eat meat on that night, and those who...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Cwavs Thanks for raising this issue. Seems like this is an issue from the
simber
library thatytmdl
uses for logging.@loulou310 Just to clarify, struggle finding metadata is probably because of the metadata provider and not because of
ytmdl
. It’s probably because of the language.