Categories
Configuration Tips

Musicbrainz Picard Configuration

Plugins

The only plugin I use is one I wrote myself to get separate media counts for audio and video media in the same release. It can be found here.

File naming

This is the file naming format I use:

$if2(%albumartist%,%artist%)/$if($ne(%albumartist%,),%album%)$if($gt(%_totalaudiomediums%,1), \(disc %discnumber%$if($ne(%discsubtitle%,), - %discsubtitle%,)\),)/$if($ne(%albumartist%,),$num(%tracknumber%,2) - ,)$if(%_multiartist%,%artist% - ,)%title%

Tagger scripts

I use one tagger script to add the release disambiguation text as a subtitle of a release to be able to keep original release vs. new releases (reissues, anniversary releases, deluxe editions, etc.) separate:

$set(album,$if(%_releasecomment%,%album% \(%_releasecomment%\),%album%))

An example is the 10 year anniversary edition of Circa Survive’s Blue Sky Noise. Using the config above to tag and rename both the original release and the 10 year anniversary edition release I get files named like:

Circa Survive
├── Blue Sky Noise
│   ├── 01 - Strange Terrain.mp3
│   ├── 02 - Get Out.mp3
│   ├── 03 - Glass Arrows.mp3
│   ├── 04 - I Felt Free.mp3
│   ├── 05 - Imaginary Enemy.mp3
│   ├── 06 - Through the Desert Alone.mp3
│   ├── 07 - Frozen Creek.mp3
│   ├── 08 - Fever Dreams.mp3
│   ├── 09 - Spirit of the Stairwell.mp3
│   ├── 10 - The Longest Mile.mp3
│   ├── 11 - Compendium.mp3
│   └── 12 - Dyed in the Wool.mp3
├── Blue Sky Noise_ 10 Year Anniversary Edition (disc 1 - Blue Sky Noise)
│   ├── 01 - Strange Terrain.mp3
│   ├── 02 - Get Out.mp3
│   ├── 03 - Glass Arrows.mp3
│   ├── 04 - I Felt Free.mp3
│   ├── 05 - Imaginary Enemy.mp3
│   ├── 06 - Through the Desert Alone.mp3
│   ├── 07 - Frozen Creek.mp3
│   ├── 08 - Fever Dreams.mp3
│   ├── 09 - Spirit of the Stairwell.mp3
│   ├── 10 - The Longest Mile.mp3
│   ├── 11 - Compendium.mp3
│   └── 12 - Dyed in the Wool.mp3
├── Blue Sky Noise_ 10 Year Anniversary Edition (disc 2 - Appendage I)
│   ├── 01 - Sleep Underground (demo).mp3
│   ├── 02 - Stare Like You’ll Stay.mp3
│   ├── 03 - Everyway.mp3
│   ├── 04 - Backmask.mp3
│   └── 05 - Lazarus.mp3
└── Blue Sky Noise_ 10 Year Anniversary Edition (disc 3 - Appendage II)
    ├── 01 - 100 Steps (demo).mp3
    ├── 02 - At a Loss (demo).mp3
    ├── 03 - Blank Slate (demo).mp3
    ├── 04 - New Sun (demo).mp3
    └── 05 - Resentment (demo).mp3
Categories
Configuration Tips

Configuring Pi-hole to Resolve Domains to Internal IP

When using Cloudflare DNS entries for reverse-proxy hostnames those hostnames will resolve to the Cloudflare IP, but inside the home network they should resolve to the internal server IP.

When using Pi-hole as the internal DNS server you can customize the IP returned for domains/hostnames by doing the following.

First, create a custom configuration file to tell dnsmasq where to find additional hostname information for the LAN:

$ echo "addn-hosts=/etc/pihole/lan.list" | sudo tee /etc/dnsmasq.d/02-lan.conf

Next, create /etc/pihole/lan.list with lines with the format ipaddress hostname [hostname]...

192.168.1.75 ombi.mydomain.com tautulli.mydomain.com mediaserver

Finally, restart the Pi-hole DNS server:

$ sudo pihole restartdns