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

Not sure how to call this.. UTF-8 Support in stream names? #10

Open
FaceCrap opened this issue Jun 29, 2024 · 5 comments
Open

Not sure how to call this.. UTF-8 Support in stream names? #10

FaceCrap opened this issue Jun 29, 2024 · 5 comments

Comments

@FaceCrap
Copy link

FaceCrap commented Jun 29, 2024

I've been trying to find out how stream name encoding can be influenced, but I can't seem to find out where or how.

This is the situation...

Stream Tunin Name is Qmusic België
Stream Tunin ID is s2398

Now, the name gets displayed everywhere as Qmusic België, but, what surprised me is that the folder(s) where the mtag(s) got saved show the name correctly, namely
Qmusic België - 1237993146 and Qmusic België - 2019740986, and all of the files in these folders also show the name with the accent.
They also show correctly in the playlist entries but, not in the group header.

image

So, somehow Footuner is able to use the UTF-8 version of the name to create the m-Tag folder and filenames, but fails everywhere else.
Now, I've been going through the code three ways from Sunday, but for the life of me can't figure out how you did that.
I'm dying to find out how you managed that because I've modified myhistory.js to create individual history logs for each radio station instead of dumping every played track in one file.
And of course, here I run into the same damn issue that the filename ends up as Qmusic België.txt.
Besides this, I would love it if I could fix the name display everywhere else this might occur, but I fear that where it depends on plain title formatting that won't fly as I suspect this is some javascript trick I can't use in the panels which title formatting.

@smoralis
Copy link
Owner

It has to do with character escaping in the bat file that creates the m-tag file.

For the meantime , until it is properly addressed,
Select the playlist entry.
Right click and open containing folder.
Open the Qmusic België - 1237993146.tags file with a text editor and fix STREAM_TUNEIN_NAME value.

@FaceCrap
Copy link
Author

FaceCrap commented Jun 29, 2024

It has to do with character escaping in the bat file that creates the m-tag file.

I looked at the bat file too, but man, that's way beyond my shell scripting level 😲

Open the Qmusic België - 1237993146.tags file with a text editor and fix STREAM_TUNEIN_NAME value.

That's what I did when all else failed to see where it happened. That fixed at least the displaying, but I found out it's not entirely FooTuner nor FB2K's fault... Because there's another station too with an accented character that shows just fine..

EDIT: I keep forgetting to mention this. I had updated Streamwriter and it wouldn't show up after updating. Reverted to the included version and it worked again.
I found that strange as it is just the exe that needs replacing. Turns out that you need to run it once manually as there's a First Run popup showing if you put in a newer version...
Beats my why it thinks it needs to show one, as it's clearly not the first time I ran it... but, it's something to mention in the readme. Already posted it on the forum in the only topic I could find mentioning FooTuner.

PS. Do you have some kind of support link? I've been using FooTuner for soo long now (ever since it was still called FooTuneIn) that it's about time I do something to show my appreciation. Still loving it tremendously.

@smoralis
Copy link
Owner

Thanks for your observation about StreamWriter. I will update the readme.

I don't have any support link.

@FaceCrap
Copy link
Author

FaceCrap commented Jun 30, 2024

I don't have any support link.

Not even a PayPal.me link? I just feel I need to give you something, I'm sure this must have taken a lot of your time researching how to get all the station info.
Not to mention all of the coding, even though some things are modifications of already existing code. It just feels wrong not to do something back.

Oops, stupid mouse slipped 😄

@FaceCrap FaceCrap reopened this Jun 30, 2024
@smoralis
Copy link
Owner

No need to give me something , your appreciation comments are enough.
I do it as a hobby , in my spare time , I'm not a professional programmer.

If you feel the need you could donate your amount to any charity of your choice or perhaps buy a meal/coffee to someone in need.
Don't get me wrong, I'm not rich ...

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

2 participants