View Single Post
Old 10-30-2023, 04:17 PM   #10
Lichtsucher
Junior Member
Lichtsucher began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2023
Location: Germany - Saarland
Device: android-handy
Solution attempt

original german text see below (english translation by Deepl)

I have tried to find the solution to the problem myself.
I point out that I have no knowledge in Pyton, I just looked for places in the code that contain the relevant identifiers:
composer, author, artist, narrator, TPE1 (=artist), TCOM (=composer).
Since in my opinion the contents of "narrator" and "author" were interchanged I searched for the relevant places.
I made changes in the following files:
config.py
m3u_utils.py

I give here only the changed line texts (see below).

Ich habe versucht selbst die Lösung des Problemes zu finden.
Ich weise darauf hin, dass ich keine Kenntnis in Pyton habe, ich habe lediglich nach Stellen im Code gesucht, die die relevanten Bezeichner enthalten:
composer, author, artist, narrator, TPE1 (=artist), TCOM (=composer)
Da nach meiner Meinung die Inhalte von "narrator" und "author" vertauscht wurden habe ich die entsprechenden Stellen gesucht.
Bei folgenden Dateien habe ich Änderungen vorgenommen:
config.py
m3u_utils.py

Ich gebe hier nur die geänderten Zeilentexte an.
________________________________________________
config.py:
Zeile 251 - 254 ->
self.narratorGroupBox.setToolTip(_translate("Dialo g", "The narrator of the audiobook.\n"
"Audio M3U assumes this is stored in the \'artist\' field in the audio file tag.\n"
"It is recommend that the column type is \'ampersand separated text\' so that multiple\n"
"narrators can be easily specified."))

m3u_utils.py:

Zeile 25 - 31 ->
# audio.info.pprint()
if "TPE1" in audio:
tagvals["narrator"] = audio["TPE1"][0]
if "TALB" in audio:
tagvals["title"] = audio["TALB"][0]
if "TCOM" in audio:
tagvals["author"] = audio["TCOM"][0]

Zeile 51 - 57 ->
# audio.info.pprint()
if "\xa9ART" in audio:
tagvals["narrator"] = audio["\xa9ART"][0]
if "\xa9alb" in audio:
tagvals["title"] = audio["\xa9alb"][0]
if "\xa9wrt" in audio:
tagvals["author"] = audio["\xa9wrt"][0]

Zeile 226 - 232 ->
# audio.info.pprint()
if "author" in keys:
audio["composer"] = update_fields["author"]
if "title" in keys:
audio["album"] = update_fields["title"]
if "narrator" in keys:
audio["artist"] = update_fields["narrator"]

The attached file contains the modified plugin.
Die angehänge Datei enthält das modifizierte Plugin.
Attached Files
File Type: zip Audio M3U.zip (1.47 MB, 52 views)
Lichtsucher is offline   Reply With Quote