# Discogs Handling of Apostrophes

**URL:** https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382
**Category:** Web Sources Discussion
**Created:** [October 6, 2020, 1:17am UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382 "2020-10-06T01:17:48Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)
#### Post date: [October 6, 2020, 1:17am UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382/1 "2020-10-06T01:17: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 artist name or album seem to be handled correctly.

Release 3.03 is fabulous. I'm glad to see the much easier maintenance of Action Groups.

K

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [October 6, 2020, 6:09am UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382/2 "2020-10-06T06:09:27Z")

</div>

> [@rko31415](#):
>
> Eddie Cantor - Ma He's Makin Eyes at Me

If that is the accurate representation of the title then it could be that the correct spelling "Ma He's Makin' Eyes At Me" (with an added apostrophe following "makin") improves the result. Like that the online search in Discogs found the track.

See also here:

> [@Discogs lookup does not return result in case album name contains apostrophe](https://community.mp3tag.de/t/discogs-lookup-does-not-return-result-in-case-album-name-contains-apostrophe/49112):
>
> There is a bug where discogs lookup fails even though songs are in the discogs database. That is if the artist or title has punctuation symbols in it. example - Hi-Gloss - I'm Totally Yours will fail but Hi-Gloss - Im Totally Yours will not fail note the apostrophe on i'm strangely this isnt always the case for example human league don't you want me works. it maybe to do with the song title being an album track rather than a release. hope this helps...

---

<div class="post-metadata">

### Author: ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)
#### Post date: [October 6, 2020, 1:36pm UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382/3 "2020-10-06T13:36:53Z")

</div>

Okay fine. I just picked a random one. Here's another one:  
Earth, Wind & Fire - That's the Way of the World  
Try this both with title:  
That's the Way of the World  
and  
the Way of the World  
You'll notice the dramatic difference in results.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [October 6, 2020, 4:53pm UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382/4 "2020-10-06T16:53:51Z")

</div>

Did you read @dano's reply:

> [@Discogs lookup does not return result in case album name contains apostrophe](https://community.mp3tag.de/t/discogs-lookup-does-not-return-result-in-case-album-name-contains-apostrophe/49112/3):
>
> You need to try Artist + Title search to see the problem. But the same problem occurs on the Advanced Search on the discogs website, so it is not a bug of Mp3tag.

---

<div class="post-metadata">

### Author: ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)
#### Post date: [October 6, 2020, 6:40pm UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382/5 "2020-10-06T18:40:20Z")

</div>

There doesn't appear to be an ''advanced search'' in [discogs.com](http://discogs.com) ... the instructions tell you to start typing and the option will appear, but it didn't for me. The straightforward search for Earth, Wind & Fire - That's the Way of the World works fine with their basic search (1151 hits vs. 32 for mp3tag vs. 100 for mp3tag without "That's").  
If you're pinging the discogs database, it seems as if you'd need some sort of mp3tag scraper, and that scraper would be the first place I'd look for a problem with apostrophes.  
But you know your product infinitely better than I.  
Be safe.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [October 6, 2020, 7:06pm UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382/6 "2020-10-06T19:06:59Z")

</div>

You can try it here [https://www.discogs.com/search/advanced](https://www.discogs.com/search/advanced)

---

<div class="post-metadata">

### Author: ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)
#### Post date: [October 6, 2020, 11:13pm UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382/7 "2020-10-06T23:13:32Z")

</div>

Okay, advanced search on discogs came up with 111 hits for the example in my earlier post. I'd be okay with 100 hits as in my example.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [October 7, 2020, 10:26am UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382/8 "2020-10-07T10:26:35Z")

</div>

Only 32 hits also on discogs web search:  
` https://www.discogs.com/search/?type=release&artist=Earth%2C+Wind+%26+Fire&track=That%27s+the+Way+of+the+World`

0 hits for the first example:  
`https://www.discogs.com/search/?type=release&artist=Eddie+Cantor&track=Ma+He%27s+Makin+Eyes+at+Me`

The problem lies on the discogs search engine.  
If we just leave out the apostrophe on the track parameter it seems to give the correct results.  
I.e. "Ma Hes Makin Eyes at Me"

---

<div class="post-metadata">

### Author: ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)
#### Post date: [October 7, 2020, 11:34am UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382/9 "2020-10-07T11:34:11Z")

</div>

You are right about omitting the apostrophes. How's about an option to automatically strip out apostrophes in the MP3Tag Tag Sources lookup?

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [October 7, 2020, 3:59pm UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382/10 "2020-10-07T15:59:07Z")

</div>

What you can already do is edit the _Discogs Artist + Title.src_ file in `%APPDATA%\Mp3tag\data\sources`

and change the **[Searchby]** line to

`[SearchBy]=Artist||$if2(%albumartist%,%artist%)||&artist=%s||Title||$replace(%title%,'',)||&track=%s`

---

<div class="post-metadata">

### Author: ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)
#### Post date: [October 7, 2020, 7:50pm UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382/11 "2020-10-07T19:50:59Z")

</div>

> [@rko31415](#):
>
> Earth, Wind & Fire - That's the Way of the World

Your solution works sometimes, but not for the example above. Try using your regex line with That's the Way of the World (32 hits) vs.the Way of the World (100 hits).

---

<div class="post-metadata">

### Author: ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)
#### Post date: [October 8, 2020, 1:59pm UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382/12 "2020-10-08T13:59:49Z")

</div>

Sorry, please ignore my previous post. I was unfamiliar with the \sources files. Your regex works when placed in Discogs Artist + Title.src

---

<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: [October 30, 2020, 11:14am UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382/13 "2020-10-30T11:14:55Z")

</div>

With [Mp3tag v3.03c](https://community.mp3tag.de/t/455), I'm now automatically removing the apostrophes from the title for

- **Discogs Artist + Title** and
- **Cover Art \> Discogs Artist + Title**.

---

<div class="post-metadata">

### Author: ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)
#### Post date: [February 3, 2021, 4:36pm UTC](https://community.mp3tag.de/t/discogs-handling-of-apostrophes/50382/14 "2021-02-03T16:36:49Z")

</div>

Thanks for this.  
DISCOGS also doesn't handle back-accented a's so a further 'refinement' could be: [SearchBy]=Artist||$if2(%albumartist%,%artist%)||&artist=%s||Title||$replace(%title%,'',,à,a)||&track=%s

rgds
