summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive/Media.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MDV/Draklive/Media.pm')
-rw-r--r--lib/MDV/Draklive/Media.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/MDV/Draklive/Media.pm b/lib/MDV/Draklive/Media.pm
index a6242c1..6cd5d33 100644
--- a/lib/MDV/Draklive/Media.pm
+++ b/lib/MDV/Draklive/Media.pm
@@ -29,4 +29,9 @@ sub get_media_fs_module {
$fs eq 'iso9660' ? 'isofs' : $fs eq 'ext2' ? @{[]} : $fs;
}
+sub get_media_label {
+ my ($media) = @_;
+ first($media->get_media_setting('source') =~ /^LABEL=(.*)$/);
+}
+
1;