Opened 13 years ago

Closed 13 years ago

#4556 closed enhancement (fixed)

Automate creation of special storage groups

Reported by: sphery <mtdean@…> Owned by: cpinkham
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

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.

Attachments (1)

mythtv-special_storage_groups.patch (5.0 KB) - added by sphery <mtdean@…> 13 years ago.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by sphery <mtdean@…>

comment:1 Changed 13 years ago by cpinkham

Owner: changed from Isaac Richards to cpinkham
Status: newassigned

comment:2 Changed 13 years ago by cpinkham

Resolution: fixed
Status: assignedclosed

(In [15699]) Rework some internals in the StorageGroup? class to make it easier to add some special groups that are being worked on.

This patch also makes it so that you can no longer create new scheduled recordings to go into the LiveTV Storage Group. If you want to put a regular recording in the same dir as LiveTV recordings, then you need to create a new Storage Group pointed at the same directory or add that directory to an existing Storage Group.

Closes #4556 using patch by Michael T. Dean.

Note: See TracTickets for help on using tickets.