# Popular tracks

**URL:** <https://forums.plex.tv/t/popular-tracks/884638>\
**Category:** Metadata & Adding Files\
**Tags:** library-management\
**Created:** [August 7, 2024, 3:34pm UTC](https://forums.plex.tv/t/popular-tracks/884638 "2024-08-07T15:34:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tenrai-Sensei](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tenrai-sensei/32/284970_2.png) [@Tenrai-Sensei](https://forums.plex.tv/u/Tenrai-Sensei)\
**Post date:** [August 7, 2024, 3:34pm UTC](https://forums.plex.tv/t/popular-tracks/884638/1 "2024-08-07T15:34:06Z")

</div>

Currently im having a problem with popular tracks for Ariana Grande im not sure if i have this with others artist but im looking to resolve this. The only popular tracks are showing from one album but on last.fm it has all her data (im assuming its pulled from last.fm). The albums and tracks are organized using musicbrianz

 ![image](https://global.discourse-cdn.com/plex/original/4X/d/9/5/d95f6750cb6093a883ac1622e2b3a4ea49e80bd9.jpeg)

---

<div class="post-metadata">

**Author:** ![anon5074910](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@anon5074910](https://forums.plex.tv/u/anon5074910)\
**Post date:** [August 7, 2024, 3:37pm UTC](https://forums.plex.tv/t/popular-tracks/884638/2 "2024-08-07T15:37:42Z")

</div>

Does it update if you refresh the metadata at the artist level ?

---

<div class="post-metadata">

**Author:** ![Tenrai-Sensei](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tenrai-sensei/32/284970_2.png) [@Tenrai-Sensei](https://forums.plex.tv/u/Tenrai-Sensei)\
**Post date:** [August 7, 2024, 3:44pm UTC](https://forums.plex.tv/t/popular-tracks/884638/3 "2024-08-07T15:44:47Z")

</div>

i tried that it didnt work ☹ also did analyze and scan library

---

<div class="post-metadata">

**Author:** ![anon5074910](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@anon5074910](https://forums.plex.tv/u/anon5074910)\
**Post date:** [August 7, 2024, 3:49pm UTC](https://forums.plex.tv/t/popular-tracks/884638/4 "2024-08-07T15:49:00Z")

</div>

Are the albums reported as matched by plex ? You can use the advanced filter to find unmatched albums.

---

<div class="post-metadata">

**Author:** ![Tenrai-Sensei](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tenrai-sensei/32/284970_2.png) [@Tenrai-Sensei](https://forums.plex.tv/u/Tenrai-Sensei)\
**Post date:** [August 7, 2024, 4:13pm UTC](https://forums.plex.tv/t/popular-tracks/884638/5 "2024-08-07T16:13:21Z")

</div>

yes they are match i perform the search using the advanced filter and it didnt pop up in unmatched

---

<div class="post-metadata">

**Author:** ![anon5074910](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@anon5074910](https://forums.plex.tv/u/anon5074910)\
**Post date:** [August 7, 2024, 4:19pm UTC](https://forums.plex.tv/t/popular-tracks/884638/6 "2024-08-07T16:19:42Z")

</div>

Okay, just so we are talking about the same thing. If you go under your music library - then filter by albums and finally select unmatched ? This comes back clear with none of the albums listed.

![Screenshot from 2024-08-07 17-13-11](https://global.discourse-cdn.com/plex/original/4X/6/4/8/648ffc77e8e52e7e8c1c90a2244cd6d812aebda0.jpeg)

If so can you let me know how the files are organised (screenshot if you can) ? Also, could you upload plex [server logs](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) after a scan and metadata refresh of the artist so we can review the logs and see if something is amiss.

---

<div class="post-metadata">

**Author:** ![Tenrai-Sensei](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tenrai-sensei/32/284970_2.png) [@Tenrai-Sensei](https://forums.plex.tv/u/Tenrai-Sensei)\
**Post date:** [August 7, 2024, 4:37pm UTC](https://forums.plex.tv/t/popular-tracks/884638/7 "2024-08-07T16:37:09Z")

</div>

Yes thats what i did and did not see the albums/artist there. This is how the files are organized and here are the logs

 ![image](https://global.discourse-cdn.com/plex/original/4X/6/0/d/60db1179742662d485e9003d177da7d5c96bbb60.jpeg)

---

<div class="post-metadata">

**Author:** ![anon5074910](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@anon5074910](https://forums.plex.tv/u/anon5074910)\
**Post date:** [August 7, 2024, 5:48pm UTC](https://forums.plex.tv/t/popular-tracks/884638/8 "2024-08-07T17:48:23Z")

</div>

Not seeing anything obvious in your logs bar the fact the files are opus (I don’t use this format myself).

You say you have tagged everything with musicbrainz, could you show me the tags from the `\Ariana Grande\Positions (Deluxe)` album. Also, do you have `Prefer local metadata` enabled on your music library ?

Finally, does a full [plex dance](https://forums.plex.tv/t/the-plex-dance/197064) (all steps) of all the Ariana Grande albums (best to do it at the artist level) fix the problem ?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [August 7, 2024, 6:05pm UTC](https://forums.plex.tv/t/popular-tracks/884638/9 "2024-08-07T18:05:36Z")

</div>

Click several times on “Show More”.  
Are there really only tracks from one of the albums, or are the others just pushed to the bottom by a very popular album?

---

<div class="post-metadata">

**Author:** ![Tenrai-Sensei](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tenrai-sensei/32/284970_2.png) [@Tenrai-Sensei](https://forums.plex.tv/u/Tenrai-Sensei)\
**Post date:** [August 7, 2024, 6:38pm UTC](https://forums.plex.tv/t/popular-tracks/884638/10 "2024-08-07T18:38:58Z")

</div>

ok yes that worked what a relieve ill be mindful of that in the future

---

<div class="post-metadata">

**Author:** ![Tenrai-Sensei](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tenrai-sensei/32/284970_2.png) [@Tenrai-Sensei](https://forums.plex.tv/u/Tenrai-Sensei)\
**Post date:** [August 7, 2024, 6:39pm UTC](https://forums.plex.tv/t/popular-tracks/884638/11 "2024-08-07T18:39:58Z")

</div>

no it didnt i just had her songs from sweetener in the top spot. But i guess when editing all the metadata and changing it plex might need a [plex dance](https://forums.plex.tv/t/the-plex-dance/197064) for various reasons so ill keep that in mind going forward

---

<div class="post-metadata">

**Author:** ![anon5074910](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@anon5074910](https://forums.plex.tv/u/anon5074910)\
**Post date:** [August 7, 2024, 6:56pm UTC](https://forums.plex.tv/t/popular-tracks/884638/12 "2024-08-07T18:56:31Z")

</div>

Cool you got sorted. I’ve found when using embedded tags with music and `Prefer local metadata` that if you change them plex sometimes does not do a good job of picking up changes. It kinda depends on the tags being changed. Anyhow, a [plex dance](https://forums.plex.tv/t/the-plex-dance/197064) sorts it out when that happens.

---

<div class="post-metadata">

**Author:** ![Tenrai-Sensei](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tenrai-sensei/32/284970_2.png) [@Tenrai-Sensei](https://forums.plex.tv/u/Tenrai-Sensei)\
**Post date:** [August 7, 2024, 9:07pm UTC](https://forums.plex.tv/t/popular-tracks/884638/13 "2024-08-07T21:07:08Z")

</div>

Ohh i forgot to say yes i do have prefer local metadata enabled for sure. Yeah last.fm artist pictures etc is not up to par so ill be editing all that stuff. Definitely will be a multi year project but having the right tools and seeing it all on plex makes it fun

---

<div class="post-metadata">

**Author:** ![anon5074910](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@anon5074910](https://forums.plex.tv/u/anon5074910)\
**Post date:** [August 7, 2024, 10:25pm UTC](https://forums.plex.tv/t/popular-tracks/884638/14 "2024-08-07T22:25:09Z")

</div>

> [@Tenrai-Sensei](#):
>
> Definitely will be a multi year project but having the right tools and seeing it all on plex makes it fun

Music + Plex = Labour of Love 🙂

I’ll pass some of my own advice, ignore or take it as you will. I’ve 1167 artists, 9198 albums and over 133k tracks all of which are tagged using musicbrainz picard and matched 100%.

Read this → [[HowTo] Configure Plex to use embedded metadata (music)](https://forums.plex.tv/t/howto-configure-plex-to-use-embedded-metadata-music/153689) if you have not already. It’s invaluable and especially important when using embedded tags.

I really struggled with popular tracks when I started using plex due to how the plex scanner works and thus how is builds the popular tracks list. I wrote this long winded procedure [[HowTo] Configure Popular Tracks Section to Prioritise Albums over every other release type!](https://forums.plex.tv/t/howto-configure-popular-tracks-section-to-prioritise-albums-over-every-other-release-type/818206) to get around its short comings regarding multiple tracks with the same name across multiple album releases (album vrs live). You may or may not find it useful.

As your using musicbrainz picard to tag, this filename renaming snippet might be helpful to you (its what I use myself):

```auto
$if2(%albumartist%,%artist%)/
$rreplace($if(%albumartist%,%album%),[:"], - ) ($left(%date%,4)) [%releasetype%]/
$if($gt(%totaldiscs%,1),%discnumber%,)
$if($and(%albumartist%,%tracknumber%),$num(%tracknumber%,2),) - %title%

```

and I also set the following within the scripting - enable tagger scripts options:

```auto
$set(artistsort,%albumartist%)
$set(albumartistsort,%albumartist%)
$set(albumsort,%album%)
$set(date,$if2(%originaldate%,%date%))

```

Again, I find these useful but your own mileage may vary depending on your use case.

---

<div class="post-metadata">

**Author:** ![Tenrai-Sensei](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tenrai-sensei/32/284970_2.png) [@Tenrai-Sensei](https://forums.plex.tv/u/Tenrai-Sensei)\
**Post date:** [August 8, 2024, 1:40pm UTC](https://forums.plex.tv/t/popular-tracks/884638/15 "2024-08-08T13:40:01Z")

</div>

Dam thats alot of work but super dope. Im not sure exactly what the scripting you provide does. You’ll have to break it down for me

---

<div class="post-metadata">

**Author:** ![anon5074910](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@anon5074910](https://forums.plex.tv/u/anon5074910)\
**Post date:** [August 8, 2024, 2:04pm UTC](https://forums.plex.tv/t/popular-tracks/884638/16 "2024-08-08T14:04:43Z")

</div>

Okay, it looks complicated but its actually simple enough. Lets use Ariana Grande and the Positions album → [https://musicbrainz.org/release/3582ded5-2da8-4b14-b446-3ea66d45a403?tport=8000](https://musicbrainz.org/release/3582ded5-2da8-4b14-b446-3ea66d45a403?tport=8000).

1. First line works out the artist name, so it will use “Ariana Grande”.
2. Second line works out the album name. adding the date (in 4 digit format) and adds the release type, so in this example it will use “Positions (2020) [album]”
3. Third detects if multiple disks are used and if there is more than one then adjust the track numbering to include disk number at the beginning.
4. Finally, fourth line works out the track number (in 2 digit format) and then adds the title, so it will use, 01 - shut up.ext. NOTE: If this was a multiple disk then it would be 101 - shut up.ext.

This follows the plex naming for music media as called out [https://support.plex.tv/articles/200265296-adding-music-media-from-folders](https://support.plex.tv/articles/200265296-adding-music-media-from-folders). In this example then you end up with …

`\Ariana Grande\Positions (2020) [album]\01 - shut up.ext`

… as your renamed media.

---

<div class="post-metadata">

**Author:** ![Tenrai-Sensei](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tenrai-sensei/32/284970_2.png) [@Tenrai-Sensei](https://forums.plex.tv/u/Tenrai-Sensei)\
**Post date:** [August 9, 2024, 1:05pm UTC](https://forums.plex.tv/t/popular-tracks/884638/17 "2024-08-09T13:05:47Z")

</div>

since it works out release types i assuming adding album at the end is definitely helpful. As i was deciding should i keep singles in a separate folder as there can be many for an artists. I add this in the Options\>Scripting and add new tagger im assumng

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [August 9, 2024, 1:09pm UTC](https://forums.plex.tv/t/popular-tracks/884638/18 "2024-08-09T13:09:21Z")

</div>

> [@Tenrai-Sensei](#):
>
> i assuming adding album at the end is definitely helpful.

No, it isn’t.  
Release types are fetched from the Musicbrainz database. If you want to override this, use RELEASETYPE meta tags. (Only obeyed if “prefer local metatags” is enabled.)

See [Plex Media Server 1.27.2.5929 - support for release type embedded tags - #33 by certuna](https://forums.plex.tv/t/plex-media-server-1-27-2-5929-support-for-release-type-embedded-tags/799101/33) for details.

---

<div class="post-metadata">

**Author:** ![Tenrai-Sensei](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tenrai-sensei/32/284970_2.png) [@Tenrai-Sensei](https://forums.plex.tv/u/Tenrai-Sensei)\
**Post date:** [August 9, 2024, 1:11pm UTC](https://forums.plex.tv/t/popular-tracks/884638/19 "2024-08-09T13:11:31Z")

</div>

Oh i see i think i got this confuse the the Renaming the folder. Im fine with MusicBrainz tagging i dont need to override that. If an artist has alot of singles should i put it in a separate folder called singles? How do you organize it?

---

<div class="post-metadata">

**Author:** ![anon5074910](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@anon5074910](https://forums.plex.tv/u/anon5074910)\
**Post date:** [August 9, 2024, 5:42pm UTC](https://forums.plex.tv/t/popular-tracks/884638/20 "2024-08-09T17:42:28Z")

</div>

Otto is right, all of this specific scripting is for media filename and folder naming. It has nothing to do with your embedded tags. I include the release type in the folder so I can control the how the plex scanner scans things based on timestamps as described [[HowTo] Configure Popular Tracks Section to Prioritise Albums over every other release type!](https://forums.plex.tv/t/howto-configure-popular-tracks-section-to-prioritise-albums-over-every-other-release-type/818206).

You can remove that if its not of interest to you by changing `$rreplace($if(%albumartist%,%album%),[:"], - ) ($left(%date%,4)) [%releasetype%]/` to `$rreplace($if(%albumartist%,%album%),[:"], - ) ($left(%date%,4))/`

For the release types and embedded tags, ensure you have the tag `releasetype` within musicbrainz.

![Screenshot from 2024-08-09 18-41-05](https://global.discourse-cdn.com/plex/original/4X/e/7/7/e77008b91b44be790ffccbcfdd39e051c6a7e729.jpeg)

[Next page](https://forums.plex.tv/t/popular-tracks/884638.md?page=2)
