Export for RYM

Hi, firstable... I'm new here, but I'm using mp3tag for a very long time and it's a great software.

Ok, I'm using an (edited) export script that I've found on this forum, the code is this:

$filename(html)
<html>
 <head>
  <meta name="GENERATOR" content="Mp3tag - <a href="http://www.mp3tag.de&quot;&gt;" target="_blank">http://www.mp3tag.de"></a>
  <title>%artist% - %album%: cdcover front</title>
 </head>
  <body>
   <style type="text/css">          
      <!--                          
   #border {                        
      position:absolute;            
      top:10px;                     
      left:10px;                    
      width:12cm;                   
      height:12cm;                  
      padding:10px;                 
      border:1px solid #0000FF;     
   }                                
   #content {                       
      position:absolute;            
      top:10px;                     
      left:10px;                    
      width:12cm;                            
      height:12cm;                           
      padding:10px;                          
   }
   #footer {                        
      position:absolute;            
      top:14cm;                     
      font-size:8pt;                                                   
   }                                 
   -->                                                    
   </style>                            
   <div id="border">                  

%artist%: %album% (%year%)

$loop(%_filename_ext%)

 <tr><td><font face="Meiryo UI" size="1">%track%</font></td><td align="center">|<font face="Meiryo UI" size="1">&nbsp;<b>%title%</b>|</font></td>|<td align="right"><font face="Meiryo UI" size="1">%_length%</font></td></tr>

$loopend()

 <tr><td></td><td></td><td align="right"><font face="Meiryo UI" size="1"><b>%_total_time%</b></font></td></tr>
generiert am %_datetime% mit %_app% - dem universellen ID3-Tag Editor www.mp3tag.de

So i can just paste the whole thing on RYM when I edit an album info. The problem is that when the title of the track is in chinese or any non latin character... I get a "?".

How can I resolve this? thanks :slight_smile:

Provided that the script is functional in order, then you can check the font, whether Unicode characters will be shown without problems, probably use another font.
Probably the directive $filename (html) should be adapted to UTF-8.

For the only purpose of copying some text into a web app text edit frame, you do not need to create a html report.
Use the export directive $filename($getEnv('USERPROFILE')'\Desktop\My Report.txt',UTF-8) and export the plain content from the tag-fields.

DD.20120606.0844.CEST

Hi,

I've changed html to utf-8 (the font too), but I still get this:
01 | ???? | 04:40

I can't get the export script to work too...

thanks.

Where do you get the question marks? While displaying the html page in the browser?
What editor do you use? Notepad++ should display Unicode characters, but I am not sure; WordPad does it.
Are you able to manually fill in language specific characters into the RYM edit field, which later on will be displayed correctly on their web page?

DD.20120606.0925.CEST

Yes, while displaying the html page.
I use notepad++.
No, I get ??? even after pasted them.

What html page? The local html page, created by Mp3tag report or the RYM web page?
I am curious what's going on there.
Maybe some other Mp3tag users can help, especially from your region?
Can you put some of such special characters into your next forum post?

This forum should be able to display the correct signs.
Example: 7-Zipのホームページ(日本語)

DD.20120606.1205.CEST

the one created by mp3tag, let me give you an example with some screenshot (korean):
1.jpg this is the screen straight out of mp3tag
2.jpg is the one that came out in html page

7-Zipのホームページ(日本語)



Oops, a little misunderstanding, please copy the filename of the second file from your example album (or from all files) here into your forum post.
If that works, then you can probably do it also on the RYM website.

Why does your screenshot show the Japanese Yen-Backslash but not the Korean Won-Backslash?

I have no problem to fill a tag-field with Japanese characters, report the tag-field into utf-8 text file,


copy the text from the report output file into clipboard and paste it here into the forum message ...
Test: 7-Zipのホームページ(日本語)


Remark:
While in forum edit mode all characters are seen correct, even those in the round brackets.
In forum read mode the characters in the bracket clamb are shown as not displayable.

DD.20120606.1452.CEST



You mean like this:
1/5 | ?? ??| 03:50
2/5 | ?? 4?| 04:59
3/5 | Healing| 02:35
4/5 | Good Night| 04:31
5/5 | ???| 03:49
00:19:44
with attached screen


I don't actually know that...

thanks.


Hm, I think we are not on the right way.
Maybe the export script is not fit enough to display UTF-8 characters.
Did you say the HTML code is functional in order?

Have a look at this picture ...


... it will work ...
... if you put this line into the html head section ...

'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'

DD.20120606.1608.CEST


Thanks, but I can't get it to work...

Here's the code:

