# Web Source script exits abruptly in a loop with camel case capitalization

**URL:** https://community.mp3tag.de/t/web-source-script-exits-abruptly-in-a-loop-with-camel-case-capitalization/43622
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [November 20, 2018, 2:59pm UTC](https://community.mp3tag.de/t/web-source-script-exits-abruptly-in-a-loop-with-camel-case-capitalization/43622 "2018-11-20T14:59:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![vikaesar](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vikaesar/32/5892_2.png) [@vikaesar](https://community.mp3tag.de/u/vikaesar)
#### Post date: [November 20, 2018, 2:59pm UTC](https://community.mp3tag.de/t/web-source-script-exits-abruptly-in-a-loop-with-camel-case-capitalization/43622/1 "2018-11-20T14:59:12Z")

</div>

Hi,

I've come across a weird bug while writing a web source script for Google Play Music, which can be downloaded [here](https://community.mp3tag.de/t/ws-google-play-music/43609) for testing purposes.

The thing is that I use camel case for keywords as shown in Mp3tag help documentation. Well, this causes an abrupt exit without error (`output["Error"]= "<OK>"`) in the very same line where a loop is used. Specifically, these loops cause an error:

- If-Else-Endif
- IfOutput-Endif

but not if they are rewritten as follows:

- if-else-endif
- ifoutput-endif

PS: The same behavior is observed both in Mp3tag v2.90a as in v2.90e.

---

<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: [November 21, 2018, 11:53am UTC](https://community.mp3tag.de/t/web-source-script-exits-abruptly-in-a-loop-with-camel-case-capitalization/43622/2 "2018-11-21T11:53:32Z")

</div>

Thanks for reporting! I'll fix it to the next release.

Thanks also for the updated Google Play Music tag source! Much appreciated 🙂

---

<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: [November 24, 2018, 10:41am UTC](https://community.mp3tag.de/t/web-source-script-exits-abruptly-in-a-loop-with-camel-case-capitalization/43622/3 "2018-11-24T10:41:47Z")

</div>

I've fixed the issue with [Mp3tag v2.90f](https://community.mp3tag.de/t/455).

---

<div class="post-metadata">

### Author: ![vikaesar](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vikaesar/32/5892_2.png) [@vikaesar](https://community.mp3tag.de/u/vikaesar)
#### Post date: [November 24, 2018, 12:29pm UTC](https://community.mp3tag.de/t/web-source-script-exits-abruptly-in-a-loop-with-camel-case-capitalization/43622/4 "2018-11-24T12:29:07Z")

</div>

Thank you for fixing it so fast.

I'll change the tag source when you release the next stable version. It's just a minor inconvenience, anyways.

---

<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, 2:12pm UTC](https://community.mp3tag.de/t/web-source-script-exits-abruptly-in-a-loop-with-camel-case-capitalization/43622/5 "2018-12-28T14:12:33Z")

</div>

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