[mythtv-commits] Ticket #4556: Automate creation of special storage groups
MythTV
mythtv at cvs.mythtv.org
Wed Jan 30 21:50:29 UTC 2008
#4556: Automate creation of special storage groups
----------------------------------------------+-----------------------------
Reporter: sphery <mtdean at thirdcontact.com> | Owner: ijr
Type: enhancement | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: head
Severity: medium | Mlocked: 0
----------------------------------------------+-----------------------------
The attached patch automates creation of special storage groups (i.e.
Thumbnails, DB Backups, Video Posters, Archive, ...). It ensures that the
group name is translated for display in the StorageGroupListEditor, but
not translated within the DB. To add a new special group, simply add
another '<< "Group Name"' to the StorageGroup::kSpecialGroups
initialization.
Any storage group in kSpecialGroups will not be shown in the scheduled
recording editor, so these groups cannot be chosen as a location for
recording shows. This will prevent users from recording multi-gigabyte
shows to, i.e., the root partition, which they may want to use only for
preview pixmaps (Thumbnails) or some other small data store. Currently,
LiveTV is included in kSpecialGroups, so it will no longer be shown in the
list. Instead, users who want to record some shows into the
directory(ies) used for LiveTV should create another, better-named storage
group with the same or similar list of directories. (If you want LiveTV
as an option in the scheduled recording editor, please let me know and
I'll modify the patch to allow it--by removing it from the "NOT IN" in
StorageGroup::getRecordingsGroups().)
The patch also assumes the DB name of the storage group will equal the
untranslated display name. Currently, the only existing special group,
"LiveTV," meets this critera, and future special groups can be named with
this in mind.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/4556>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list