# Web Sources Discussion

**URL:** https://community.mp3tag.de/c/development/web-sources-discussion/15.md?page=4

[Latest](https://community.mp3tag.de/latest.md) · [Categories](https://community.mp3tag.de/categories.md) · [Tags](https://community.mp3tag.de/tags.md)

**Page:** 5

---

## [How can I keep leading and trailing spaces in a parsed string?](https://community.mp3tag.de/t/how-can-i-keep-leading-and-trailing-spaces-in-a-parsed-string/55491)

<div class="topic-metadata">

**Author:** [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Replies:** 11\
**Last updated:** [January 14, 2022, 4:04pm UTC](https://community.mp3tag.de/t/how-can-i-keep-leading-and-trailing-spaces-in-a-parsed-string/55491 "2022-01-14T16:04:41Z")

</div>

I'm still learning the syntax of the Web Source language. If I parse a JSON result, I get a string called JOINPHRASE which can include leading and trailing spaces like in the string " feat. " (which would be space feat.…

---

## [Web Sources Framework: Help needed](https://community.mp3tag.de/t/web-sources-framework-help-needed/10944)

<div class="topic-metadata">

**Author:** [@sundance](https://community.mp3tag.de/u/sundance)\
**Replies:** 9\
**Last updated:** [January 12, 2022, 9:00am UTC](https://community.mp3tag.de/t/web-sources-framework-help-needed/10944 "2022-01-12T09:00:45Z")

</div>

Hello, I would like to iterate through a HTML table that looks like this: . . Info 1a Info 1b Info 2a Info 2b . . (there could be blank lines in between, also) I tried with something like …

---

## [How to detect the last iteration in a loop?](https://community.mp3tag.de/t/how-to-detect-the-last-iteration-in-a-loop/55543)

<div class="topic-metadata">

**Author:** [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Replies:** 2\
**Last updated:** [December 16, 2021, 8:44pm UTC](https://community.mp3tag.de/t/how-to-detect-the-last-iteration-in-a-loop/55543 "2021-12-16T20:44:07Z")

</div>

I would like to add multiple values to the same variable in a loop (separated by a slash) from this JSON data: Currently, I know 2 ways to do that: 1.) Using json\_select\_many which works perfectly fine for the catalo…

---

## [Write multiple tags of the same name to a single track](https://community.mp3tag.de/t/write-multiple-tags-of-the-same-name-to-a-single-track/55506)

<div class="topic-metadata">

**Author:** [@mr\_bug](https://community.mp3tag.de/u/mr_bug)\
**Replies:** 3\
**Last updated:** [December 16, 2021, 5:08pm UTC](https://community.mp3tag.de/t/write-multiple-tags-of-the-same-name-to-a-single-track/55506 "2021-12-16T17:08:27Z")

</div>

Something I'd like to see improved is the ability to write to multiple tags of the same name to a single track via the script. Currently, one writes to a single tag with a unique string of characters between each value (…

---

## [How to Say to output without trimming whitespace?](https://community.mp3tag.de/t/how-to-say-to-output-without-trimming-whitespace/53276)

<div class="topic-metadata">

**Author:** [@mr\_bug](https://community.mp3tag.de/u/mr_bug)\
**Replies:** 8\
**Last updated:** [December 13, 2021, 3:37pm UTC](https://community.mp3tag.de/t/how-to-say-to-output-without-trimming-whitespace/53276 "2021-12-13T15:37:08Z")

</div>

I'm trying to write a JSON web sources script but I'm having an issue being able to output the current line/value as-is without any whitespace trimming happening. A random example of a MusicBrainz release in JSON: https…

---

## [How to change between sub item levels in JSON content?](https://community.mp3tag.de/t/how-to-change-between-sub-item-levels-in-json-content/55476)

<div class="topic-metadata">

**Author:** [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Replies:** 1\
**Last updated:** [December 11, 2021, 8:28am UTC](https://community.mp3tag.de/t/how-to-change-between-sub-item-levels-in-json-content/55476 "2021-12-11T08:28:38Z")

</div>

I try to parse a JSON output. This works fine for the top level entries, including the ones in my json\_foreach "releases" loop. For the sub item content like in text-representation, it seems that I have first to selec…

---

## [Error 403:forbidden](https://community.mp3tag.de/t/error-403-forbidden/55271)

<div class="topic-metadata">

**Author:** [@Romano](https://community.mp3tag.de/u/Romano)\
**Replies:** 4\
**Last updated:** [December 3, 2021, 6:42pm UTC](https://community.mp3tag.de/t/error-403-forbidden/55271 "2021-12-03T18:42:34Z")

</div>

I know this is been asked several times, but i cannot find anything to solve it. i have a web source, that when i made it, it worked fine, i was testing again and now it gives me the: also the index works fine, just …

---

## [Need Web Source Script for Youtube Music Source](https://community.mp3tag.de/t/need-web-source-script-for-youtube-music-source/52699)

<div class="topic-metadata">

**Author:** [@iMBSB](https://community.mp3tag.de/u/iMBSB)\
**Replies:** 6\
**Last updated:** [September 9, 2021, 11:39am UTC](https://community.mp3tag.de/t/need-web-source-script-for-youtube-music-source/52699 "2021-09-09T11:39:51Z")

</div>

Hi everyone, I am looking for a web source script which can fetch data from YT Music (music.youtube.com), I couldn't find here please suggest to get it or please help me to develop one. Thanks in advance..

---

## [Some help to error in a ws](https://community.mp3tag.de/t/some-help-to-error-in-a-ws/54202)

<div class="topic-metadata">

**Author:** [@Romano](https://community.mp3tag.de/u/Romano)\
**Replies:** 2\
**Last updated:** [August 27, 2021, 4:13pm UTC](https://community.mp3tag.de/t/some-help-to-error-in-a-ws/54202 "2021-08-27T16:13:30Z")

</div>

Sometimes i found this error in my WS: ERROR(L202): parameter 2 missing # LYRICIST findinline "Lyricist" 1 1 OutputTo "LYRICIST" findinline "\<td width=\\"100%\\"\>" 1 1 replace "\<span style="color: #00BFFF" title="Refere…

---

## [WS absolute result](https://community.mp3tag.de/t/ws-absolute-result/54074)

<div class="topic-metadata">

**Author:** [@gval](https://community.mp3tag.de/u/gval)\
**Replies:** 0\
**Last updated:** [August 14, 2021, 12:55pm UTC](https://community.mp3tag.de/t/ws-absolute-result/54074 "2021-08-14T12:55:46Z")

</div>

Hi, when I am looking for album Query : %artistalbum% %album% Expected : ‎Slave par Slave sur Apple Music a Result : ‎Slave To The Rhythm par Grace Jones sur Apple Music i have \[Name\]=iTunes \[BasedOn\]=https://itu…

---

## [More than 3 values for \[SearchBy\] field?](https://community.mp3tag.de/t/more-than-3-values-for-searchby-field/53296)

<div class="topic-metadata">

**Author:** [@mr\_bug](https://community.mp3tag.de/u/mr_bug)\
**Replies:** 0\
**Last updated:** [May 21, 2021, 12:47pm UTC](https://community.mp3tag.de/t/more-than-3-values-for-searchby-field/53296 "2021-05-21T12:47:55Z")

</div>

Hello, I'm trying to search by 4 values, for example, artist, album, track count, and year, however Mp3tag's UI only ever shows a maximum of 3 input fields when running the web sources script, despite 4 (or more) values…

---

## [Calling a url while parsing a url?](https://community.mp3tag.de/t/calling-a-url-while-parsing-a-url/52975)

<div class="topic-metadata">

**Author:** [@taggert](https://community.mp3tag.de/u/taggert)\
**Replies:** 0\
**Last updated:** [April 27, 2021, 12:19am UTC](https://community.mp3tag.de/t/calling-a-url-while-parsing-a-url/52975 "2021-04-27T00:19:40Z")

</div>

I'm wondering if it's possible to call a url while parsing a url. An example of this would be making an initial call that returns album data and then, while parsing that album data, making several calls from within a lo…

---

## [Ignore Tagfield TRACK](https://community.mp3tag.de/t/ignore-tagfield-track/52942)

<div class="topic-metadata">

**Author:** [@poster](https://community.mp3tag.de/u/poster)\
**Replies:** 2\
**Last updated:** [April 23, 2021, 3:09pm UTC](https://community.mp3tag.de/t/ignore-tagfield-track/52942 "2021-04-23T15:09:12Z")

</div>

I'm trying to change an existing websource script so that it doesn't overwrite existing tag fields. In this specific case, I want to add the COMPOSER field to my inventory that has already been tagged. https://community…

---

## [How to install Tag Sources on macOS](https://community.mp3tag.de/t/how-to-install-tag-sources-on-macos/19420)

<div class="topic-metadata">

**Author:** [@aurelienvm](https://community.mp3tag.de/u/aurelienvm)\
**Replies:** 6\
**Last updated:** [April 1, 2021, 6:17am UTC](https://community.mp3tag.de/t/how-to-install-tag-sources-on-macos/19420 "2021-04-01T06:17:26Z")

</div>

Hello. How to install this script on mac? Thank you :slight\_smile:

---

## [Json Question error](https://community.mp3tag.de/t/json-question-error/52619)

<div class="topic-metadata">

**Author:** [@Romano](https://community.mp3tag.de/u/Romano)\
**Replies:** 2\
**Last updated:** [March 31, 2021, 8:05pm UTC](https://community.mp3tag.de/t/json-question-error/52619 "2021-03-31T20:05:03Z")

</div>

This error is annoying me so i ask here for help: I have an websource, geting the data from here: http://vgmdb.info/album/73784?format=json I get this error: Script-Line : 31 Command : json Parameter 1 : \>…

---

## [Script To Pull Info from WhoSampled.com](https://community.mp3tag.de/t/script-to-pull-info-from-whosampled-com/52514)

<div class="topic-metadata">

**Author:** [@Mophill](https://community.mp3tag.de/u/Mophill)\
**Replies:** 0\
**Last updated:** [March 25, 2021, 12:53pm UTC](https://community.mp3tag.de/t/script-to-pull-info-from-whosampled-com/52514 "2021-03-25T12:53:52Z")

</div>

Hey everyone, I’m brand new here and have just discovered how powerful this software is. WhoSampled is a site & huge database that lists out what songs are sampled in a particular track. As an example, you can refer to…

---

## [Noob question - Returning data in the results window](https://community.mp3tag.de/t/noob-question-returning-data-in-the-results-window/52510)

<div class="topic-metadata">

**Author:** [@Kazaam](https://community.mp3tag.de/u/Kazaam)\
**Replies:** 2\
**Last updated:** [March 25, 2021, 10:26am UTC](https://community.mp3tag.de/t/noob-question-returning-data-in-the-results-window/52510 "2021-03-25T10:26:47Z")

</div>

Hey, I tried to understand how WS Framework works. I understood the basics, but I guess I missed something about returning data in the results window. I did a really simple RYM script (maybe too much) without loops, ju…

---

## [One for the archives. Where are the archives?](https://community.mp3tag.de/t/one-for-the-archives-where-are-the-archives/52048)

<div class="topic-metadata">

**Author:** [@tnbnicer](https://community.mp3tag.de/u/tnbnicer)\
**Replies:** 9\
**Last updated:** [February 21, 2021, 10:19am UTC](https://community.mp3tag.de/t/one-for-the-archives-where-are-the-archives/52048 "2021-02-21T10:19:32Z")

</div>

Hi \> I devised a Powershell script to add tags. It's been done before, I know, but where is a good place to post it in the spirit of sharing? It wasn't easy to figure out how to use Powershell scriptlets via Mp3tag. Th…

---

## [Discogs Handling of Apostrophes](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382)

<div class="topic-metadata">

**Author:** [@rko31415](https://community.mp3tag.de/u/rko31415)\
**Replies:** 13\
**Last updated:** [February 3, 2021, 4:36pm UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382 "2021-02-03T16:36:49Z")

</div>

Tag Source Discogs Artist + Title does not handle apostrophes in the title (e.g., Eddie Cantor - Ma He's Makin Eyes at Me). I don't know if this is an MP3Tag regex lookup issue or a Discogs issue. Apostrophes in the arti…

---

## [Do not overwrite tag OR append to tag](https://community.mp3tag.de/t/do-not-overwrite-tag-or-append-to-tag/51645)

<div class="topic-metadata">

**Author:** [@taggert](https://community.mp3tag.de/u/taggert)\
**Replies:** 0\
**Last updated:** [January 18, 2021, 6:52pm UTC](https://community.mp3tag.de/t/do-not-overwrite-tag-or-append-to-tag/51645 "2021-01-18T18:52:35Z")

</div>

Hi, When using source scripts is there a way to check if a tag already exists and, if it does, either choose to not overwrite the exiting value OR append a value to the existing tag? Examples of this would be: if comp…

---

## [Monstercat & Epidemic Sound](https://community.mp3tag.de/t/monstercat-epidemic-sound/51323)

<div class="topic-metadata">

**Author:** [@djdizzle](https://community.mp3tag.de/u/djdizzle)\
**Replies:** 0\
**Last updated:** [December 24, 2020, 12:22am UTC](https://community.mp3tag.de/t/monstercat-epidemic-sound/51323 "2020-12-24T00:22:15Z")

</div>

Hi, Would it be possible for one of the scripting gurus to create some web sources scripts for Monstercat and Epidemic Sound?

---

## [Problems selecting JSON Object](https://community.mp3tag.de/t/problems-selecting-json-object/18544)

<div class="topic-metadata">

**Author:** [@Mihawk90](https://community.mp3tag.de/u/Mihawk90)\
**Replies:** 13\
**Last updated:** [December 17, 2020, 8:48pm UTC](https://community.mp3tag.de/t/problems-selecting-json-object/18544 "2020-12-17T20:48:54Z")

</div>

Hey there. Currently trying my hands on a WS Script for fanart.tv. So far I’ve been able to get the data from the API to load (yay), but I’m not sure if I’m doing it right. There is no output when I use json\_object, so …

---

## [Unexpected output when using FindInLine in a json object](https://community.mp3tag.de/t/unexpected-output-when-using-findinline-in-a-json-object/51197)

<div class="topic-metadata">

**Author:** [@AreDigg](https://community.mp3tag.de/u/AreDigg)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 4:51pm UTC](https://community.mp3tag.de/t/unexpected-output-when-using-findinline-in-a-json-object/51197 "2020-12-16T16:51:45Z")

</div>

In a web script I am doing this per track ...snip... OutputTo "MOVEMENTNAME" json\_select "name" FindInLine ":" SayRest Say "|" ...snip... But on the next pass, the last letter from the previous is added in front of it. …

---

## [\[WS\] New feature \[Include\]](https://community.mp3tag.de/t/ws-new-feature-include/51156)

<div class="topic-metadata">

**Author:** [@vkostas](https://community.mp3tag.de/u/vkostas)\
**Replies:** 1\
**Last updated:** [December 16, 2020, 2:44pm UTC](https://community.mp3tag.de/t/ws-new-feature-include/51156 "2020-12-16T14:44:59Z")

</div>

Some time now Mp3Tag introduced the \[Include\]=... command. One example is official Discogs.src. \[SearchBy\]=Album||%album%||&release\_title=%s \[Include\]=Discogs.inc So, I build a long myInclude.inc file intended to be …

---

## [\[WS\] JSON\_NORMALIZE. Manipulate JSON utility](https://community.mp3tag.de/t/ws-json-normalize-manipulate-json-utility/51062)

<div class="topic-metadata">

**Author:** [@vkostas](https://community.mp3tag.de/u/vkostas)\
**Replies:** 4\
**Last updated:** [December 15, 2020, 8:02am UTC](https://community.mp3tag.de/t/ws-json-normalize-manipulate-json-utility/51062 "2020-12-15T08:02:10Z")

</div>

I have managed to create a "utility" JSON\_NORMALIZE.inc which can help WS authors manipulate JSON input stream (missing information, move info) Features: Wrap all keys between «» e.g. "«Companies»". Can be activated…

---

## [Json question help](https://community.mp3tag.de/t/json-question-help/50697)

<div class="topic-metadata">

**Author:** [@Romano](https://community.mp3tag.de/u/Romano)\
**Replies:** 15\
**Last updated:** [December 7, 2020, 11:35am UTC](https://community.mp3tag.de/t/json-question-help/50697 "2020-12-07T11:35:35Z")

</div>

I have this code: but is shows the "," after the last name, what is the best way to remove this? the json is:

---

## [\_Length help tracks box Json](https://community.mp3tag.de/t/length-help-tracks-box-json/50706)

<div class="topic-metadata">

**Author:** [@Romano](https://community.mp3tag.de/u/Romano)\
**Replies:** 1\
**Last updated:** [December 7, 2020, 11:20am UTC](https://community.mp3tag.de/t/length-help-tracks-box-json/50706 "2020-12-07T11:20:05Z")

</div>

The \_Lenght apears correct in the Debug, why it dont show in the tracks box? the Json:

---

## [Album Art Exchange](https://community.mp3tag.de/t/album-art-exchange/8447)

<div class="topic-metadata">

**Author:** [@shawnthewoman](https://community.mp3tag.de/u/shawnthewoman)\
**Replies:** 4\
**Last updated:** [November 20, 2020, 4:32pm UTC](https://community.mp3tag.de/t/album-art-exchange/8447 "2020-11-20T16:32:01Z")

</div>

Request for a script for Album Art Exchange. They have extremely high quality covers, because as their info page says, they are “extremely obsessive about such thing.” Anyway, I failed horribly at modifying an existing…

---

## [Tag-Source - can't select several files to complete the songs at once](https://community.mp3tag.de/t/tag-source-cant-select-several-files-to-complete-the-songs-at-once/50845)

<div class="topic-metadata">

**Author:** [@Tanste](https://community.mp3tag.de/u/Tanste)\
**Replies:** 1\
**Last updated:** [November 20, 2020, 2:38pm UTC](https://community.mp3tag.de/t/tag-source-cant-select-several-files-to-complete-the-songs-at-once/50845 "2020-11-20T14:38:53Z")

</div>

Hello, I'm using actually the tag-source "hitparade.ch" to edit tags. But I can't select several files to complete the songs at once. So, I have to select manually every single song to use the tag-source. It's a hassle. …

---

## [Direct by scripts have not had the new include file update?](https://community.mp3tag.de/t/direct-by-scripts-have-not-had-the-new-include-file-update/50691)

<div class="topic-metadata">

**Author:** [@stevehero](https://community.mp3tag.de/u/stevehero)\
**Replies:** 2\
**Last updated:** [November 3, 2020, 5:11pm UTC](https://community.mp3tag.de/t/direct-by-scripts-have-not-had-the-new-include-file-update/50691 "2020-11-03T17:11:42Z")

</div>

Hi @Florian. I'm trying to do the include file for beatport on the direct scripts. I've found that when I do: \[SearchBy\]=Enter URL||%www%|| \[Include\]=Beatport by &stevehero v5.0#Direct Release.inc It fails. This works…

[Previous page](https://community.mp3tag.de/c/development/web-sources-discussion/15.md?page=3)

[Next page](https://community.mp3tag.de/c/development/web-sources-discussion/15.md?page=5)
