Skip to content

Instantly share code, notes, and snippets.

@MateusRodCosta
Created July 7, 2022 22:14
Show Gist options
  • Save MateusRodCosta/f50f54c248bee86dd220a4dee39193ca to your computer and use it in GitHub Desktop.
Save MateusRodCosta/f50f54c248bee86dd220a4dee39193ca to your computer and use it in GitHub Desktop.
title: MateusRodCosta's Picard Naming Script
description: |
My personal Picard naming script, focuses mainly on soundtracks (with good support for multi-disc soundtracks) as well as basic support for non-soundtrack albums.
author: Mateus Rodrigues Costa
license: CC0
version: '1.0'
last_updated: 2022-07-07 22:12:13 UTC
script_language_version: '1.1'
script: |
$if(%album%,$replace(%album%,: , - )/,)
$if($gt(%totaldiscs%,1),Disc %discnumber%/,)
$if($gt(%totaldiscs%,1),%discnumber%-,)
$if($gt(%totaltracks%,1),$num(%tracknumber%,2). ,)
$set(_modifiedtitle,%title%)
$set(_modifiedtitle,$replace(%_modifiedtitle%,: , - ))
%_modifiedtitle%
id: ee15cdec-4e22-4df6-9059-704ae8966e85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment