question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ytmdl cannot download music with non-English characters.

See original GitHub issue

Bug 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:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
deepjyoti30commented, Mar 8, 2022

@Cwavs Thanks for raising this issue. Seems like this is an issue from the simber library that ytmdl uses for logging.

0reactions
deepjyoti30commented, Apr 3, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found