--- vdr2dvd.sh.ok	2009-06-25 21:01:40.000000000 +0200
+++ vdr2dvd.sh	2009-06-25 21:29:45.000000000 +0200
@@ -857,15 +857,15 @@
 	local Number=1
 	until [ $Number -gt $DVDMENU_ENTRY_MAX ]
 	do
-		if [ -s ${UniqueDir[Number]}/info.vdr ]
+		if [ -s ${UniqueDir[Number]}/info ]
 		then
-			[ $(cat ${UniqueDir[Number]}/info.vdr|grep "^D "|cut -c3-|wc -c) -gt 1 ] &&
-			    nice -n $PRIO cat ${UniqueDir[Number]}/info.vdr|grep "^D "|cut -c3- > ${UniqueDir[Number]}/suma_label.txt ||
+			[ $(cat ${UniqueDir[Number]}/info|grep "^D "|cut -c3-|wc -c) -gt 1 ] &&
+			    nice -n $PRIO cat ${UniqueDir[Number]}/info|grep "^D "|cut -c3- > ${UniqueDir[Number]}/suma_label.txt ||
 			    echo "${SubTitel[Number]} / ${Record[Number]}" > ${UniqueDir[Number]}/suma_label.txt
-		elif [ -s ${UniqueDir[Number]}/summary.vdr ]
+		elif [ -s ${UniqueDir[Number]}/summary ]
 		then
-			[ $(cat ${UniqueDir[Number]}/summary.vdr) -gt 1 ] &&
-			    nice -n $PRIO cat ${UniqueDir[Number]}/summary.vdr > ${UniqueDir[Number]}/suma_label.txt ||
+			[ $(cat ${UniqueDir[Number]}/summary) -gt 1 ] &&
+			    nice -n $PRIO cat ${UniqueDir[Number]}/summary > ${UniqueDir[Number]}/suma_label.txt ||
 			    echo "${SubTitel[Number]} / ${Record[Number]}" > ${UniqueDir[Number]}/suma_label.txt
 		else
 			echo "${SubTitel[Number]} / ${Record[Number]}" > ${UniqueDir[Number]}/suma_label.txt
@@ -890,10 +890,10 @@
 		then
 			# Precedence 1: take information from demuxer
 			local frames=`cat ${UniqueDir[Number]}/FRAMES.txt`
-		elif [ -f "${UniqueDir[Number]}/index.vdr" ]
+		elif [ -f "${UniqueDir[Number]}/index" ]
 		then
-			# Precedence 2: take information from index.vdr
-			local size="`stat "${UniqueDir[Number]}/index.vdr" | grep "Size:" | awk '{ print $2 }'`"
+			# Precedence 2: take information from index
+			local size="`stat "${UniqueDir[Number]}/index" | grep "Size:" | awk '{ print $2 }'`"
 			local frames=$[ $size / 8 ]
 		fi
 
@@ -1034,10 +1034,10 @@
 
 		pushd ${UniqueDir[Number]} >>$STDOUT
 		local pxfiles=""
