# \[F\] %\_LENGTH% did not work

**URL:** https://community.mp3tag.de/t/f-length-did-not-work/4847
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [May 9, 2007, 4:12am UTC](https://community.mp3tag.de/t/f-length-did-not-work/4847 "2007-05-09T04:12:07Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![papepo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/ccd318/32.png) [@papepo](https://community.mp3tag.de/u/papepo)
#### Post date: [May 9, 2007, 4:12am UTC](https://community.mp3tag.de/t/f-length-did-not-work/4847/1 "2007-05-09T04:12:07Z")

</div>

in the Tag-Filename window with version 2.38.

I wanted to use it like this:

```
$if($eql($len(%_length%),8),$replace($mid(%_length%,2,2),_,h)$replace($right(%_length%,5),_,m)s,$replace(%_length%,_,m)s)

```

for converting 1:03:08 to 1h03m08s.

---

<div class="post-metadata">

### Author: ![zencd](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zencd/32/88_2.png) [@zencd](https://community.mp3tag.de/u/zencd)
#### Post date: [May 9, 2007, 1:31pm UTC](https://community.mp3tag.de/t/f-length-did-not-work/4847/2 "2007-05-09T13:31:12Z")

</div>

Strange subject, %\_length% works fine for me

---

<div class="post-metadata">

### Author: ![papepo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/ccd318/32.png) [@papepo](https://community.mp3tag.de/u/papepo)
#### Post date: [May 10, 2007, 4:24am UTC](https://community.mp3tag.de/t/f-length-did-not-work/4847/3 "2007-05-10T04:24:15Z")

</div>

Thank you for the reply.

It worked fine for me with the version of 2.37a or below, but 2.38..., no.

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [May 10, 2007, 9:59am UTC](https://community.mp3tag.de/t/f-length-did-not-work/4847/4 "2007-05-10T09:59:05Z")

</div>

For some reason, %\_length% doesn't work in the Tag-Filename converter; at least not with my FLAC files. It works in the file grid, though.

Anyways, why are you replacing underscores with h, m and s instead of colons?

---

<div class="post-metadata">

### Author: ![papepo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/ccd318/32.png) [@papepo](https://community.mp3tag.de/u/papepo)
#### Post date: [May 10, 2007, 12:50pm UTC](https://community.mp3tag.de/t/f-length-did-not-work/4847/5 "2007-05-10T12:50:14Z")

</div>

> [@Sebastian Mares](#):
>
> Anyways, why are you replacing underscores with h, m and s instead of colons?

Colons are automatically replaced with underscores by Mp3tag in the Tag-Filename converter.  
So I am re-replacing them.

Thank you.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [June 16, 2007, 6:17pm UTC](https://community.mp3tag.de/t/f-length-did-not-work/4847/6 "2007-06-16T18:17:27Z")

</div>

%\_length% is [back](http://developer.mp3tag.de) 🙂

---

<div class="post-metadata">

### Author: ![papepo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/ccd318/32.png) [@papepo](https://community.mp3tag.de/u/papepo)
#### Post date: [June 17, 2007, 11:15am UTC](https://community.mp3tag.de/t/f-length-did-not-work/4847/7 "2007-06-17T11:15:32Z")

</div>

It works fine now with 2.38a.

Thank you very much! 🙂

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 28, 2018, 1:57pm UTC](https://community.mp3tag.de/t/f-length-did-not-work/4847/8 "2018-12-28T13:57:03Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
