# Returned slashes from the inline plugin

**URL:** <https://discourse.beets.io/t/returned-slashes-from-the-inline-plugin/1455>\
**Category:** Help\
**Created:** [August 4, 2020, 11:55pm UTC](https://discourse.beets.io/t/returned-slashes-from-the-inline-plugin/1455 "2020-08-04T23:55:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidGA](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/davidga/32/457_2.png) [@DavidGA](https://discourse.beets.io/u/DavidGA)\
**Post date:** [August 4, 2020, 11:55pm UTC](https://discourse.beets.io/t/returned-slashes-from-the-inline-plugin/1455/1 "2020-08-04T23:55:16Z")

</div>

When using the “inline” plugin, foward slashes “/” in returned strings are converted to underscores. “\_”

Is there any way to stop this behavior?

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [August 5, 2020, 12:14am UTC](https://discourse.beets.io/t/returned-slashes-from-the-inline-plugin/1455/2 "2020-08-05T00:14:39Z")

</div>

No, that’s not currently possible. All interpolated fields in path templates are sanitized so that they cannot create “surprise” directories. Sometimes it’s possible to accomplish what you want with `%if`, like in this setup:  
[https://beets.readthedocs.io/en/stable/faq.html#create-disc-n-directories-for-multi-disc-albums](https://beets.readthedocs.io/en/stable/faq.html#create-disc-n-directories-for-multi-disc-albums)

---

<div class="post-metadata">

**Author:** ![DavidGA](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/davidga/32/457_2.png) [@DavidGA](https://discourse.beets.io/u/DavidGA)\
**Post date:** [August 5, 2020, 12:34am UTC](https://discourse.beets.io/t/returned-slashes-from-the-inline-plugin/1455/3 "2020-08-05T00:34:42Z")

</div>

Feature request then: Allow forward slashes for people who want surprise directories. 🙂

---

<div class="post-metadata">

**Author:** ![DavidGA](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/davidga/32/457_2.png) [@DavidGA](https://discourse.beets.io/u/DavidGA)\
**Post date:** [August 5, 2020, 12:40am UTC](https://discourse.beets.io/t/returned-slashes-from-the-inline-plugin/1455/4 "2020-08-05T00:40:35Z")

</div>

So I’m trying to work around this limitation and I’m getting errors I don’t understand. What’s wrong with this syntax?

```
item_fields:
    testfield: "Hello" if varname == "World"

```

I get the error:

```
config.yaml could not be read: while parsing a block mapping

```

and:

```
expected <block end>, but found '<scalar>'
```

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [August 5, 2020, 1:03am UTC](https://discourse.beets.io/t/returned-slashes-from-the-inline-plugin/1455/5 "2020-08-05T01:03:19Z")

</div>

Try quoting the value string.

---

<div class="post-metadata">

**Author:** ![DavidGA](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/davidga/32/457_2.png) [@DavidGA](https://discourse.beets.io/u/DavidGA)\
**Post date:** [August 5, 2020, 1:10am UTC](https://discourse.beets.io/t/returned-slashes-from-the-inline-plugin/1455/6 "2020-08-05T01:10:47Z")

</div>

Sorry, I’m not sure what you mean. I seem to have already quoted all the quotable parts.

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [August 5, 2020, 1:23am UTC](https://discourse.beets.io/t/returned-slashes-from-the-inline-plugin/1455/7 "2020-08-05T01:23:05Z")

</div>

You want more quotes around the entire right-hand side. 🙂 This is YAML syntax, so examples of other YAML files might help…
