Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error downloading song (Latin-1) #314

Open
davidscherf opened this issue Jan 30, 2024 · 4 comments
Open

Error downloading song (Latin-1) #314

davidscherf opened this issue Jan 30, 2024 · 4 comments

Comments

@davidscherf
Copy link

Describe the bug
Search a song you do not have
AEce22afpbU

The song never downloads
Console output says latin-1 codec can't encode character '\uff5c' in position 69: ordinal not in range(256)

To Reproduce

  1. Search on phone for song
  2. Select download an queue
  3. See error on console

Expected behavior
Download the video and queue it

Screenshots
image

Platform

  • OS: Raspberry PI 400
  • OS version: Raspberry PI OS 5.1
  • Browser: chrome
  • Youtube Downloader: 2023.12.30

Additional context
Seems to be a bug report from 2022 about this issue here yt-dlp/yt-dlp#5341

@Hartebee5t
Copy link
Contributor

Hartebee5t commented Jan 30, 2024

I don't know how my setup makes a difference but I've just tried that same youtube URL (including the AEce22afpbU part) and it downloaded and played on my Pi 5 using my Android phone as the browser for the app. The track is a Karafun edition of Under The Bridge.
I know I'm a minor version or two behind the PiKaraoke curve (mine still needs the '-prefer-ip' switch) and there are probably a few updates available on the main OS.

Regards
David

@vicwomg
Copy link
Owner

vicwomg commented Feb 1, 2024 via email

@Franck77590
Copy link

Hello, i've the same issue with vietnamese or french songs (like karafun)
If the name of the song have | (pipe) or * (asterisk)
image

my log :

ERROR: 'latin-1' codec can't encode character '\uff0a' in position 71: ordinal not in range(256)
[2024-08-03 12:12:28] ERROR: Error code while downloading, retrying once...
ERROR: 'latin-1' codec can't encode character '\uff0a' in position 71: ordinal not in range(256)
[2024-08-03 12:12:37] ERROR: Error downloading song: https://www.youtube.com/watch?v=ZocabPIVreU
[2024-08-03 12:13:08] INFO: Downloading video: https://www.youtube.com/watch?v=AEz6BfE4__U
ERROR: 'latin-1' codec can't encode character '\uff0a' in position 66: ordinal not in range(256)
[2024-08-03 12:13:17] ERROR: Error code while downloading, retrying once...
ERROR: 'latin-1' codec can't encode character '\uff0a' in position 66: ordinal not in range(256)
[2024-08-03 12:13:24] ERROR: Error downloading song: https://www.youtube.com/watch?v=AEz6BfE4__U
[2024-08-03 12:15:21] INFO: Song ending: karaok▒ daniel balavoine le chanteur
[2024-08-03 12:16:31] INFO: Downloading video: https://www.youtube.com/watch?v=AEz6BfE4__U
ERROR: 'latin-1' codec can't encode character '\uff0a' in position 66: ordinal not in range(256)
[2024-08-03 12:16:39] ERROR: Error code while downloading, retrying once...
ERROR: 'latin-1' codec can't encode character '\uff0a' in position 66: ordinal not in range(256)
[2024-08-03 12:16:48] ERROR: Error downloading song: https://www.youtube.com/watch?v=AEz6BfE4__U
[2024-08-03 12:16:57] INFO: Searching YouTube for: karafun karaoke
[2024-08-03 12:17:03] INFO: Downloading video: https://www.youtube.com/watch?v=T3YBQqc9xLg
ERROR: 'latin-1' codec can't encode character '\uff5c' in position 65: ordinal not in range(256)
[2024-08-03 12:17:11] ERROR: Error code while downloading, retrying once...
[2024-08-03 12:17:15] INFO: Searching YouTube for: karafun karaoke
ERROR: 'latin-1' codec can't encode character '\uff5c' in position 65: ordinal not in range(256)
[2024-08-03 12:17:18] ERROR: Error downloading song: https://www.youtube.com/watch?v=T3YBQqc9xLg
[2024-08-03 12:18:35] INFO: Song ending: None

In raspi-config i tried to add/change local zone (with reboot) but i've got the same issue.
image
image

Tested from mobile phone android, ipad mini4 and Pc win11+chrome
i think the problem is from the server not the client.

Do you have an idea ?

my configuration 👍
raspberry Pi4
image

@Franck77590
Copy link

i found a solution.

when using "raspi PI imager" to flash RaspiOS on SD/USB , don't use "local settings"
image

before i change settings to

  • _Europe/Paris
  • fr_

i don't changed this setting and download/playing are working with special characters

exemple :
vietnamese characters
image
or (asterisk)
image
or (pipe)
image

it will be a good idea to explain that in README.md :p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants