Page 1 of 1

pcue-0.9 - tagging audio files from .cue, .txt, and more

Posted: Sun 02 Sep 2012, 16:21
by plinej
I made some more scripts to tag audio files from .cue, .txt, and also the ability to edit a full directory of audio files at once. I decided I didn't want this to depend on cuetools so I wrote my own cue parsing script which I think works better than cuetools. You can start the scripts from the menu, from rox (right click on .flac, .txt, or .cue files), or from the command line.

I added the ability to tag other audio formats besides the default flac format. All of the other formats will require that ptag be installed:

ptag can be downloaded in the following thread: http://www.murga-linux.com/puppy/viewtopic.php?t=69948

------------------------------------------------------------------------------------

When selecting a .cue file you will have the options to split the entire album to individual flac files and tagging the files or tagging audio files that are already split.

This option below will tag audio files from the specified cue for audio files that are already split (-s option). The -d option is specified if you don't want to rename the files to $ALBUM-$DISCNUMBER$TRACKNUMBER-$TITLE. Don't use the -d if you want to rename. If you don't use the -s or -d it will split the file to individual flac files, tag, and rename. To split the files you will need shntool installed.

for flac (default):

Code: Select all

pcue your_cue_file.cue -s -d
for mp3 (or any other ptag supported format):

Code: Select all

pcue your_cue_file.cue -s -d -t=mp3
shntool can be found here:
http://www.murga-linux.com/puppy/viewto ... 04&t=69767

------------------------------------------------------------------------------------

Selecting a .txt file to tag a directory of audio files:

for flac (default):

Code: Select all

txt2tag your_text_file.txt
for mp3 (or any other audio format supported by ptag):

Code: Select all

txt2tag your_text_file.txt -t=mp3
example txt file:

Code: Select all

The Allman Brothers Band
Garden State Arts Center, Holmdel, NJ
1996-06-25

Source:AKG 398>Aerco>Sony D5>Cassette Master    Section B Left Center Row J
Transfer:Cassette Master>Denon DRW 840>(Pass Thru) Sony R300 SBM>Optical>MeritLine USB Adapter>PC>CD Wave>FLAC Frontend (Level 8)
Taped & Transfered: Freddie G

1. Don't Want You No More  
2. It's Not My Cross To Bear  
3. Ain't Wastin' Time No More  
4. Ramblin' Man  
5. Good Clean Fun  
6. Worried Down With The Blues  
7. Tombstone Eyes  
8. Stand Back  
9. True Gravity  
10. I Know I Oughta Leave  
11. End Of The Line  
12. Change My Way of Living  
13. No One To Run With  
14. Back Where It All Begins  
ENC:
15. Franklins Tower Jam>Blue Sky  
16. Whipping Post 
1) edit your text file so the Artist name is on the line before the Album name and both are within the first 4 lines

2) the Comment will consist of the line that starts with 'source' (if applicable)

3) track names must be preceded by the track number on individual lines of the text file

4) audio files need to be in same directory as the txt file

------------------------------------------------------------------------------------

To edit a full directory of audio files meta data:

for flac (default):

Code: Select all

tagview -c
for mp3 (or any other format supported by ptag):

Code: Select all

tagview -c -t=mp3
The -c option is to create a .cue file from parsed meta data. pcue will then open the created .cue file. The script will get the album specific meta data from the first track only and the rest of the tracks will only display tracknumber, title, and performer. If you don't use the -c option the metadata will just be displayed in the terminal and nothing else will be done.[/url]

---------------------------------------------------------------------------------------------------

as of version 0.1.5

added a script called cddb_cue that will rip a cd using cdparanoia, use cddb_query and/or CD Text information to gather information about the disc, and use mkcue (source and compiled package attached) to create a cue file. If you choose to separate tracks the cue file will be opened in pcue. cddb_cue is the command line tool and cddb_cue_gui can be loaded from the menu for a gui.

Posted: Sun 02 Sep 2012, 16:25
by plinej
Here's a sample of the gui using txt2tag.

Posted: Mon 03 Sep 2012, 00:49
by plinej
had a bug in the tagview script. 0.1.1 is up now.

Posted: Mon 03 Sep 2012, 23:56
by plinej
had a bug in the txt2tag script. 0.1.2 is up now.

Posted: Mon 24 Sep 2012, 15:18
by plinej
updated to 0.1.3

Posted: Sat 29 Sep 2012, 02:11
by plinej
updated to 0.1.4

The pcue script had a bug in 0.1.3

Posted: Thu 13 Dec 2012, 21:57
by plinej
0.1.5 is up

fixed some bugs among other things as well as creating a script/gui for cd ripping and creating cue files. See first post for more info.

Posted: Wed 16 Jan 2013, 03:51
by plinej
0.1.6 has been uploaded - bugfix

Posted: Sat 17 Aug 2013, 15:07
by plinej
0.1.7 is up. Just some bug fixes.

Posted: Wed 21 Aug 2013, 00:47
by plinej
Updated to version 0.1.8. I updated to Puppy Precise and noticed my remove_special_characters script wasn't working properly like it did in Racy. I updated the script and had to make it use uni2ascii. It will only use it if found, otherwise it will use iconv to remove any non ASCII characters.

Posted: Sat 02 Nov 2013, 14:44
by plinej
updated to version 0.1.9

fixed some bugs

Posted: Sat 12 Oct 2019, 17:27
by plinej
uploaded most recent version