$filename(html)
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>%artist% - %album%: cdcover front</title>
 </head>
  <body>
   <style type="text/css">          
      <!--                          
   #border {                        
      position:absolute;            
      top:10px;                     
      left:10px;                    
      width:12cm;                   
      height:12cm;                  
      padding:10px;                 
      border:1px solid #0000FF;     
   }                                
   #content {                       
      position:absolute;            
      top:10px;                     
      left:10px;                    
      width:12cm;                            
      height:12cm;                           
      padding:10px;                          
   }
   #footer {                        
      position:absolute;            
      top:14cm;                     
      font-size:8pt;                                                   
   }                                 
   -->                                                    
   </style>                            
   <div id="border"></div>                  
   <div id="content">  
   <center><h3>%artist%: %album% (%year%)</h3></center>
  <table border="0" style="width:11.7cm;">  

$loop(%_filename_ext%)
     <tr><td><font face="Meiryo UI" size="1">%track%</font></td><td align="center">|<font face="Meiryo UI" size="1">&nbsp;<b>%title%</b>|</font></td>|<td align="right"><font face="Meiryo UI" size="1">%_length%</font></td></tr>
$loopend()
     <tr><td></td><td></td><td align="right"><font face="Meiryo UI" size="1"><b>%_total_time%</b></font></td></tr>
   </table>
  </div>
  <div id="footer">generiert am %_datetime% mit %_app% - dem <b>universellen</b> ID3-Tag Editor <a href="http://www.mp3tag.de/">www.mp3tag.de</a></div>
 </body>
</html>Is it the same that you've used? 

thanks.

Read my post #2 above.
Obviously you do not write the report as UTF-8 encoded text file, and there is missing the BOM mark.

Look at this working Mp3tag report script ...

$filename($getEnv('USERPROFILE')'\Desktop\Test.html',UTF-8)
'<html>'
'<head>'
'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'
'<title>'%ARTIST%' - '%ALBUM%': cd cover front</title>'
'</head>'
'<body>'
'<style type="text/css"><!--'
'#border{position:absolute;top:10px;left:10px;width:12cm;height:12cm;padding:
10px;border:1px solid #0000FF;}'
'#content{position:absolute;top:10px;left:10px;width:12cm;height:12cm;padding
:10px;}'
'#footer{position:absolute;top:14cm;font-size:8pt;}'
'--></style>'
'<div id="border">'

'

'
'

'%ARTIST%': '%ALBUM%[' ('%YEAR%')']'

'
''
$loop(%_filename_ext%)
''
''
''
''
''
$loopend()
''
''
''
''
''
'
'%TRACK%''%TITLE%''%_length%'
'%_total_time%'
'
'
'
''
''

DD.20120606.1650.CEST

QUOTE (DetlevD @ Jun 6 2012, 16:50) <{POST_SNAPBACK}>
Read my post #2 above.

Obviously you do not write the report as UTF-8 encoded text file, and there is miissing the BOM mark.

Look at this working Mp3tag report script ...

$filename($getEnv('USERPROFILE')'\Desktop\Test.html',UTF-8)
'<html>'
'<head>'
'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'
'<title>'%ARTIST%' - '%ALBUM%': cd cover front</title>'
'</head>'
'<body>'
'<style type="text/css"><!--'
'#border{position:absolute;top:10px;left:10px;width:12cm;height:12cm;padding:
10px;border:1px solid #0000FF;}'
'#content{position:absolute;top:10px;left:10px;width:12cm;height:12cm;padding
:10px;}'
'#footer{position:absolute;top:14cm;font-size:8pt;}'
'--></style>'
'<div id="border">'

'

'
'

'%ARTIST%': '%ALBUM%[' ('%YEAR%')']'

'
''
$loop(%_filename_ext%)
''
''
''
''
''
$loopend()
''
''
''
''
''
'
'%TRACK%''%TITLE%''%_length%'
'%_total_time%'
'
'
'
''
''

DD.20120606.1650.CEST
Thanks, is working now :slight_smile:



... but it looks not so very nice, because of the confused used pipe symbols.

The CD cover could look a little bit better without the pipe symbols ...


DD.20120606.1920.CEST


You see, for rym you need to put those | symbols. It's because of that that I've edited (badly) that script.
It need to be put in like this:
track number|title|lenght.

Note: The HTML code in the MTE export file, which you have offered, and which I have tried to make it run, contains invalid HTML code.

If you really need a CD cover, then use this mte script, which produces valid HTML code ...
20120606.CD.cover.zip (772 Bytes)


If you only need formatted data to put it into the RYM web page ...
20120607.FormatDataForRYM.zip ( 780bytes ) Number of downloads: 6
Find the current version there ...
Export for RYM

DD.20120607.0941.CEST
Edit.20120608.0757.CEST

20120606.CD.cover.zip (772 Bytes)


Wow thanks, the second one is perfect!

Here comes the same output with a little bit more comfort ...
... I've added a button for "copy text to clipboard".
20120607.FormatDataForRYM.2.zip ( 1.09K ) Number of downloads: 2
DD.20120607.1255.CEST

Here comes a version, which provides four output formats and buttons for "Copy to Clipboard" ...
20120607.FormatDataForRYM.zip (1.45 KB)



DD.20120607.1630.CEST

20120607.FormatDataForRYM.zip (1.45 KB)