-		[ -f $i/marks.vdr ] && cp $i/marks.vdr ${UniqueDir[Number]}
-		[ -f $i/summary.vdr ] && cp $i/summary.vdr ${UniqueDir[Number]}
-		[ -f $i/info.vdr ] && cp $i/info.vdr ${UniqueDir[Number]}
-		[ -f $i/index.vdr ] && cp $i/index.vdr ${UniqueDir[Number]}
+		[ -f $i/marks ] && cp $i/marks ${UniqueDir[Number]}
+		[ -f $i/summary ] && cp $i/summary ${UniqueDir[Number]}
+		[ -f $i/info ] && cp $i/info ${UniqueDir[Number]}
+		[ -f $i/index ] && cp $i/index ${UniqueDir[Number]}
 
  		for file in $i/*.srt
                 do
@@ -1122,7 +1122,7 @@
 			echo "${Record[Number]}" >${UniqueDir[Number]}/Titel.txt
 		      ;;
 		    px)
-			local vdrfiles=`$LS $i/[0-9][0-9][0-9].vdr`
+			local vdrfiles=`$LS $i/[0-9][0-9][0-9][0-9]*.ts`
 			for l in $vdrfiles
 			do
 				local len=`$LS -Ls $l|awk '{print $1}'`
@@ -1173,10 +1173,10 @@
 		      ;;
 		    pva)	
 			# VDR Files zusammenf�hren
-			nice -n ${PRIO} cat $i/[0-9][0-9][0-9].vdr >>${UniqueDir[Number]}/001.vdr
+			nice -n ${PRIO} cat $i/[0-9][0-9][0-9][0-9]*.ts >>${UniqueDir[Number]}/00001.ts
 			# Winpfad erstellen
 			local WINEPFAD=`echo ${UniqueDir[Number]}|sed 's/\//\\\/g'`
-			local WINEFILE="demux \"Z:${WINEPFAD}\\001.vdr\" \"Z:${WINEPFAD}\\001.mpv\" \"Z:${WINEPFAD}\\001.mpa\""
+			local WINEFILE="demux \"Z:${WINEPFAD}\\00001.ts\" \"Z:${WINEPFAD}\\001.mpv\" \"Z:${WINEPFAD}\\001.mpa\""
 			## Jobfile anlegen
 			echo "offeryn pvas job v000001" > ${UniqueDir[Number]}/demux.ajb
 			echo "\$JOB" >> ${UniqueDir[Number]}/demux.ajb
@@ -1706,21 +1706,21 @@
 04:00:00,04:10:00,04:20:00,04:30:00,04:40:00,04:50:00"
 		;;
 	    marks)
-		if [ -r marks.vdr ]
+		if [ -r marks ]
 		then
-	    	      printf "%s," 0 > chapters.vdr
-	    	      marklines=`cat marks.vdr|wc -l|awk '{print $1}'`
+	    	      printf "%s," 0 > chapters
+	    	      marklines=`cat marks|wc -l|awk '{print $1}'`
 	    	      let marklines=marklines-1
 	    
-	    	      for t in `cat marks.vdr|head -n $marklines|cut -f1 -d'.'`
+	    	      for t in `cat marks|head -n $marklines|cut -f1 -d'.'`
 	    	      do
-	        	  printf "%s," $t >> chapters.vdr
+	        	  printf "%s," $t >> chapters
 	    	      done
-	    	      for t in `cat marks.vdr|tail -n 1|cut -f1 -d'.'`
+	    	      for t in `cat marks|tail -n 1|cut -f1 -d'.'`
 	    	      do
-	        	  printf "%s\n" $t >> chapters.vdr
+	        	  printf "%s\n" $t >> chapters
 	    	      done
-		      DVDAUTHORCHAPTERS=`cat chapters.vdr`
+		      DVDAUTHORCHAPTERS=`cat chapters`
 		else
                       DVDAUTHORCHAPTERS=\
 "00:00:00,00:15:00,00:30:00,00:45:00,01:00:00,01:15:00,01:30:00,01:45:00,\
@@ -3232,15 +3232,15 @@
 		fi
     
 		epg_pages[Number]=0
-		if [ -s ${UniqueDir[Number]}/info.vdr ]
+		if [ -s ${UniqueDir[Number]}/info ]
 		then
-			[ $(cat ${UniqueDir[Number]}/info.vdr|grep "^D "|cut -c3- |wc -c) -gt 1 ] &&
-			    nice -n $PRIO cat ${UniqueDir[Number]}/info.vdr|grep "^D "|cut -c3- | nice -n $PRIO fold -w $DVD_EPGCHARSPERLINE -s >${UniqueDir[Number]}/suma.txt ||
+			[ $(cat ${UniqueDir[Number]}/info|grep "^D "|cut -c3- |wc -c) -gt 1 ] &&
+			    nice -n $PRIO cat ${UniqueDir[Number]}/info|grep "^D "|cut -c3- | nice -n $PRIO fold -w $DVD_EPGCHARSPERLINE -s >${UniqueDir[Number]}/suma.txt ||
 			    echo "${Record[Number]}" >${UniqueDir[Number]}/suma.txt
-		elif [ -s ${UniqueDir[Number]}/summary.vdr ]
+		elif [ -s ${UniqueDir[Number]}/summary ]
 		then
-			[ $(cat ${UniqueDir[Number]}/summary.vdr | wc -c) -gt 1 ] && 
-			    nice -n $PRIO cat ${UniqueDir[Number]}/summary.vdr | nice -n $PRIO fold -w $DVD_EPGCHARSPERLINE -s >${UniqueDir[Number]}/suma.txt ||
+			[ $(cat ${UniqueDir[Number]}/summary | wc -c) -gt 1 ] && 
+			    nice -n $PRIO cat ${UniqueDir[Number]}/summary | nice -n $PRIO fold -w $DVD_EPGCHARSPERLINE -s >${UniqueDir[Number]}/suma.txt ||
 			    echo "${Record[Number]}" >${UniqueDir[Number]}/suma.txt
 		else
 			echo "${Record[Number]}" >${UniqueDir[Number]}/suma.txt
