[mythtv] CD/DVD/Writer Detection and Idea

Aaron McCarthy mccarthy.aaron at gmail.com
Sat May 27 07:35:28 UTC 2006


On Saturday 27 May 2006 04:00, Matthew Wire wrote:
> What I am suggesting is that some sort of cd detection class is created
> that can be used for all detection needs.  It would need methods such as
> getCDDriveList, isCD, isDVD, isCDWriter, isDVDWriter (or similar).  This
> would make cd device selection much simpler in my opinion and the user
> would not have to deal with device names.
> For IDE devices, device names can be mapped to the description
> in /proc/ide/hd*/model.  There must be a similar method for scsi, usb
> drives.
> Not sure how/if this would want integration with mythmediamonitor or
> not?
> Not sure if USB/Firewire cd devices would show up
> in /proc/sys/dev/cdrom/info?
> Also, not sure where this would want to be implemented as yet, though if
> I read the developer docs a little better I should be able to get a
> better idea - any help welcome though!
>
> Please note that I am quite happy to code this myself, but I want to
> throw it into the open first to get some opinions and ideas.

You wont need to do that.  Here is the code that does it.  I wrote this ages 
ago to go along with some changes to MythGallery to archive photos to DVD.  
These may not apply to latest SVN anymore.


--
Aaron McCarthy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 43_cd_capabilities.diff
Type: text/x-diff
Size: 5085 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20060527/3cb02e6a/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 44_cdwriters.diff
Type: text/x-diff
Size: 28933 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20060527/3cb02e6a/attachment-0001.bin 


More information about the mythtv-dev mailing list