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

Audio editors, music players, video players, burning software, etc.
Post Reply
Message
Author
plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

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

#1 Post 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.
Attachments
pcue-0.9.pet
2019-10-12 version
(70.41 KiB) Downloaded 85 times
uni2ascii-4.18-i486.pet
compiled in Precise - not required
(69.66 KiB) Downloaded 434 times
uni2ascii-4.18.tar.bz2
source code - not required
(124.15 KiB) Downloaded 416 times
mkcue-1.0.tar.gz
source package - not required, made my own script makecue
(93.04 KiB) Downloaded 708 times
mkcue-1.0.pet
compiled in Racy 5.3 - not required, made my own script makecue
(3.32 KiB) Downloaded 704 times
Last edited by plinej on Sat 12 Oct 2019, 17:32, edited 17 times in total.
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#2 Post by plinej »

Here's a sample of the gui using txt2tag.
Attachments
txt2tag.jpg
(106.74 KiB) Downloaded 773 times
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#3 Post by plinej »

had a bug in the tagview script. 0.1.1 is up now.
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#4 Post by plinej »

had a bug in the txt2tag script. 0.1.2 is up now.
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#5 Post by plinej »

updated to 0.1.3
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#6 Post by plinej »

updated to 0.1.4

The pcue script had a bug in 0.1.3
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#7 Post 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.
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#8 Post by plinej »

0.1.6 has been uploaded - bugfix
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#9 Post by plinej »

0.1.7 is up. Just some bug fixes.
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#10 Post 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.
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#11 Post by plinej »

updated to version 0.1.9

fixed some bugs
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#12 Post by plinej »

uploaded most recent version
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

Post Reply