Pcdripper (PBcdripper) - version 2.9 posted

Stuff that has yet to be sorted into a category.
Locked
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#16 Post by MU »

you could rduce the height of the textarea at bottom:

/usr/local/PBcdripper/ripgui.tpl

replace:

Code: Select all

<frame scan disc results:>
    <edit>
      <variable>INFO</variable>
with:

Code: Select all

<frame scan disc results:>
    <edit>
    <width>150</width>
    <height>140</height>
      <variable>INFO</variable>
The width is ignored, but the height now fits in 800x600.

Mark

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

#17 Post by plinej »

Thanks Mark, I'm almost done restructuring the whole thing to make it smaller.

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

#18 Post by plinej »

Updated to 0.5

I moved a bunch of things around to make the gui smaller and added a help button which will open up in dillo. Please let me know if it looks okay in a 800x600 screen.

I also added the rip to a single track checkbox and when the rip button is pushed the script that gets executed will be displayed in the results window.

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

#19 Post by plinej »

updated to 0.5b:

I forgot to add a "&" after the help command. Now you can view the help and leave it open and still use the gui. I also added a little more to the help section.

The last thing I can think of that would be a good idea is have a button that will run your pre-defined user defaults. I'll have to think about how to implement that.

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

#20 Post by plinej »

updated to 0.6

Please someone let me know if the size is okay for a 800x600 screen now.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#21 Post by Flash »

Plinej, you're making changes so fast it's hard to test them all. :) Will installing a new version completely replace the old one, or do I have to do more?

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

#22 Post by plinej »

Installing the newest version will just overwrite the old.

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

#23 Post by plinej »

Updated to 0.7 and possibly final (unless someone finds a bug). I'm pretty happy with how it turned out and I can't think of any other options that would be useful.

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

#24 Post by plinej »

Updated to 1.0

Forgot to work on klhrevolutionist's request for a user default button so I quickly thought of a way to include that and put it in this version. Please post any bugs or requests and I'll continue to work on this as time permits. Click on the HELP button for details on the new options.

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

#25 Post by plinej »

I do see a problem, when I don't use the bluex gtk theme the words don't line up with the icons for the buttons. I'll have to work on that.

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

#26 Post by plinej »

updated to 1.1

fixed the button label issue

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#27 Post by Dougal »

plinej: have you added the saved-user-settings?

I don't know how it works in Puppybasic, but with shell-scripts you can jusr source a file. So you can save the params the user chose in a file that looks like this:

Code: Select all

PARAM1="bla"
PARAM2="blaa"
...
Then you source it at the beginning of the script (or after you initialize the variables in it)
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

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

#28 Post by plinej »

The user default set button copies the executable script and all the necessary files it needs to read from /tmp and puts them in /root/.pbcdripper

Then when you click on the user button it will copy all the files from /root/.pbcdripper
and execute the script.

You just need to click the set button once all your options are set. The options get backed up. The next time you run PBcdripper click on user and it will execute the backed up options. The options won't be displayed in the gui though.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#29 Post by MU »

you can include files in a Puppybasic script:

main.pb

Code: Select all

#!/usr/bin/puppybasic
include "/usr/lib/wxbasicscript/basefunctions.inc"

include "stuff.inc"

print a

print "end"
stuff.inc

Code: Select all

print "printed from stuff.inc"

a="test"
Another solution:

Code: Select all

configstuff = readfiletolist("myconfig.conf")
conf1 = configstuff[0]
conf2 = configstuff[1]
Here the config has no variables or code, only the values itself.

myconfig.conf

Code: Select all

aaa
bbb
To save values:

Code: Select all

conf1 = "aaa"
conf2 = "bbb"
writestringtofile("myconfig.conf" , conf1)
appendstringtofile("myconfig.conf" , conf2)
Or with a list:

Code: Select all

conf = {}
conf[0] = "aaa"
conf[1] = "bbb"
writelisttofile("myconfig.conf" , conf)
Mark
Last edited by MU on Fri 27 Oct 2006, 14:29, edited 1 time in total.

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

#30 Post by plinej »

Thanks Mark, I'll give it a try.

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

#31 Post by klhrevolutionist »

plinej: To answer your question about the size of the frame, no.

But I fixed it for my machine. You need to resize your "scan disc results frame"
to 'w 120' 'h 120'

Other than that I am satisfied & hope you mention this app to BK so as to replace ripperX. That is unless you do not wish to not update..

My first request was for a quick cd rip to a chosen directory. I suggest a couple other quick buttons to do other jobs. If your up to it.

Personally I have been working on some small scripts to do simple task like converting this to that...
Heaven is on the way, until then let's get the truth out!

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

#32 Post by plinej »

Thanks klhrevolutionist, I'll update the results box size. As for the quick rip function you can use the set button after setting all of your defaults and click on the user button to execute them. Everytime afterwards you can just click on the user button to execute your pre-designated defaults. The /root/.pbcdripper folder will need to be backed up for this to work. I, or maybe Mark, will work on implementing a better user default setup but for now it'll work the way I specified. You can read more in the help section of the app.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#33 Post by Flash »

Plinej, where does PBcdripper put the mp3 files? If I tell it to put them all in the same folder, will it overwrite old files with new files of the same name? (Sorry, I downloaded your program but haven't got to the library yet to check out a CD book to try it on.)

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

#34 Post by plinej »

Select the directory you want to rip to by clicking the folder button, and yes files will be overwritten if you rip to the same directory. I would just rip disc 1 with "disc01-" in the preceding name for tracks field and "disc02-" for disc 2 and so on. That way the newer files won't overwrite the old and you can rip to the same folder.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#35 Post by Flash »

Thanks. I'll try it this weekend. :D

Locked