Filebrowser-commands.conf

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(M)
Zeile 3: Zeile 3:
 
{{Box Datei | $VDRCONFIG/plugins/filebrowser/commands.conf |
 
{{Box Datei | $VDRCONFIG/plugins/filebrowser/commands.conf |
 
<pre>
 
<pre>
Mkdir:*:mkdir %D && echo Created %D
+
cp:*:cp -r %M %D:br
Copy:*:cp -r %M %D && echo Copied %M to %D
+
mv:*:mv %M %D:br
Move:*:mv %M %D && echo Moved %M to %D
+
mkdir:*:mkdir %D:s
Cat:!file %f | grep -q text:cat %f
+
rm?:*:rm -rf %m:br
Tail:!file %f | grep -q text:tail -f %f
+
ln:*:ln -vfs %M %D:s
Execute?:!test -x %f -a -f %f:%f
+
cat:*:cat %f:br
Remove?:*:rm -rf %m && echo Removed %M
+
tail:*:tail -f %f
File type:*:file %f
+
file:*:file %f:r
Mount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/fstab >&1 >/dev/null:mount %f
+
mount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/fstab >&1 >/dev/null:mount %f:r
Unmount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/mtab >&1 >/dev/null:umount %f
+
umount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/mtab >&1 >/dev/null:umount %f:r
Playlist:*:for p in %M ; do echo ${p/#\/\///} ; done > /tmp/playlist && echo Created /tmp/playlist
+
execute?:+(*.pl|*.sh):%f
Unrar (p):*.rar:cd "$(dirname %f)" ; unrar -p"$(basename %D)" -y e %f
+
playlist:*:for p in %M ; do echo ${p/#\/\///} ; done > /tmp/playlist:br
Unrar:*.rar:cd "$(dirname %f)" ; unrar -y e %f
+
unrar:+(*.rar|*.RAR):cd "$(dirname %f)" ; unrar -y e %f
Unrar (list):*.rar:unrar l %f
+
unrar p:+(*.rar|*.RAR):cd "$(dirname %f)" ; unrar -p"$(basename %D)" -y e %f
Symlink:*:ln -vfs %M %D
+
unrar l:+(*.rar|*.RAR):unrar l %f:br
Avi2mpg:*.avi:ffmpeg -i %f -s 720x576 -b 6000 -vcodec mpeg2video -acodec mp2 -ab 224 -ar 48000 -ac 2 %f.mpg
+
avi2mpg:*.avi:ffmpeg -i %f -s 720x576 -b 6000 -vcodec mpeg2video -acodec mp2 -ab 224 -ar 48000 -ac 2 %f.mpg
Vdr2mp3:*.vdr:ffmpeg -i %f -acodec mp3 -ab 192 -ar 44100 %f.mp3
+
vdr2mp3:*.vdr:ffmpeg -i %f -acodec mp3 -ab 192 -ar 44100 %f.mp3
 
</pre>
 
</pre>
 
}}
 
}}
  
 
[[Kategorie:Konfigurationsdateien]]
 
[[Kategorie:Konfigurationsdateien]]

Version vom 9. März 2006, 18:34 Uhr

Konfigurationsdatei des filebrowser-plugins.

Datei
$VDRCONFIG/plugins/filebrowser/commands.conf
cp:*:cp -r %M %D:br
mv:*:mv %M %D:br
mkdir:*:mkdir %D:s
rm?:*:rm -rf %m:br
ln:*:ln -vfs %M %D:s
cat:*:cat %f:br
tail:*:tail -f %f
file:*:file %f:r
mount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/fstab >&1 >/dev/null:mount %f:r
umount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/mtab >&1 >/dev/null:umount %f:r
execute?:+(*.pl|*.sh):%f
playlist:*:for p in %M ; do echo ${p/#\/\///} ; done > /tmp/playlist:br
unrar:+(*.rar|*.RAR):cd "$(dirname %f)" ; unrar -y e %f
unrar p:+(*.rar|*.RAR):cd "$(dirname %f)" ; unrar -p"$(basename %D)" -y e %f
unrar l:+(*.rar|*.RAR):unrar l %f:br
avi2mpg:*.avi:ffmpeg -i %f -s 720x576 -b 6000 -vcodec mpeg2video -acodec mp2 -ab 224 -ar 48000 -ac 2 %f.mpg
vdr2mp3:*.vdr:ffmpeg -i %f -acodec mp3 -ab 192 -ar 44100 %f.mp3