IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [X] Single quote in export filename causes error, V2.44
chrisjj
post Jan 4 2010, 02:11
Post #1


Member


Group: Full Members
Posts: 1505
Joined: 25-October 05
Member No.: 2273
Mp3tag Version: -



Export to e.g. my'name.htm actually writes to the filename [ SYNTAX
ERROR IN FORMATTING STRING ]
.

Workaround: replace ' with '' .

Whilst there's no mention of this restriction in Help, this discrepancy is a bug.


This post has been edited by chrisjj: Jan 4 2010, 02:13
Go to the top of the page
 
+Quote Post
Florian
post Jan 10 2010, 15:06
Post #2


Developer


Group: Admin
Posts: 7795
Joined: 12-December 01
From: Germany, Dresden
Member No.: 203
Mp3tag Version: 2.70



It's a format string so ' is treated as special character as explained at http://help.mp3tag.de/main_scripting.html


--------------------
♫ If you like using Mp3tag please donate to support further development.

Go to the top of the page
 
+Quote Post
chrisjj
post Jan 10 2010, 15:18
Post #3


Member


Group: Full Members
Posts: 1505
Joined: 25-October 05
Member No.: 2273
Mp3tag Version: -



> It's a format string

Evidently so.

Whilst there's no mention of this in Help, this discrepancy is a bug.
Go to the top of the page
 
+Quote Post
thaw04
post Jan 12 2015, 15:11
Post #4


Member


Group: Full Members
Posts: 10
Joined: 11-March 13
Member No.: 17676
Mp3tag Version: 2.54



I agree with chrisjj. The workaround also doesn't work for me though. For example, the action below gives me the same error because of the single quote:

Format value:
GENRE
$if($eql(%artist%,Ama'dou & Mariam),African,%genre%)

I tried it with the following workarounds but without a positive result:

- $if($eql(%artist%,"Ama'dou & Mariam"),African,%genre%)
- $if($eql(%artist%,Ama"dou & Mariam),African,%genre%)

It this possible in another way or should i stick with my workaround now (removing all the artist in the actions with an ' )

Thanks in advance

This post has been edited by thaw04: Jan 12 2015, 15:11
Go to the top of the page
 
+Quote Post
ohrenkino
post Jan 12 2015, 17:19
Post #5


Member


Group: Full Members
Posts: 5755
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.70



ZITAT(thaw04 @ Jan 12 2015, 15:11) *
I agree with chrisjj. The workaround also doesn't work for me though. For example, the action below gives me the same error because of the single quote:

Format value:
GENRE
$if($eql(%artist%,Ama'dou & Mariam),African,%genre%)

I tried it with the following workarounds but without a positive result:

- $if($eql(%artist%,"Ama'dou & Mariam"),African,%genre%)
- $if($eql(%artist%,Ama"dou & Mariam),African,%genre%)

It this possible in another way or should i stick with my workaround now (removing all the artist in the actions with an ' )

Thanks in advance

the single ' should become a double '
Ama''dou & Mariam
with 2 apostrophes should work


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
chrisjj
post Jan 12 2015, 17:50
Post #6


Member


Group: Full Members
Posts: 1505
Joined: 25-October 05
Member No.: 2273
Mp3tag Version: -



QUOTE (thaw04 @ Jan 12 2015, 15:11) *
I agree with chrisjj. The workaround also doesn't work for me though. For example, the action below gives me the same error because of the single quote:

Format value:
GENRE
$if($eql(%artist%,Ama'dou & Mariam),African,%genre%)


That's a different case, and is expected behaviour give that the string is declared to be interpreted as a format string.
Go to the top of the page
 
+Quote Post
thaw04
post Jan 14 2015, 19:41
Post #7


Member


Group: Full Members
Posts: 10
Joined: 11-March 13
Member No.: 17676
Mp3tag Version: 2.54



That did work, thanks a lot!!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 7th July 2015 - 18:34