Tzahi12345 / YoutubeDL-Material

Self-hosted YouTube downloader built on Material Design
MIT License
2.65k stars 276 forks source link

[BUG] Subscriptions to channels fails when the channel name includes Japanese characters apparently #407

Open GlassedSilver opened 3 years ago

GlassedSilver commented 3 years ago

Describe the bug See title :)

To Reproduce Steps to reproduce the behavior: Tried to subscribe to a Japanese named channel and got this in the logs:

ERROR: Subscribe: Failed to get subscription info. Subscribe failed.

Environment

Additional context the context is that I'm surprised this is the first time I actually encountered this issue, being a weeb. Guess all the other channels I added so far simply stick to romaji style naming. heh

Tzahi12345 commented 3 years ago

Mind providing an example link? Shouldn't be too hard to debug once I have that.

GlassedSilver commented 3 years ago

Okay it is not the problem of Japanese characters in general.

I'll email ya the (sketchy) channel in question. :P

GlassedSilver commented 3 years ago

Sent the mail. One thing to note, the sub does appear in the list, noting that channel name retrieval is in process, but that never succeeded (granted, wasn't THAT patient, but the log entry had me suspect it'd be in vain)

Tzahi12345 commented 3 years ago

image

Huh, it worked for me!

Something you can try is to set the subscription name yourself:

image

GlassedSilver commented 3 years ago

Hmm, weird. What environment are you using?

Maybe I'll just retry the sub a little later. I could try setting a custom name, but I'd be curious to catch a possible bug here if you don't mind. :P

pulling out a magnifying glass and an old pipe from my trench coat

Tzahi12345 commented 3 years ago

May be related to (or a duplicate of) #191

GlassedSilver commented 3 years ago

Experienced this again on this sub: https://www.youtube.com/channel/UC_T1YqknD5yrpVlupc-ZXzg (haven't tried the previous one again so far)

was able to add the name of the sub manually, BUT the resulting sub entry in the database has no archive path stored.

Added that manually along with an archive.txt within it filled with some downloads following the scheme strictly, but the file is ignored apparently as it's not being written to. So not sure if this is some super wonky issue.

GlassedSilver commented 3 years ago

Good news, turns out with a little bit of patience I could actually notice that ytdl-m did write into the archive file I created manually!

Excellent! Still gotta get down to the reason of characters messing with the sub registering process, maybe it's the channel name extraction logic not picking up the name when there's only UTF-8 characters in the title? latin + foreign alphabets mixed seems fine after all, the consistency seems to be (at least with me) that titles with ONLY Japanese titles seem to throw it all off.

I'll definitely try with more channels that I intend to store anyways that would fit that scheme as I go along.

Maybe some setting affects this?

huitousha commented 5 months ago

遇到同样问题,解决了吗?