yavdr / yavdr-ansible

ansible playbooks for yaVDR
GNU General Public License v3.0
11 stars 10 forks source link

Mark mounted disk in recording list #30

Open MegaV0lt opened 2 years ago

MegaV0lt commented 2 years ago

https://github.com/yavdr/yavdr-ansible/blob/38d5fb1d63f9cde06edb32bf2fe3826773c01c1c/roles/udiskie/templates/udiskie_vdr_mount_helper.j2#L17

Mark mounted disk in recordin list for better user-expirience. target="${videodir}/[${mount_path##*/}]" # /video/[USB_HD] Resulting in: Auswahl_145

Much better to find, as disklabel is differend when using disfdferent disks

Other possible markings are '=> USB_HD' or '_USB_HD' for example

seahawk1986 commented 2 years ago

There can be more than one external drive and it isn't necessarily a hard disk, so a static string would not lead to an unique name - how about a suffix like [External Drive] (similar to the markings used by avahi-linker)?

MegaV0lt commented 2 years ago

target="${videodir}/[${mount_path##*/}]" # /video/[DRIVE_NAME]

This is not a static link. It just adds the '[' and ']'

The 'USB_HD' ist just a sample. My drive is named 'USB_HD'. Another drive i have is named 'Seagate'. The Link then is '[Seagate]'