Difference between revisions of "Burnmark.sh"

From VDR Wiki
Jump to: navigation, search
(initial)
 
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
#!/bin/sh
 
#!/bin/sh
 
#
 
#
# burnmark.sh - v.0.1
+
# burnmark.sh - v.0.2
 
#
 
#
 
# add this lines to your reccmds.conf:
 
# add this lines to your reccmds.conf:
Line 9: Line 9:
 
# Mark for DVD-Writer : /usr/local/bin/burnmark.sh -add
 
# Mark for DVD-Writer : /usr/local/bin/burnmark.sh -add
 
# Delete Mark : /usr/local/bin/burnmark.sh -del
 
# Delete Mark : /usr/local/bin/burnmark.sh -del
  +
#
  +
# history
  +
# --------
  +
#
  +
# 20041206,randy: added osd text for deletions
  +
#
 
 
 
case "${1}" in
 
case "${1}" in
-add)
+
-add)
touch "${2}/burnmark.vdr"
+
touch "${2}/burnmark.vdr"
echo "The recording was marked..."
+
if grep -qs "^OSDLanguage = 1" /etc/vdr/setup.conf ; then
echo ""
+
echo "Die Aufzeichnung wurde markiert..."
  +
echo ""
echo "Please change now into the DVD burner menu, or mark further recordings."
 
  +
echo "Bitte wechseln Sie nun in das Menü DVD-Brenner, oder markieren Sie weitere Aufnahme."
;;
 
-del)
+
else
rm -f "${2}/burnmark.vdr"
+
echo "The recording was marked..."
;;
+
echo ""
  +
echo "Please change now into the DVD burner menu, or mark further recordings."
  +
fi
  +
;;
  +
-del)
  +
rm -f "${2}/burnmark.vdr"
  +
if grep -qs "^OSDLanguage = 1" /etc/vdr/setup.conf ; then
  +
echo "Die Aufzeichnung wurde aus der Warteschlange entfernt."
  +
echo ""
  +
else
  +
echo "The recording was removed from the queue."
  +
echo ""
  +
fi
  +
;;
 
esac
 
esac
   
  +
<!-- Link to german wiki page -->
[[Category:Scripts]]
 
  +
[[de:Burnmark.sh]]

Latest revision as of 10:53, 6 December 2004

This script marks a recording for the burn-plugin by placing the file burnmark.vdr into the recordings directory.

#!/bin/sh
#
# burnmark.sh - v.0.2
#
# add this lines to your reccmds.conf:
# folgende zeilen in die reccmds.conf eintragen:
#
# Mark for DVD-Writer : /usr/local/bin/burnmark.sh -add
# Delete Mark         : /usr/local/bin/burnmark.sh -del
#
# history
# --------
#
# 20041206,randy: added osd text for deletions
#

case "${1}" in
    -add)
       touch "${2}/burnmark.vdr"
       if grep -qs "^OSDLanguage = 1" /etc/vdr/setup.conf ; then
           echo "Die Aufzeichnung wurde markiert..."
           echo ""
           echo "Bitte wechseln Sie nun in das Menü DVD-Brenner, oder markieren Sie weitere Aufnahme."
       else
           echo "The recording was marked..."
           echo ""
           echo "Please change now into the DVD burner menu, or mark further recordings."
       fi
       ;;
    -del)
       rm -f "${2}/burnmark.vdr"
       if grep -qs "^OSDLanguage = 1" /etc/vdr/setup.conf ; then
           echo "Die Aufzeichnung wurde aus der Warteschlange entfernt."
           echo ""
       else
           echo "The recording was removed from the queue."
           echo ""
       fi
       ;;
esac