Jellyfin Forum
SOLVED: Non-english metadata - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: SOLVED: Non-english metadata (/t-solved-non-english-metadata)



Non-english metadata - winterhymnal11 - 2023-06-20

Please take a look in the screenshot. You can see that the characters are not coming out correctly. However, they do display correctly in the path. Can someone give me a direction on how to fix this issue or edit them quickly? There are too many to do one by one. 

Thank you!


RE: Non-english metadata - Venson - 2023-06-21

What metadata Provider did you use to identify this audio?


RE: Non-english metadata - winterhymnal11 - 2023-06-22

Initially, I imported the music files into the location and scanned the library with Musicbrainz and TheAudioDB. Then I deleted the files, and re-scanned the library with one and then repeated with the other. I deleted the files and re-scanned again with both metadata off. All options yielded the same result. When I search the metadata database manually in "identify", the correct metadata does show up.


RE: Non-english metadata - Venson - 2023-06-22

(2023-06-22, 01:26 PM)winterhymnal11 Wrote: Initially, I imported the music files into the location and scanned the library with Musicbrainz and TheAudioDB. Then I deleted the files, and re-scanned the library with one and then repeated with the other. I deleted the files and re-scanned again with both metadata off. All options yielded the same result. When I search the metadata database manually in "identify", the correct metadata does show up.

Well i have some issues copying the name of the album, could you check on  Home | TheAudioDB.com if the data is actually there and correctly formatted? I assume this might be an issue with the charset the albums data and it does not like them.


RE: Non-english metadata - winterhymnal11 - 2023-06-22

Ok, I see that not all the albums are available. I see on MusicBrainz, most albums are available: Владимир Высоцкий. Is there a way to ignore the metadata and just take the information from the file names? Because that is all I want. I don't care if they are not "synced" to a metadata database.


RE: Non-english metadata - Venson - 2023-06-22

(2023-06-22, 01:38 PM)winterhymnal11 Wrote: Ok, I see that not all the albums are available. I see on MusicBrainz, most albums are available: Владимир Высоцкий. Is there a way to ignore the metadata and just take the information from the file names? Because that is all I want. I don't care if they are not "synced" to a metadata database.

Sure just disable the metadata Downloaders in your library


RE: Non-english metadata - winterhymnal11 - 2023-06-22

Unfortunately, that's not working either. Here are the steps I've taken: 

1. Deleted the audio files from the library
2. Re-scanned the library (no longer in Jellyfin)
3. Deleted the metadata files from var/lib/jellyfin/metadata
4. Un-checked/disabled all metadata providers from my music library (see screenshots)
5. Copied files back into library
6. Re-scan
7. Metadata is still not from the filenames


RE: Non-english metadata - Venson - 2023-06-22

(2023-06-22, 02:11 PM)winterhymnal11 Wrote: Unfortunately, that's not working either. Here are the steps I've taken: 

1. Deleted the audio files from the library
2. Re-scanned the library (no longer in Jellyfin)
3. Deleted the metadata files from var/lib/jellyfin/metadata
4. Un-checked/disabled all metadata providers from my music library (see screenshots)
5. Copied files back into library
6. Re-scan
7. Metadata is still not from the filenames

Oh no, metadata is not pulled from the filename but from the embedded fields of the media file.


RE: Non-english metadata - winterhymnal11 - 2023-06-22

Ok I understand now. I ended up fixing the metadata tags using a python script. Works like a charm now!

Code:
import eyed3
from pathlib import Path
from glob import glob

directory = "./music/Высоцкий Владимир"

results = glob(directory + '/**/*.mp3',recursive = True)

for path in results:
    print("\n", path)

    album = Path(path).parts[2]
    title = Path(path).parts[3]

    audiofile = eyed3.load(path)
    audiofile.tag.album = album
    audiofile.tag.title = title
    audiofile.tag.artist = "Владимир Высоцкий"
    audiofile.tag.save(encoding="utf-8")