Vob-Copy

Discussion about user contributed plugins

Moderator: Moderator

mydani
Posts: 58
Joined: Wed Oct 31, 2007 4:04 pm

Vob-Copy

Postby mydani » Tue Sep 16, 2008 8:55 pm

Beware: Newest version can be downloaded from the wiki: http://wiki.mymediasystem.org/wiki/inde ... s#Vobcopy_:

Pyglet for copying DVDs... not highly sophisticated but - it works. :)
Unfortunately I can't upload it because I don't have a wiki user.
Maybe someone can upload it (or create me an wiki user)
:D
Last edited by mydani on Sat Sep 27, 2008 11:46 am, edited 2 times in total.

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: Vob-Copy

Postby Uatschitchun » Wed Sep 17, 2008 8:08 am

Hi, I've split up this post as it is an own topic (own plugin ;)

For to add it to Wiki, get yourself a user account in wiki and tell me your username so I can add you to editors!
Lg
Roman

mydani
Posts: 58
Joined: Wed Oct 31, 2007 4:04 pm

Re: Vob-Copy

Postby mydani » Thu Sep 18, 2008 11:12 am

Username is mydani

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: Vob-Copy

Postby Uatschitchun » Fri Sep 19, 2008 6:10 am

Added to editors
Lg

Roman

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Re: Vob-Copy

Postby arj » Mon Sep 22, 2008 9:10 pm

This seems quite useful! Cool stuff :)

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: Vob-Copy

Postby Uatschitchun » Wed Sep 24, 2008 5:49 pm

Few things:
Pls call the pyglet "main.py" as so one doesn't have to enter the folder but is able to start the pyglet directly!
(Read this thread, pls: http://forum.mymediasystem.org/viewtopic.php?f=20&t=959)

Second:
The path in vobcopy.py is wrong, as the pyglets get installed within subdirs underneath /etc/mms/scripts/, the pyglet will reside in:
/etc/mms/scripts/vobcopy-0.1/vobcopy.py
and the vobcopy.sh is:
/etc/mms/scripts/vobcopy-0.1/vobcopy.sh
:!:

Nice would be, if you could make such variables separate within the pyglet and the sh-file ... helping the user to find the places to adapt!
Somthing like this, but with SCRIPTDIR:

Code: Select all

# Change this
# BASERDIR and DOWNLOADDIR must exist
# and mms user must have write access
#
########################################
BASEDIR = '/tmp'
DOWNLOADDIR = '/tmp'

same counts for the sh-file ... defining the values for DVD and COPYDIR on top of script would help a lot.

Btw ... quite elegant would be to parse DVD-mountpoint from MMS' Config, as it is defined there.

So if you parse the Mountpoint from Config (maybe defineable in main.py, like: if MOUNTPOINT is empty, parse from Config, else use the defined dir) and define the variable for DEST-DIR in main.py (fka vobcopy.py), you could pass the dest-dir to vobcopy.sh (like: vobcopy.sh MOUNTPOINT DEST-DIR) ...

With this, the user only has one place to change: main.py (and that's like all other pyglets do it).

Code: Select all

# Change this
# MOUNTPOINT and DEST-DIR must exist
# and mms user must have write access
# to DEST-DIR!
# If MOUNTPOINT is empty, it will get parsed
# from MMS' Config
########################################
MOUNTPOINT =
DEST-DIR = '/media/vobs'


Lastly, a nice little icon for your pyglet would be fine :P

Ah ... another one ;)
Your pyglet could be the ideal base for a call-scripts-from-pyglets-instead-of-games-plugin-sceleton!!
Adding another variable defining the script to use, the user could just copy&paste this sceleton for every script he/she needs :roll:
Lg

Roman

mydani
Posts: 58
Joined: Wed Oct 31, 2007 4:04 pm

Re: Vob-Copy

Postby mydani » Thu Sep 25, 2008 9:12 am

Hello all,

sorry for not structuring the pyglet as it should be. I'll update it...
I like the idea of a script sceleton, so I'll prepare this as well, adding some code to parse configuration values.

But for the "vobcopy pyglet" I have some other things in mind - I'm currently writing a small gui which reads the name of the DVD, then asks the user if he wants to store it in the default or another path, then starts the vobcopy and finally parses the logfile for errors.

Unfortunately this will take a few days... :mrgreen:

cu!

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: Vob-Copy

Postby Uatschitchun » Fri Sep 26, 2008 5:39 am

Good things need time ;)
Lg

Roman

mydani
Posts: 58
Joined: Wed Oct 31, 2007 4:04 pm

Re: Vob-Copy

Postby mydani » Sat Sep 27, 2008 11:45 am

That's right. This is why I already prepared a first version. :mrgreen:

http://wiki.mymediasystem.org/wiki/inde ... s#Vobcopy_:

Please have a look!


Return to “user plugins”

Who is online

Users browsing this forum: No registered users and 4 guests