Opened 11 years ago

Closed 11 years ago

#6271 closed enhancement (wontfix)

mythvideo storagegroups

Reported by: gnassas@… Owned by: Anduin Withers
Priority: minor Milestone: unknown
Component: Plugin - MythVideo Version: unknown
Severity: low Keywords:
Cc: Ticket locked: no

Description

Following on Greg's commit earlier this patch converts videometadata from a prefix/absolute path format to a storage group / relative path form. #4623 is a prerequisite.

Only filenames are modified. I'd like to put coverfiles in the same storage group so I can keep them next to videos but that isn't done here.

An update is needed to videoutils' GetVideoDirsByHost?. It's basically a two liner:

StorageGroup? vids("Videos", host); return vids.GetDirList?();

Not sure what to do about empty hosts and I'm not set up to test remote transfers so I didn't do anything.

Included is a script to save the current videos setup so you can roll back painlessly. Use it like so:

sh create-mythvideo-rollback.sh > mv.1022.sql

Attachments (2)

19997.vidsg.patch (4.2 KB) - added by gnassas@… 11 years ago.
create-mythvideo-rollback.sh (325 bytes) - added by gnassas@… 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by gnassas@…

Attachment: 19997.vidsg.patch added

Changed 11 years ago by gnassas@…

comment:1 Changed 11 years ago by robertm

Resolution: wontfix
Status: newclosed

Hi George,

Thanks a lot for this patch-- It seems that the decision that we've come to for now is that .22 will have SG and local video groups coexist side by side. If in the future we go to an SG-only setup, then we'll need code a bit like this as well as some code for the metadata image migration. When/if the prerequisite parts of #4623 get applied and if we go SG only for videos (still some issues to work out w/ that) we can revisit this (and I'll definitely solicit your help on the list. Closing for the moment.

Note: See TracTickets for help on using tickets.