Package: python3-dvdvideo
Version: 0.20130117+nmu1

I'm trying to use dvdvideo-backup-image from a script, and would like to
know if the copying succeeded or not.  But the exit code from
dvdvideo-backup-image is 0 even if it fail.  Please change it to return
an exit code when it fail.

Here are some examples:

pi@mpd /media/music/rip $ dvdvideo-backup-image /dev/dvd foo.iso; echo $?
ERROR:root:Got exception
Traceback (most recent call last):
  File "/usr/bin/dvdvideo-backup-image", line 274, in <module>
    main(stream, *args)
  File "/usr/bin/dvdvideo-backup-image", line 176, in main
    media = MediaUdf(input)
  File "/usr/lib/python3/dist-packages/dvdvideo/media.py", line 56, in __init__
    f = DvdCssFile(filename)
  File "/usr/lib/python3/dist-packages/dvdvideo/media.py", line 30, in __init__
    f = open(filename, 'rb')
IOError: [Errno 123] No medium found: '/dev/dvd'
0
pi@mpd /media/music/rip $ dvdvideo-backup-image /dev/dvd foo.iso; echo $?
ERROR:root:Got exception
Traceback (most recent call last):
  File "/usr/bin/dvdvideo-backup-image", line 274, in <module>
    main(stream, *args)
  File "/usr/bin/dvdvideo-backup-image", line 176, in main
    media = MediaUdf(input)
  File "/usr/lib/python3/dist-packages/dvdvideo/media.py", line 66, in __init__
    self.video_dir = 
self.udf.volume.partitions[0].fileset.root.tree['VIDEO_TS'].entry.tree
  File "/usr/lib/python3/dist-packages/dvdvideo/udf/filesystem.py", line 113, 
in __getattr__
    self._populate()
  File "/usr/lib/python3/dist-packages/dvdvideo/udf/filesystem.py", line 138, 
in _populate
    f = FileIdentifier(self._media, self._volume, self._partition_nr, tag, 
buf[cur:])
  File "/usr/lib/python3/dist-packages/dvdvideo/udf/filesystem.py", line 170, 
in __init__
    self.name = OSTACompressedUnicode(buf[38 + length_iu:38 + length_iu + 
length_fi])
  File "/usr/lib/python3/dist-packages/dvdvideo/udf/general.py", line 43, in 
__new__
    raise NotImplementedError
NotImplementedError
0
pi@mpd /media/music/rip $ 

-- 
Happy hacking
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to