releasecountry: toys/createindex
This commit is contained in:
parent
50ca3a3748
commit
3ecf4b627d
@ -73,6 +73,7 @@ do
|
|||||||
'-M') show+=(types) ;;
|
'-M') show+=(types) ;;
|
||||||
'-N') show+=(tracktotals) ;;
|
'-N') show+=(tracktotals) ;;
|
||||||
'-p') show+=(performers) ;;
|
'-p') show+=(performers) ;;
|
||||||
|
'-r') show+=(releasecountries) ;;
|
||||||
'-s') show+=(rates) ;;
|
'-s') show+=(rates) ;;
|
||||||
'-S') show+=(size)
|
'-S') show+=(size)
|
||||||
length[count]=5 ;;
|
length[count]=5 ;;
|
||||||
@ -121,6 +122,7 @@ done
|
|||||||
-d Disc
|
-d Disc
|
||||||
-g Genre
|
-g Genre
|
||||||
-p Performer
|
-p Performer
|
||||||
|
-r Release Country
|
||||||
-N Track total
|
-N Track total
|
||||||
-t Title
|
-t Title
|
||||||
-y Year
|
-y Year
|
||||||
@ -280,8 +282,8 @@ fi
|
|||||||
|
|
||||||
cat <<-EOBrag
|
cat <<-EOBrag
|
||||||
# Generated by AtOM's createindex toy.
|
# Generated by AtOM's createindex toy.
|
||||||
# https://gitorious.org/atom
|
# https://framagit.org/atom/AtOM/
|
||||||
# (C) 2012-2013 Vincent Riquer (GPL-3)
|
# (C) 2012-2025 Vincent Riquer (GPL-3)
|
||||||
#
|
#
|
||||||
# $0 $args
|
# $0 $args
|
||||||
#
|
#
|
||||||
@ -312,6 +314,7 @@ do
|
|||||||
oldtimestamp) info='Last modified' ;;
|
oldtimestamp) info='Last modified' ;;
|
||||||
types) info='Format' ;;
|
types) info='Format' ;;
|
||||||
performers) info='Performer' ;;
|
performers) info='Performer' ;;
|
||||||
|
releasecountries) info='Country' ;;
|
||||||
rates) info='Sample rate' ;;
|
rates) info='Sample rate' ;;
|
||||||
titles) info='Title' ;;
|
titles) info='Title' ;;
|
||||||
tracktotals) info='Track total' ;;
|
tracktotals) info='Track total' ;;
|
||||||
@ -345,6 +348,7 @@ SELECT
|
|||||||
tags.disc,
|
tags.disc,
|
||||||
tags.genre,
|
tags.genre,
|
||||||
tags.performer,
|
tags.performer,
|
||||||
|
tags.releasecountry,
|
||||||
tags.title,
|
tags.title,
|
||||||
tags.track,
|
tags.track,
|
||||||
tags.year,
|
tags.year,
|
||||||
@ -403,6 +407,8 @@ do
|
|||||||
rest="${rest#*::AtOM:SQL:Sep::}"
|
rest="${rest#*::AtOM:SQL:Sep::}"
|
||||||
performer="${rest%%::AtOM:SQL:Sep::*}"
|
performer="${rest%%::AtOM:SQL:Sep::*}"
|
||||||
rest="${rest#*::AtOM:SQL:Sep::}"
|
rest="${rest#*::AtOM:SQL:Sep::}"
|
||||||
|
releasecountry="${rest%%::AtOM:SQL:Sep::*}"
|
||||||
|
rest="${rest#*::AtOM:SQL:Sep::}"
|
||||||
title="${rest%%::AtOM:SQL:Sep::*}"
|
title="${rest%%::AtOM:SQL:Sep::*}"
|
||||||
rest="${rest#*::AtOM:SQL:Sep::}"
|
rest="${rest#*::AtOM:SQL:Sep::}"
|
||||||
track="${rest%%::AtOM:SQL:Sep::*}"
|
track="${rest%%::AtOM:SQL:Sep::*}"
|
||||||
@ -530,6 +536,13 @@ do
|
|||||||
[ -n "$performer" ] \
|
[ -n "$performer" ] \
|
||||||
&& performers+="${performers+,}$performer"
|
&& performers+="${performers+,}$performer"
|
||||||
fi
|
fi
|
||||||
|
if ! [[ $releasecountries =~ $expr1"$releasecountry"$expr2 ]]
|
||||||
|
then
|
||||||
|
[ -z "$releasecountries" ] \
|
||||||
|
&& unset releasecountries
|
||||||
|
[ -n "$releasecountry" ] \
|
||||||
|
&& releasecountries+="${releasecountries+,}$releasecountry"
|
||||||
|
fi
|
||||||
if ! [[ $titles =~ $expr1"$title"$expr2 ]]
|
if ! [[ $titles =~ $expr1"$title"$expr2 ]]
|
||||||
then
|
then
|
||||||
[ -z "$titles" ] \
|
[ -z "$titles" ] \
|
||||||
@ -556,10 +569,10 @@ do
|
|||||||
then
|
then
|
||||||
printline
|
printline
|
||||||
fi
|
fi
|
||||||
unset bitrates
|
unset bitrates depths rates
|
||||||
channelss="$channels"
|
channelss="$channels"
|
||||||
rates="$rate"
|
(( rate )) && rates="$rate"
|
||||||
depths="$depth"
|
(( depth )) && depths="$depth"
|
||||||
types="$type"
|
types="$type"
|
||||||
albumartists="$albumartist"
|
albumartists="$albumartist"
|
||||||
albums="$album"
|
albums="$album"
|
||||||
@ -568,6 +581,7 @@ do
|
|||||||
discs="$disc"
|
discs="$disc"
|
||||||
genres="$genre"
|
genres="$genre"
|
||||||
performers="$performer"
|
performers="$performer"
|
||||||
|
releasecountries="$releasecountry"
|
||||||
titles="$title"
|
titles="$title"
|
||||||
tracktotals="$tracktotal"
|
tracktotals="$tracktotal"
|
||||||
years="$year"
|
years="$year"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user