[REQ] Auto-increment Track #s behavior

Get help for different MediaMonkey v5 / v2024 Addons.

Moderators: jiri, drakinite, Addon Administrators

4ug3jw57
Posts: 26
Joined: Mon Oct 15, 2012 6:29 pm

[REQ] Auto-increment Track #s behavior

Post by 4ug3jw57 »

I Will try to explain the simplest way i can with my limited english, sorry for any misconception...

I wold like to suggest that the behavior of the "Auto-increment Track #s" tool be improved.
Today the tool works modifying the track field in sequential order like so:

<track#> - <title>
1 - Track 01
2 - Track 02
3 - Track 03
...

That's ok but i encounter various problems wen organizing the files in this way...

Example Alpha:
Album with 2 discs the first with 15 tracks and de second with 10 tracks. https://www.cdjapan.co.jp/product/NEODAI-195525

Following the PLEX recommended structure... (https://support.plex.tv/articles/200265 ... m-folders/)
"/Album/Disc#Track# - Title.ext"
With the atual method the file structure looks like this:

Code: Select all

D:\Downloads\Test\Album\11 - Track 01.flac
D:\Downloads\Test\Album\12 - Track 02.flac
D:\Downloads\Test\Album\13 - Track 03.flac
D:\Downloads\Test\Album\14 - Track 04.flac
D:\Downloads\Test\Album\15 - Track 05.flac
D:\Downloads\Test\Album\16 - Track 06.flac
D:\Downloads\Test\Album\17 - Track 07.flac
D:\Downloads\Test\Album\18 - Track 08.flac
D:\Downloads\Test\Album\19 - Track 09.flac
D:\Downloads\Test\Album\21 - Track 01.flac
D:\Downloads\Test\Album\22 - Track 02.flac
D:\Downloads\Test\Album\23 - Track 03.flac
D:\Downloads\Test\Album\24 - Track 04.flac
D:\Downloads\Test\Album\25 - Track 05.flac
D:\Downloads\Test\Album\26 - Track 06.flac
D:\Downloads\Test\Album\27 - Track 07.flac
D:\Downloads\Test\Album\28 - Track 08.flac
D:\Downloads\Test\Album\29 - Track 09.flac
D:\Downloads\Test\Album\110 - Track 10.flac
D:\Downloads\Test\Album\111 - Track 11.flac
D:\Downloads\Test\Album\112 - Track 12.flac
D:\Downloads\Test\Album\113 - Track 13.flac
D:\Downloads\Test\Album\114 - Track 14.flac
D:\Downloads\Test\Album\115 - Track 15.flac
D:\Downloads\Test\Album\210 - Track 10.flac
D:\Downloads\Test\Album\Cover.jpg
A total mess... were the "correct way" wold be:

Code: Select all

D:\Downloads\Test\Album\101 - Track 01.flac
D:\Downloads\Test\Album\102 - Track 02.flac
D:\Downloads\Test\Album\103 - Track 03.flac
D:\Downloads\Test\Album\104 - Track 04.flac
D:\Downloads\Test\Album\105 - Track 05.flac
D:\Downloads\Test\Album\106 - Track 06.flac
D:\Downloads\Test\Album\107 - Track 07.flac
D:\Downloads\Test\Album\108 - Track 08.flac
D:\Downloads\Test\Album\109 - Track 09.flac
D:\Downloads\Test\Album\110 - Track 10.flac
D:\Downloads\Test\Album\111 - Track 11.flac
D:\Downloads\Test\Album\112 - Track 12.flac
D:\Downloads\Test\Album\113 - Track 13.flac
D:\Downloads\Test\Album\114 - Track 14.flac
D:\Downloads\Test\Album\115 - Track 15.flac
D:\Downloads\Test\Album\201 - Track 01.flac
D:\Downloads\Test\Album\202 - Track 02.flac
D:\Downloads\Test\Album\203 - Track 03.flac
D:\Downloads\Test\Album\204 - Track 04.flac
D:\Downloads\Test\Album\205 - Track 05.flac
D:\Downloads\Test\Album\206 - Track 06.flac
D:\Downloads\Test\Album\207 - Track 07.flac
D:\Downloads\Test\Album\208 - Track 08.flac
D:\Downloads\Test\Album\209 - Track 09.flac
D:\Downloads\Test\Album\210 - Track 10.flac
D:\Downloads\Test\Album\Cover.jpg
Example Beta:
Digital Album (no disc number) 181 tracks in total https://mora.jp/package/43000021/SQEX-11039-2/

Following the simplest structure possible
"/Album/Track# - Title.ext"
With the atual method the file structure looks like this:

Code: Select all

D:\Downloads\Test\Album 2\1 - Track 001.flac
D:\Downloads\Test\Album 2\10 - Track 010.flac
D:\Downloads\Test\Album 2\100 - Track 100.flac
D:\Downloads\Test\Album 2\101 - Track 101.flac
D:\Downloads\Test\Album 2\102 - Track 102.flac
D:\Downloads\Test\Album 2\103 - Track 103.flac
D:\Downloads\Test\Album 2\104 - Track 104.flac
D:\Downloads\Test\Album 2\105 - Track 105.flac
D:\Downloads\Test\Album 2\106 - Track 106.flac
D:\Downloads\Test\Album 2\107 - Track 107.flac
D:\Downloads\Test\Album 2\108 - Track 108.flac
D:\Downloads\Test\Album 2\109 - Track 109.flac
D:\Downloads\Test\Album 2\11 - Track 011.flac
D:\Downloads\Test\Album 2\110 - Track 110.flac
D:\Downloads\Test\Album 2\111 - Track 111.flac
D:\Downloads\Test\Album 2\112 - Track 112.flac
D:\Downloads\Test\Album 2\113 - Track 113.flac
D:\Downloads\Test\Album 2\114 - Track 114.flac
D:\Downloads\Test\Album 2\115 - Track 115.flac
D:\Downloads\Test\Album 2\116 - Track 116.flac
D:\Downloads\Test\Album 2\117 - Track 117.flac
D:\Downloads\Test\Album 2\118 - Track 118.flac
D:\Downloads\Test\Album 2\119 - Track 119.flac
D:\Downloads\Test\Album 2\12 - Track 012.flac
D:\Downloads\Test\Album 2\120 - Track 120.flac
D:\Downloads\Test\Album 2\121 - Track 121.flac
D:\Downloads\Test\Album 2\122 - Track 122.flac
D:\Downloads\Test\Album 2\123 - Track 123.flac
D:\Downloads\Test\Album 2\124 - Track 124.flac
D:\Downloads\Test\Album 2\125 - Track 125.flac
D:\Downloads\Test\Album 2\126 - Track 126.flac
D:\Downloads\Test\Album 2\127 - Track 127.flac
D:\Downloads\Test\Album 2\128 - Track 128.flac
D:\Downloads\Test\Album 2\129 - Track 129.flac
D:\Downloads\Test\Album 2\13 - Track 013.flac
D:\Downloads\Test\Album 2\130 - Track 130.flac
D:\Downloads\Test\Album 2\131 - Track 131.flac
D:\Downloads\Test\Album 2\132 - Track 132.flac
D:\Downloads\Test\Album 2\133 - Track 133.flac
D:\Downloads\Test\Album 2\134 - Track 134.flac
D:\Downloads\Test\Album 2\135 - Track 135.flac
D:\Downloads\Test\Album 2\136 - Track 136.flac
D:\Downloads\Test\Album 2\137 - Track 137.flac
D:\Downloads\Test\Album 2\138 - Track 138.flac
D:\Downloads\Test\Album 2\139 - Track 139.flac
D:\Downloads\Test\Album 2\14 - Track 014.flac
D:\Downloads\Test\Album 2\140 - Track 140.flac
D:\Downloads\Test\Album 2\141 - Track 141.flac
D:\Downloads\Test\Album 2\142 - Track 142.flac
D:\Downloads\Test\Album 2\143 - Track 143.flac
D:\Downloads\Test\Album 2\144 - Track 144.flac
D:\Downloads\Test\Album 2\145 - Track 145.flac
D:\Downloads\Test\Album 2\146 - Track 146.flac
D:\Downloads\Test\Album 2\147 - Track 147.flac
D:\Downloads\Test\Album 2\148 - Track 148.flac
D:\Downloads\Test\Album 2\149 - Track 149.flac
D:\Downloads\Test\Album 2\15 - Track 015.flac
D:\Downloads\Test\Album 2\150 - Track 150.flac
D:\Downloads\Test\Album 2\151 - Track 151.flac
D:\Downloads\Test\Album 2\152 - Track 152.flac
D:\Downloads\Test\Album 2\153 - Track 153.flac
D:\Downloads\Test\Album 2\154 - Track 154.flac
D:\Downloads\Test\Album 2\155 - Track 155.flac
D:\Downloads\Test\Album 2\156 - Track 156.flac
D:\Downloads\Test\Album 2\157 - Track 157.flac
D:\Downloads\Test\Album 2\158 - Track 158.flac
D:\Downloads\Test\Album 2\159 - Track 159.flac
D:\Downloads\Test\Album 2\16 - Track 016.flac
D:\Downloads\Test\Album 2\160 - Track 160.flac
D:\Downloads\Test\Album 2\161 - Track 161.flac
D:\Downloads\Test\Album 2\162 - Track 162.flac
D:\Downloads\Test\Album 2\163 - Track 163.flac
D:\Downloads\Test\Album 2\164 - Track 164.flac
D:\Downloads\Test\Album 2\165 - Track 165.flac
D:\Downloads\Test\Album 2\166 - Track 166.flac
D:\Downloads\Test\Album 2\167 - Track 167.flac
D:\Downloads\Test\Album 2\168 - Track 168.flac
D:\Downloads\Test\Album 2\169 - Track 169.flac
D:\Downloads\Test\Album 2\17 - Track 017.flac
D:\Downloads\Test\Album 2\170 - Track 170.flac
D:\Downloads\Test\Album 2\171 - Track 171.flac
D:\Downloads\Test\Album 2\172 - Track 172.flac
D:\Downloads\Test\Album 2\173 - Track 173.flac
D:\Downloads\Test\Album 2\174 - Track 174.flac
D:\Downloads\Test\Album 2\175 - Track 175.flac
D:\Downloads\Test\Album 2\176 - Track 176.flac
D:\Downloads\Test\Album 2\177 - Track 177.flac
D:\Downloads\Test\Album 2\178 - Track 178.flac
D:\Downloads\Test\Album 2\179 - Track 179.flac
D:\Downloads\Test\Album 2\18 - Track 018.flac
D:\Downloads\Test\Album 2\180 - Track 180.flac
D:\Downloads\Test\Album 2\181 - Track 181.flac
D:\Downloads\Test\Album 2\19 - Track 019.flac
D:\Downloads\Test\Album 2\2 - Track 002.flac
D:\Downloads\Test\Album 2\20 - Track 020.flac
D:\Downloads\Test\Album 2\21 - Track 021.flac
D:\Downloads\Test\Album 2\22 - Track 022.flac
D:\Downloads\Test\Album 2\23 - Track 023.flac
D:\Downloads\Test\Album 2\24 - Track 024.flac
D:\Downloads\Test\Album 2\25 - Track 025.flac
D:\Downloads\Test\Album 2\26 - Track 026.flac
D:\Downloads\Test\Album 2\27 - Track 027.flac
D:\Downloads\Test\Album 2\28 - Track 028.flac
D:\Downloads\Test\Album 2\29 - Track 029.flac
D:\Downloads\Test\Album 2\3 - Track 003.flac
D:\Downloads\Test\Album 2\30 - Track 030.flac
D:\Downloads\Test\Album 2\31 - Track 031.flac
D:\Downloads\Test\Album 2\32 - Track 032.flac
D:\Downloads\Test\Album 2\33 - Track 033.flac
D:\Downloads\Test\Album 2\34 - Track 034.flac
D:\Downloads\Test\Album 2\35 - Track 035.flac
D:\Downloads\Test\Album 2\36 - Track 036.flac
D:\Downloads\Test\Album 2\37 - Track 037.flac
D:\Downloads\Test\Album 2\38 - Track 038.flac
D:\Downloads\Test\Album 2\39 - Track 039.flac
D:\Downloads\Test\Album 2\4 - Track 004.flac
D:\Downloads\Test\Album 2\40 - Track 040.flac
D:\Downloads\Test\Album 2\41 - Track 041.flac
D:\Downloads\Test\Album 2\42 - Track 042.flac
D:\Downloads\Test\Album 2\43 - Track 043.flac
D:\Downloads\Test\Album 2\44 - Track 044.flac
D:\Downloads\Test\Album 2\45 - Track 045.flac
D:\Downloads\Test\Album 2\46 - Track 046.flac
D:\Downloads\Test\Album 2\47 - Track 047.flac
D:\Downloads\Test\Album 2\48 - Track 048.flac
D:\Downloads\Test\Album 2\49 - Track 049.flac
D:\Downloads\Test\Album 2\5 - Track 005.flac
D:\Downloads\Test\Album 2\50 - Track 050.flac
D:\Downloads\Test\Album 2\51 - Track 051.flac
D:\Downloads\Test\Album 2\52 - Track 052.flac
D:\Downloads\Test\Album 2\53 - Track 053.flac
D:\Downloads\Test\Album 2\54 - Track 054.flac
D:\Downloads\Test\Album 2\55 - Track 055.flac
D:\Downloads\Test\Album 2\56 - Track 056.flac
D:\Downloads\Test\Album 2\57 - Track 057.flac
D:\Downloads\Test\Album 2\58 - Track 058.flac
D:\Downloads\Test\Album 2\59 - Track 059.flac
D:\Downloads\Test\Album 2\6 - Track 006.flac
D:\Downloads\Test\Album 2\60 - Track 060.flac
D:\Downloads\Test\Album 2\61 - Track 061.flac
D:\Downloads\Test\Album 2\62 - Track 062.flac
D:\Downloads\Test\Album 2\63 - Track 063.flac
D:\Downloads\Test\Album 2\64 - Track 064.flac
D:\Downloads\Test\Album 2\65 - Track 065.flac
D:\Downloads\Test\Album 2\66 - Track 066.flac
D:\Downloads\Test\Album 2\67 - Track 067.flac
D:\Downloads\Test\Album 2\68 - Track 068.flac
D:\Downloads\Test\Album 2\69 - Track 069.flac
D:\Downloads\Test\Album 2\7 - Track 007.flac
D:\Downloads\Test\Album 2\70 - Track 070.flac
D:\Downloads\Test\Album 2\71 - Track 071.flac
D:\Downloads\Test\Album 2\72 - Track 072.flac
D:\Downloads\Test\Album 2\73 - Track 073.flac
D:\Downloads\Test\Album 2\74 - Track 074.flac
D:\Downloads\Test\Album 2\75 - Track 075.flac
D:\Downloads\Test\Album 2\76 - Track 076.flac
D:\Downloads\Test\Album 2\77 - Track 077.flac
D:\Downloads\Test\Album 2\78 - Track 078.flac
D:\Downloads\Test\Album 2\79 - Track 079.flac
D:\Downloads\Test\Album 2\8 - Track 008.flac
D:\Downloads\Test\Album 2\80 - Track 080.flac
D:\Downloads\Test\Album 2\81 - Track 081.flac
D:\Downloads\Test\Album 2\82 - Track 082.flac
D:\Downloads\Test\Album 2\83 - Track 083.flac
D:\Downloads\Test\Album 2\84 - Track 084.flac
D:\Downloads\Test\Album 2\85 - Track 085.flac
D:\Downloads\Test\Album 2\86 - Track 086.flac
D:\Downloads\Test\Album 2\87 - Track 087.flac
D:\Downloads\Test\Album 2\88 - Track 088.flac
D:\Downloads\Test\Album 2\89 - Track 089.flac
D:\Downloads\Test\Album 2\9 - Track 009.flac
D:\Downloads\Test\Album 2\90 - Track 090.flac
D:\Downloads\Test\Album 2\91 - Track 091.flac
D:\Downloads\Test\Album 2\92 - Track 092.flac
D:\Downloads\Test\Album 2\93 - Track 093.flac
D:\Downloads\Test\Album 2\94 - Track 094.flac
D:\Downloads\Test\Album 2\95 - Track 095.flac
D:\Downloads\Test\Album 2\96 - Track 096.flac
D:\Downloads\Test\Album 2\97 - Track 097.flac
D:\Downloads\Test\Album 2\98 - Track 098.flac
D:\Downloads\Test\Album 2\99 - Track 099.flac
D:\Downloads\Test\Album 2\Cover.jpg
Again a total mess... were the "correct way" wold be:

Code: Select all

D:\Downloads\Test\Album 2\001 - Track 001.flac
D:\Downloads\Test\Album 2\002 - Track 002.flac
D:\Downloads\Test\Album 2\003 - Track 003.flac
D:\Downloads\Test\Album 2\004 - Track 004.flac
D:\Downloads\Test\Album 2\005 - Track 005.flac
D:\Downloads\Test\Album 2\006 - Track 006.flac
D:\Downloads\Test\Album 2\007 - Track 007.flac
D:\Downloads\Test\Album 2\008 - Track 008.flac
D:\Downloads\Test\Album 2\009 - Track 009.flac
D:\Downloads\Test\Album 2\010 - Track 010.flac
D:\Downloads\Test\Album 2\011 - Track 011.flac
D:\Downloads\Test\Album 2\012 - Track 012.flac
D:\Downloads\Test\Album 2\013 - Track 013.flac
D:\Downloads\Test\Album 2\014 - Track 014.flac
D:\Downloads\Test\Album 2\015 - Track 015.flac
D:\Downloads\Test\Album 2\016 - Track 016.flac
D:\Downloads\Test\Album 2\017 - Track 017.flac
D:\Downloads\Test\Album 2\018 - Track 018.flac
D:\Downloads\Test\Album 2\019 - Track 019.flac
D:\Downloads\Test\Album 2\020 - Track 020.flac
D:\Downloads\Test\Album 2\021 - Track 021.flac
D:\Downloads\Test\Album 2\022 - Track 022.flac
D:\Downloads\Test\Album 2\023 - Track 023.flac
D:\Downloads\Test\Album 2\024 - Track 024.flac
D:\Downloads\Test\Album 2\025 - Track 025.flac
D:\Downloads\Test\Album 2\026 - Track 026.flac
D:\Downloads\Test\Album 2\027 - Track 027.flac
D:\Downloads\Test\Album 2\028 - Track 028.flac
D:\Downloads\Test\Album 2\029 - Track 029.flac
D:\Downloads\Test\Album 2\030 - Track 030.flac
D:\Downloads\Test\Album 2\031 - Track 031.flac
D:\Downloads\Test\Album 2\032 - Track 032.flac
D:\Downloads\Test\Album 2\033 - Track 033.flac
D:\Downloads\Test\Album 2\034 - Track 034.flac
D:\Downloads\Test\Album 2\035 - Track 035.flac
D:\Downloads\Test\Album 2\036 - Track 036.flac
D:\Downloads\Test\Album 2\037 - Track 037.flac
D:\Downloads\Test\Album 2\038 - Track 038.flac
D:\Downloads\Test\Album 2\039 - Track 039.flac
D:\Downloads\Test\Album 2\040 - Track 040.flac
D:\Downloads\Test\Album 2\041 - Track 041.flac
D:\Downloads\Test\Album 2\042 - Track 042.flac
D:\Downloads\Test\Album 2\043 - Track 043.flac
D:\Downloads\Test\Album 2\044 - Track 044.flac
D:\Downloads\Test\Album 2\045 - Track 045.flac
D:\Downloads\Test\Album 2\046 - Track 046.flac
D:\Downloads\Test\Album 2\047 - Track 047.flac
D:\Downloads\Test\Album 2\048 - Track 048.flac
D:\Downloads\Test\Album 2\049 - Track 049.flac
D:\Downloads\Test\Album 2\050 - Track 050.flac
D:\Downloads\Test\Album 2\051 - Track 051.flac
D:\Downloads\Test\Album 2\052 - Track 052.flac
D:\Downloads\Test\Album 2\053 - Track 053.flac
D:\Downloads\Test\Album 2\054 - Track 054.flac
D:\Downloads\Test\Album 2\055 - Track 055.flac
D:\Downloads\Test\Album 2\056 - Track 056.flac
D:\Downloads\Test\Album 2\057 - Track 057.flac
D:\Downloads\Test\Album 2\058 - Track 058.flac
D:\Downloads\Test\Album 2\059 - Track 059.flac
D:\Downloads\Test\Album 2\060 - Track 060.flac
D:\Downloads\Test\Album 2\061 - Track 061.flac
D:\Downloads\Test\Album 2\062 - Track 062.flac
D:\Downloads\Test\Album 2\063 - Track 063.flac
D:\Downloads\Test\Album 2\064 - Track 064.flac
D:\Downloads\Test\Album 2\065 - Track 065.flac
D:\Downloads\Test\Album 2\066 - Track 066.flac
D:\Downloads\Test\Album 2\067 - Track 067.flac
D:\Downloads\Test\Album 2\068 - Track 068.flac
D:\Downloads\Test\Album 2\069 - Track 069.flac
D:\Downloads\Test\Album 2\070 - Track 070.flac
D:\Downloads\Test\Album 2\071 - Track 071.flac
D:\Downloads\Test\Album 2\072 - Track 072.flac
D:\Downloads\Test\Album 2\073 - Track 073.flac
D:\Downloads\Test\Album 2\074 - Track 074.flac
D:\Downloads\Test\Album 2\075 - Track 075.flac
D:\Downloads\Test\Album 2\076 - Track 076.flac
D:\Downloads\Test\Album 2\077 - Track 077.flac
D:\Downloads\Test\Album 2\078 - Track 078.flac
D:\Downloads\Test\Album 2\079 - Track 079.flac
D:\Downloads\Test\Album 2\080 - Track 080.flac
D:\Downloads\Test\Album 2\081 - Track 081.flac
D:\Downloads\Test\Album 2\082 - Track 082.flac
D:\Downloads\Test\Album 2\083 - Track 083.flac
D:\Downloads\Test\Album 2\084 - Track 084.flac
D:\Downloads\Test\Album 2\085 - Track 085.flac
D:\Downloads\Test\Album 2\086 - Track 086.flac
D:\Downloads\Test\Album 2\087 - Track 087.flac
D:\Downloads\Test\Album 2\088 - Track 088.flac
D:\Downloads\Test\Album 2\089 - Track 089.flac
D:\Downloads\Test\Album 2\090 - Track 090.flac
D:\Downloads\Test\Album 2\091 - Track 091.flac
D:\Downloads\Test\Album 2\092 - Track 092.flac
D:\Downloads\Test\Album 2\093 - Track 093.flac
D:\Downloads\Test\Album 2\094 - Track 094.flac
D:\Downloads\Test\Album 2\095 - Track 095.flac
D:\Downloads\Test\Album 2\096 - Track 096.flac
D:\Downloads\Test\Album 2\097 - Track 097.flac
D:\Downloads\Test\Album 2\098 - Track 098.flac
D:\Downloads\Test\Album 2\099 - Track 099.flac
D:\Downloads\Test\Album 2\100 - Track 100.flac
D:\Downloads\Test\Album 2\101 - Track 101.flac
D:\Downloads\Test\Album 2\102 - Track 102.flac
D:\Downloads\Test\Album 2\103 - Track 103.flac
D:\Downloads\Test\Album 2\104 - Track 104.flac
D:\Downloads\Test\Album 2\105 - Track 105.flac
D:\Downloads\Test\Album 2\106 - Track 106.flac
D:\Downloads\Test\Album 2\107 - Track 107.flac
D:\Downloads\Test\Album 2\108 - Track 108.flac
D:\Downloads\Test\Album 2\109 - Track 109.flac
D:\Downloads\Test\Album 2\110 - Track 110.flac
D:\Downloads\Test\Album 2\111 - Track 111.flac
D:\Downloads\Test\Album 2\112 - Track 112.flac
D:\Downloads\Test\Album 2\113 - Track 113.flac
D:\Downloads\Test\Album 2\114 - Track 114.flac
D:\Downloads\Test\Album 2\115 - Track 115.flac
D:\Downloads\Test\Album 2\116 - Track 116.flac
D:\Downloads\Test\Album 2\117 - Track 117.flac
D:\Downloads\Test\Album 2\118 - Track 118.flac
D:\Downloads\Test\Album 2\119 - Track 119.flac
D:\Downloads\Test\Album 2\120 - Track 120.flac
D:\Downloads\Test\Album 2\121 - Track 121.flac
D:\Downloads\Test\Album 2\122 - Track 122.flac
D:\Downloads\Test\Album 2\123 - Track 123.flac
D:\Downloads\Test\Album 2\124 - Track 124.flac
D:\Downloads\Test\Album 2\125 - Track 125.flac
D:\Downloads\Test\Album 2\126 - Track 126.flac
D:\Downloads\Test\Album 2\127 - Track 127.flac
D:\Downloads\Test\Album 2\128 - Track 128.flac
D:\Downloads\Test\Album 2\129 - Track 129.flac
D:\Downloads\Test\Album 2\130 - Track 130.flac
D:\Downloads\Test\Album 2\131 - Track 131.flac
D:\Downloads\Test\Album 2\132 - Track 132.flac
D:\Downloads\Test\Album 2\133 - Track 133.flac
D:\Downloads\Test\Album 2\134 - Track 134.flac
D:\Downloads\Test\Album 2\135 - Track 135.flac
D:\Downloads\Test\Album 2\136 - Track 136.flac
D:\Downloads\Test\Album 2\137 - Track 137.flac
D:\Downloads\Test\Album 2\138 - Track 138.flac
D:\Downloads\Test\Album 2\139 - Track 139.flac
D:\Downloads\Test\Album 2\140 - Track 140.flac
D:\Downloads\Test\Album 2\141 - Track 141.flac
D:\Downloads\Test\Album 2\142 - Track 142.flac
D:\Downloads\Test\Album 2\143 - Track 143.flac
D:\Downloads\Test\Album 2\144 - Track 144.flac
D:\Downloads\Test\Album 2\145 - Track 145.flac
D:\Downloads\Test\Album 2\146 - Track 146.flac
D:\Downloads\Test\Album 2\147 - Track 147.flac
D:\Downloads\Test\Album 2\148 - Track 148.flac
D:\Downloads\Test\Album 2\149 - Track 149.flac
D:\Downloads\Test\Album 2\150 - Track 150.flac
D:\Downloads\Test\Album 2\151 - Track 151.flac
D:\Downloads\Test\Album 2\152 - Track 152.flac
D:\Downloads\Test\Album 2\153 - Track 153.flac
D:\Downloads\Test\Album 2\154 - Track 154.flac
D:\Downloads\Test\Album 2\155 - Track 155.flac
D:\Downloads\Test\Album 2\156 - Track 156.flac
D:\Downloads\Test\Album 2\157 - Track 157.flac
D:\Downloads\Test\Album 2\158 - Track 158.flac
D:\Downloads\Test\Album 2\159 - Track 159.flac
D:\Downloads\Test\Album 2\160 - Track 160.flac
D:\Downloads\Test\Album 2\161 - Track 161.flac
D:\Downloads\Test\Album 2\162 - Track 162.flac
D:\Downloads\Test\Album 2\163 - Track 163.flac
D:\Downloads\Test\Album 2\164 - Track 164.flac
D:\Downloads\Test\Album 2\165 - Track 165.flac
D:\Downloads\Test\Album 2\166 - Track 166.flac
D:\Downloads\Test\Album 2\167 - Track 167.flac
D:\Downloads\Test\Album 2\168 - Track 168.flac
D:\Downloads\Test\Album 2\169 - Track 169.flac
D:\Downloads\Test\Album 2\170 - Track 170.flac
D:\Downloads\Test\Album 2\171 - Track 171.flac
D:\Downloads\Test\Album 2\172 - Track 172.flac
D:\Downloads\Test\Album 2\173 - Track 173.flac
D:\Downloads\Test\Album 2\174 - Track 174.flac
D:\Downloads\Test\Album 2\175 - Track 175.flac
D:\Downloads\Test\Album 2\176 - Track 176.flac
D:\Downloads\Test\Album 2\177 - Track 177.flac
D:\Downloads\Test\Album 2\178 - Track 178.flac
D:\Downloads\Test\Album 2\179 - Track 179.flac
D:\Downloads\Test\Album 2\180 - Track 180.flac
D:\Downloads\Test\Album 2\181 - Track 181.flac
D:\Downloads\Test\Album 2\Cover.jpg
My suggestion wold be that:
The tool identifies the total number of tracks selected for auto-increment and correspondingly adding the necessary "0s"

Fore example:
If i select less than 99 tracks for auto-increment start with:
01 - Title
02 - Title

If i select less than 999 but more than 99 tracks for auto-increment start with:
001 - Title
002 - Title

and so on and so forward...

It can be a check box on the "Auto-increment Track #s" window... "add 00s on the front"

Thanks for the attention. \o/
Last edited by 4ug3jw57 on Mon Jun 24, 2024 5:43 am, edited 2 times in total.
Lowlander
Posts: 58316
Joined: Sat Sep 06, 2003 5:53 pm

Re: [REQ] Auto-increment Track #s behavior

Post by Lowlander »

I use $If(<Disc #>,<Disc #:2>-,)<Track #:2>. in Auto-Organize Files and use normal Track# and Disc# in the files and Plex has no issue with that.

The problem with any available tool is that it works on the file level. In other words, they're not aware of any other files on the Album.
4ug3jw57
Posts: 26
Joined: Mon Oct 15, 2012 6:29 pm

Re: [REQ] Auto-increment Track #s behavior

Post by 4ug3jw57 »

Lowlander wrote: Sat Jun 22, 2024 11:36 am I use $If(<Disc #>,<Disc #:2>-,)<Track #:2>. in Auto-Organize Files and use normal Track# and Disc# in the files and Plex has no issue with that.

The problem with any available tool is that it works on the file level. In other words, they're not aware of any other files on the Album.
Hello.
Interesting the "$If(<Disc #>,<Disc #:2>,)<Track #:2>" helps but only on cases were the disc has less than 99 tracks, it doesn't solve the problem, for example:
If i have a disc with more than 99 tracks:

Code: Select all

01 - Track 001
02 - Track 002
03 - Track 003
04 - Track 004
05 - Track 005
06 - Track 006
07 - Track 007
08 - Track 008
09 - Track 009
10 -  Track 010
100 - Track 100
101 - Track 101
...
If i change to "$If(<Disc #>,<Disc #:2>.,)$If(<Track #:2>,<Track #:3>,)" it becomes even more complicated because now it makes this mess in albums with less than 99 tracks per disk but more than 99 per album
Image

I think that's related with what you said... "The problem with any available tool is that it works on the file level. In other words, they're not aware of any other files on the Album." but in this case related to the organizing tool.

However, i don't think that's apply to my suggestion because the "Auto-increment Track #s" tool works with the selected tracks, not an album or folder... (It could determine the number of "00s" related with the number of selected tracks)
Image

The idea is to write the "correct" "0s" to the tag "Track #" so wen viewing in the library and wen organizing or auto-organizing files it wold all work perfectly with no adjustments needed per album or disc.
The simple <disc #> and <track #> wold work in any scenario. (i think) :)
Last edited by 4ug3jw57 on Sat Jun 22, 2024 4:53 pm, edited 2 times in total.
Lowlander
Posts: 58316
Joined: Sat Sep 06, 2003 5:53 pm

Re: [REQ] Auto-increment Track #s behavior

Post by Lowlander »

You can just do $If(<Disc #>,<Disc #:2>-,)<Track #:3>. instead. All track#'s will be 3 digit, but that shouldn't cause any problems.
4ug3jw57
Posts: 26
Joined: Mon Oct 15, 2012 6:29 pm

Re: [REQ] Auto-increment Track #s behavior

Post by 4ug3jw57 »

Lowlander wrote: Sat Jun 22, 2024 3:41 pm You can just do $If(<Disc #>,<Disc #:2>-,)<Track #:3>. instead. All track#'s will be 3 digit, but that shouldn't cause any problems.
In certain way it works yes but in the end it would only "invert" the problem...

I will use "$If(<Disc #>,<Disc #:2>,)<Track #:3>" fore the examples

Example Alpha, an Album with two discs, the first with 12 tracks and the second with 8 tracks it would look like so:

Code: Select all

1001 - Track 01
1002 - Track 02
1003 - Track 03
1004 - Track 04
1005 - Track 05
1006 - Track 06
1007 - Track 07
1008 - Track 08
1009 - Track 09
1010 - Track 10
1011 - Track 11
1012 - Track 12
2001 - Track 01
2002 - Track 02
2003 - Track 03
2004 - Track 04
2005 - Track 05
2006 - Track 06
2007 - Track 07
2008 - Track 08
Example Bond, James Bond, an album with only 1 disc and 9 tracks

Code: Select all

001 - Track 01
002 - Track 02
003 - Track 03
004 - Track 04
005 - Track 05
006 - Track 06
007 - Track 07
008 - Track 08
009 - Track 09
Example PI, an album with 14 discs

Code: Select all

...
09001 - Track 01
09002 - Track 02
09003 - Track 03
09004 - Track 04
10001 - Track 01
10002 - Track 02
10003 - Track 03
10004 - Track 04
10005 - Track 05
11001 - Track 01
11002 - Track 02
11003 - Track 03
12001 - Track 01
12002 - Track 02
12003 - Track 03
13001 - Track 01
13002 - Track 02
14001 - Track 01
14002 - Track 02
14003 - Track 03
Now we have too many "0s" :lol: :)
Lowlander
Posts: 58316
Joined: Sat Sep 06, 2003 5:53 pm

Re: [REQ] Auto-increment Track #s behavior

Post by Lowlander »

As Plex uses internal tags when avaialble it shouldn't matter what the filenaes are. However anyone can create an Addon to sole specific scenarious. The biggest issue to overcome is evaluating an Album instead of a file. This seems more of a Regular Expressions Addon issu, whcih doesn't exist for MMW5.
4ug3jw57
Posts: 26
Joined: Mon Oct 15, 2012 6:29 pm

Re: [REQ] Auto-increment Track #s behavior

Post by 4ug3jw57 »

Lowlander wrote: Sat Jun 22, 2024 5:01 pm As Plex uses internal tags when avaialble it shouldn't matter what the filenaes are. However anyone can create an Addon to sole specific scenarious. The biggest issue to overcome is evaluating an Album instead of a file. This seems more of a Regular Expressions Addon issu, whcih doesn't exist for MMW5.
I just used the PLEX recommended structure as a example manly because i use it without knowing for years and digital albums normally use something similar...

I don't know how it works internally but can't the native included "Auto-increment Track #s" (Tools/Edit tags/Auto-increment Track #s) tool be improved for such a function?
Image
I ask because again, it works by numbering the selected tracks, not an album or folder... (It could determine the number of "0s" related with the number of selected tracks) and it could be a checkbox option for user that want to use this method...

In the programing side would it "just" be a case of a variable "if" number of selected itens is > than X do this or "if" number of selected itens is < than X do that. Or something like that, i really don't know just imagining things right now, sorry i don't want to downplay the complexity of such implementation.

I am sorry for persisting on the matter, but i really think it wold improve the workflow of many users.
Last edited by 4ug3jw57 on Sat Jun 22, 2024 6:19 pm, edited 1 time in total.
Lowlander
Posts: 58316
Joined: Sat Sep 06, 2003 5:53 pm

Re: [REQ] Auto-increment Track #s behavior

Post by Lowlander »

It is likely beyond the scope intended for this included Addon. However more comprehensive Addons can be created by anyone interested in doing so.
4ug3jw57
Posts: 26
Joined: Mon Oct 15, 2012 6:29 pm

Re: [REQ] Auto-increment Track #s behavior

Post by 4ug3jw57 »

Lowlander wrote: Sat Jun 22, 2024 6:00 pm It is likely beyond the scope intended for this included Addon. However more comprehensive Addons can be created by anyone interested in doing so.
I am not a programmer, i do not know what i am doing but i edited the "Auto-increment Track #s" original function "actions_add.js" and made it work correctly.

Video: https://www.dropbox.com/scl/fi/gx80n4so ... ctb0n&dl=0

Hope it will be viewed as incentive for a real programmer to implement it properly on future MM releases.

"\MediaMonkey\Scripts\autoIncTrack\actions_add.js"

Code: Select all

// This script fills in track #s incrementally and adds leading zeros

actions.autoIncTrackNumbers = {
    title: _('Auto-increment Track #s') + '...',
    hotkeyAble: true,
    icon: 'add',
    disabled: uitools.notMediaListSelected,
    visible: window.uitools.getCanEdit,
    execute: async function () {
        var list = await uitools.getSelectedTracklist().whenLoaded();
        if (list.count === 0) {
            return;
        }
        var dlg = uitools.openDialog('dlgInputText', {
            show: true,
            modal: true,
            type: 'number',
            defaultValue: 1,
            min: 1,
            max: 9999,
            title: _('Auto-increment Track #s'),
            helpContext: 'Editing Track Properties#Edit Tags',
            description: sprintf(_('This will modify the track# field in sequential order for the %d selected tracks.') + ' ' + _('Do you want to proceed?'), list.count) + '<br/><br/>' + _('Start numbering from:'),
        });

        dlg.whenClosed = function () {
            if (dlg.modalResult === 1) {
                var value = dlg.getValue('getTextInput')();
                if (value) {
                    value = Number(value);

                    // Calculate number of digits required for formatting
                    var numDigits = Math.max(Math.floor(Math.log10(list.count)) + 1, 2);

                    // Process all selected tracks
                    list.forEach(function (itm, index) {
                        itm.trackNumberInt = value + index;
                        itm.trackNumber = padLeft(itm.trackNumberInt.toString(), numDigits, '0');
                    });
                    list.commitAsync();
                }
            }
        };
        app.listen(dlg, 'closed', dlg.whenClosed);

        // Function to pad numbers with leading zeros
        function padLeft(numberString, width, paddingChar) {
            return numberString.padStart(width, paddingChar);
        }
    }
}

window._menuItems.editTags.action.submenu.push({
    action: actions.autoIncTrackNumbers,
    order: 10,
    grouporder: 10
});
Thanks for the help.
Last edited by 4ug3jw57 on Mon Jun 24, 2024 5:43 am, edited 1 time in total.
4ug3jw57
Posts: 26
Joined: Mon Oct 15, 2012 6:29 pm

Re: [REQ] Auto-increment Track #s behavior

Post by 4ug3jw57 »

4ug3jw57 wrote: Sun Jun 23, 2024 6:21 am
Lowlander wrote: Sat Jun 22, 2024 6:00 pm It is likely beyond the scope intended for this included Addon. However more comprehensive Addons can be created by anyone interested in doing so.
I am not a programmer, i do not know what i am doing but i edited the "Auto-increment Track #s" original function "actions_add.js" and made it work correctly.

Video: https://www.dropbox.com/scl/fi/gx80n4so ... ctb0n&dl=0

Hope it will be viewed as incentive for a real programmer to implement it properly on future MM releases.

"\MediaMonkey\Scripts\autoIncTrack\actions_add.js"

Code: Select all

// This script fills in track #s incrementally and adds leading zeros

actions.autoIncTrackNumbers = {
    title: _('Auto-increment Track #s') + '...',
    hotkeyAble: true,
    icon: 'add',
    disabled: uitools.notMediaListSelected,
    visible: window.uitools.getCanEdit,
    execute: async function () {
        var list = await uitools.getSelectedTracklist().whenLoaded();
        if (list.count === 0) {
            return;
        }
        var dlg = uitools.openDialog('dlgInputText', {
            show: true,
            modal: true,
            type: 'number',
            defaultValue: 1,
            min: 1,
            max: 9999,
            title: _('Auto-increment Track #s'),
            helpContext: 'Editing Track Properties#Edit Tags',
            description: sprintf(_('This will modify the track# field in sequential order for the %d selected tracks.') + ' ' + _('Do you want to proceed?'), list.count) + '<br/><br/>' + _('Start numbering from:'),
        });

        dlg.whenClosed = function () {
            if (dlg.modalResult === 1) {
                var value = dlg.getValue('getTextInput')();
                if (value) {
                    value = Number(value);

                    // Calculate number of digits required for formatting
                    var numDigits = Math.max(Math.floor(Math.log10(list.count)) + 1, 2);

                    // Process all selected tracks
                    list.forEach(function (itm, index) {
                        itm.trackNumberInt = value + index;
                        itm.trackNumber = padLeft(itm.trackNumberInt.toString(), numDigits, '0');
                    });
                    list.commitAsync();
                }
            }
        };
        app.listen(dlg, 'closed', dlg.whenClosed);

        // Function to pad numbers with leading zeros
        function padLeft(numberString, width, paddingChar) {
            return numberString.padStart(width, paddingChar);
        }
    }
}

window._menuItems.editTags.action.submenu.push({
    action: actions.autoIncTrackNumbers,
    order: 10,
    grouporder: 10
});
Thanks for the help.
As a recommendation i suggest the Auto-organize or Organize Files rule to be like so:

...\Music\<Album Artist>\<Year> - <Album>\$If(<Disc #>,<Disc #:2>.,)<Track #> - <Title>

Works like a charm and looks beautiful :)

Album with 10 discs
Image

Digital Album (no disc number)
Image
Post Reply