Auteur Topic: sabnzbplus en post-proc voor newzbin  (gelezen 4024 keer)

Offline daferra

  • Bedankjes
  • -Gegeven: 0
  • -Ontvangen: 0
  • Berichten: 4
sabnzbplus en post-proc voor newzbin
« Gepost op: 06 januari 2008, 20:55:12 »
Hi all,

Ik heb enige moeite om dit script te gebruiken.

Citaat
#! /bin/bash
   
set -u
# Turn off case sensitivity for AWK
IGNORECASE=1

# LOG_PATH="/var/log/sabnzbd/postproc.log"
LOG_PATH="/opt/var/log/sabnzbd/postproc.log"

#  Set your base Folder destinations here
TVDEST="/volume1/storage/udownloads/TV"
MOVIEDEST="/volume1/storage/udownloads/Movies"
XXXDEST="/volume1/storage/udownloads/Adult"
TEMPFOLDER="/volume1/storage/udownloads/vobtemp"
# Default is to not delete original folder - only delete it if it is being processed
REMOVE=NO

# PROCESS is used to copy or move files.  if it is set to CP then REMOVE above is ignored.  good for testing without losing source folder
# YOU MUST SET THIS TO mv to cleanup the original download folder

PROCESS=cp


####  ---  There should be no need to change anything below this line ----


STARTTIME="`date -dtoday +"%d %b %Y  %T"`"

echo "" >> $LOG_PATH
echo "----- Started Processing: $STARTTIME -----" >> $LOG_PATH
echo "----- Started Processing: $STARTTIME -----"

CATEGORY_NAME=`echo $1 | awk -F [/] '{print $(NF-1)}'`

echo $2 >> $LOG_PATH
echo $2

echo "Category: $CATEGORY_NAME" >> $LOG_PATH
echo "Category: $CATEGORY_NAME"


FOLDER_PATH="$1"
FOLDER_NAME=`echo $FOLDER_PATH | awk -F [/] '{print $NF}'`


echo "Folder Path: $FOLDER_PATH" >> $LOG_PATH
echo "Folder Path: $FOLDER_PATH"

cd "$FOLDER_PATH"


####################
# Music Processing #
####################

# if [ $CATEGORY_NAME = "Music" ]
#    then
#    FILE_COUNTER=1
#    NUM_OF_FILES=`ls -1 | wc -l`
#    while [ $FILE_COUNTER -le $NUM_OF_FILES ]
#    do
#       if [ `ls -1 |sed -n ''$FILE_COUNTER'p' | awk -F [.] '{print $NF}'` = "mp3" ]
#          then
#          FILENAME=`ls -1 |sed -n ''$FILE_COUNTER'p'`
#          APPLESCRIPT_PATH=`echo $FOLDER_PATH/$FILENAME | sed 's///Macintosh HD:/' | sed 's///:/g'`
#          osascript -e "tell application "iTunes" to add file "$APPLESCRIPT_PATH""
#       fi
#       ((FILE_COUNTER++))
#    done
#    growlnotify -i mp3 -m "Added $FOLDER_NAME mp3 files to iTunes"
#     $PROCESS "$FOLDER_PATH" "$USENET_COMPLETE/$CATEGORY_NAME/A_$FOLDER_NAME"
# fi
#
# exit 0

####################
# Video Processing #
####################


if [ $CATEGORY_NAME = "Movies" -o $CATEGORY_NAME = "XXX" -o $CATEGORY_NAME = "TV" ]  
    then
   case $CATEGORY_NAME in
     Movies) MOVIE_DESTINATION_DIRECTORY="$MOVIEDEST"
      AVIJOIN=TRUE
           MOVIE_NAME="`echo $FOLDER_NAME | sed 's/ (.*)//g'`"
           echo "Movie Name: $MOVIE_NAME" >> $LOG_PATH
           echo "Movie Name: $MOVIE_NAME"
      VIDEO_TITLE="$MOVIE_NAME"
      MOVIE_DESTINATION_DIRECTORY="$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME"
      ;;
     XXX)   MOVIE_DESTINATION_DIRECTORY="$XXXDEST"
      AVIJOIN=TRUE
      # Determine (aka guess) if the content is media from a particular website
      SITECONTENT=`echo $FOLDER_NAME | grep ".com"`

      if [ "$SITECONTENT" != ""  ]
         then    
              echo "Site:`echo "$SITECONTENT" | awk -F " - " '{print $1}' | tr [A-Z] [a-z]`" >> $LOG_PATH
              echo "Site:`echo "$SITECONTENT" | awk -F " - " '{print $1}' | tr [A-Z] [a-z]`"
          
              MOVIE_NAME=`echo "$SITECONTENT" | awk -F " - " '{print $2" "$3}'`
              echo "Clip:$MOVIE_NAME" >> $LOG_PATH
              echo "Clip:$MOVIE_NAME"

              MOVIE_DESTINATION_DIRECTORY=$MOVIE_DESTINATION_DIRECTORY/"`echo "$SITECONTENT" | awk -F " - " '{print $1}' | tr [A-Z] [a-z]`"
         else
              MOVIE_NAME=`echo $FOLDER_NAME | sed 's/ (.*)//g'`
                          echo "Movie Name: $MOVIE_NAME" >> $LOG_PATH
                          echo "Movie Name: $MOVIE_NAME"
              VIDEO_TITLE="$MOVIE_NAME"
              MOVIE_DESTINATION_DIRECTORY="$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME"
      fi
      ;;
     TV)   MOVIE_DESTINATION_DIRECTORY="$TVDEST"
      AVIJOIN=FALSE
      
      #Remove any text inside brackets  - could be year, or DVD Number
      OPT_NAME="`echo $FOLDER_NAME | sed 's/ (.*)//g' | sed 's/ [.*]//g'`"
      
      # Determine how processing is handled.  2 arguments = Season / DVD  3 = Singular Episode
      # Newzbin posts usually include '[DVD #]' if it is a DVD.
      # Processing is aborted if '[DVD #]' or if the word 'Season' doesnt appear in title

      case `echo $FOLDER_NAME | awk -F " - " '{print NF}'` in
         2)   echo "Checking if Season or DVD"
         if [ "`echo "$FOLDER_NAME" | grep -i "DVD"`" != "" ]
             then
            SHOW_NAME=`echo "$OPT_NAME" | sed 's/_//g' | awk -F " - " '{print $1}'`
            echo $OPT_NAME
            SEASON_NUMBER="`echo "$OPT_NAME" | awk -F "Season " '{print $2}'`"
            DISC=`echo "$FOLDER_NAME" | sed 's/[//g' | sed 's/]//g' | awk -F "DVD " '{print $2}'`
            MOVIE_NAME="S$SEASON_NUMBER""D$DISC"
            VIDEO_TITLE="$SHOW_NAME - $MOVIE_NAME"
            echo "Content is a Season $SEASON_NUMBER DVD from $SHOW_NAME"
             else
            if [ "`echo "$FOLDER_NAME" | grep -i "season"`" != "" ]
               then
                  SHOW_NAME=`echo $OPT_NAME | sed 's/_//g' | awk -F " - " '{print $1}'`
                  SEASON_NUMBER=`echo $OPT_NAME | awk -F " - " '{print $2}' | awk -F "Season " '{print $2}'`

                  echo "Content is Season $SEASON_NUMBER episodes from $SHOW_NAME"
            else
                     echo "Cannot Determine type of TV Content.  Exiting processing" >> $LOG_PATH      
                     echo "Cannot Determine type of TV Content.  Exiting processing"       
                     exit 1
            fi
         fi
            ;;
         3)   echo "Content is a single episode"
         SHOW_NAME=`echo $OPT_NAME | sed 's/_//g' | awk -F " - " '{print $1}'`
         SEASON_NUMBER=`echo $OPT_NAME | awk -F " - " '{print $2}' | awk -F "x" '{print $1}'`
         EPISODE_NUMBER=`echo $OPT_NAME | awk -F " - " '{print $2}' | awk -F "x" '{print $2}'`
         MOVIE_NAME="`echo $OPT_NAME |  awk -F " - " '{print $2" "$3}'`"
                         ;;
         *)    # TV download is likely not a particular season or episode.  The source folder can be moved
               echo "Cannot Determine type of TV Content.  Exiting processing" >> $LOG_PATH      
               echo "Cannot Determine type of TV Content.  Exiting processing"       
               exit 1
               ;;
      esac

      # Make TV Show Folders and update Destination Directory

      if [ `find "$MOVIE_DESTINATION_DIRECTORY/$SHOW_NAME" -type d | wc -l` -eq 0 ]
         then
            echo "Making Show folder: $MOVIE_DESTINATION_DIRECTORY/$SHOW_NAME" >> $LOG_PATH
            echo "Making Show folder: $MOVIE_DESTINATION_DIRECTORY/$SHOW_NAME"
            mkdir "$MOVIE_DESTINATION_DIRECTORY/$SHOW_NAME"
      fi
   
      if [ `find "$MOVIE_DESTINATION_DIRECTORY/$SHOW_NAME/Season $SEASON_NUMBER" -type d | wc -l` -eq 0 ]
         then
            echo "Making Season Folder: $MOVIE_DESTINATION_DIRECTORY/$SHOW_NAME/Season $SEASON_NUMBER" >> $LOG_PATH
            echo "Making Season Folder: $MOVIE_DESTINATION_DIRECTORY/$SHOW_NAME/Season $SEASON_NUMBER"
            mkdir "$MOVIE_DESTINATION_DIRECTORY/$SHOW_NAME/Season $SEASON_NUMBER"
      fi
   
      MOVIE_DESTINATION_DIRECTORY="$MOVIE_DESTINATION_DIRECTORY/$SHOW_NAME/Season $SEASON_NUMBER"
   #   MOVIE_NAME=

      echo "Show Name: $SHOW_NAME" >> $LOG_PATH
      echo "Show Name: $SHOW_NAME"

      echo "Season Number: $SEASON_NUMBER" >> $LOG_PATH
      echo "Season Number: $SEASON_NUMBER"

      ;;
   esac

   if [ -d "$MOVIE_DESTINATION_DIRECTORY" ]
       then
      # Destination folder exists
         echo "Destination folder $MOVIE_DESTINATION_DIRECTORY found.  Processing $FOLDER_NAME." >> $LOG_PATH
         echo "Destination folder $MOVIE_DESTINATION_DIRECTORY found.  Processing $FOLDER_NAME."
      else
         echo "Destination folder $MOVIE_DESTINATION_DIRECTORY does not exist.  Stopping processing." >> $LOG_PATH
         echo "Destination folder $MOVIE_DESTINATION_DIRECTORY does not exist.  Stopping processing."
         exit 1
   fi

   cd "$1"

   HANDLED=NO
      
   # Assumes that the largest file in the folder is the media file.

   MOVIETYPE=`find . -printf '%s %pn' | sort -nr | sed -n '1p' | awk -F. '{print $NF}'`
   MOVIETYPE=`echo "$MOVIETYPE" | tr [a-z] [A-Z]`

   echo "Video has the $MOVIETYPE extension" >> $LOG_PATH
   echo "Video has the $MOVIETYPE extension"
   
   #Determine how many parts there are comprising the media

   PARTS=`find . -iname "*.$MOVIETYPE" | wc -l`

   # Create File list of files matching the $MOVIETYPE > 40MB (to exclude things like samples)

   i=1
   while [ $i -le $PARTS ]; do
            FILEZ[$i]=$FOLDER_PATH`find . -iname "*.$MOVIETYPE" -size +40M | sort | sed -n ''$i'p' | sed 's/^.//'`
                ((i++))
        done


   if [ "$MOVIETYPE" = "AVI" ]
      then
         REMOVE=YES
         HANDLED=YES   
         if [ "$AVIJOIN" = "TRUE" ]
            then
               cd "$1"
               echo "Movie is in $PARTS parts" >> $LOG_PATH
               echo "Movie is in $PARTS parts"

               case "$PARTS" in
                                 1) avimerge -o "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".avi -i "${FILEZ[1]}" ;;
                                 2) avimerge -o "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".avi -i "${FILEZ[1]}" "${FILEZ[2]}" ;;
                                 3) avimerge -o "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".avi -i "${FILEZ[1]}" "${FILEZ[2]}" "${FILEZ[3]}" ;;
                                 4) avimerge -o "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".avi -i "${FILEZ[1]}" "${FILEZ[2]}" "${FILEZ[3]}" "${FILEZ[4]}" ;;
                                 5) avimerge -o "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".avi -i "${FILEZ[1]}" "${FILEZ[2]}" "${FILEZ[3]}" "${FILEZ[4]}" "${FILEZ[5]}" ;;
                                 6) avimerge -o "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".avi -i "${FILEZ[1]}" "${FILEZ[2]}" "${FILEZ[3]}" "${FILEZ[4]}" "${FILEZ[5]}" "${FILEZ[6]}"  ;;
                                 7) avimerge -o "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".avi -i "${FILEZ[1]}" "${FILEZ[2]}" "${FILEZ[3]}" "${FILEZ[4]}" "${FILEZ[5]}" "${FILEZ[6]}" "${FILEZ[7]}" ;;
                                 8) avimerge -o "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".avi -i "${FILEZ[1]}" "${FILEZ[2]}" "${FILEZ[3]}" "${FILEZ[4]}" "${FILEZ[5]}" "${FILEZ[6]}" "${FILEZ[7]}" "${FILEZ[8]}" ;;
                                 9) avimerge -o "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".avi -i "${FILEZ[1]}" "${FILEZ[2]}" "${FILEZ[3]}" "${FILEZ[4]}" "${FILEZ[5]}" "${FILEZ[6]}" "${FILEZ[7]}" "${FILEZ[8]}" "${FILEZ[9]}" ;;
                                 *) echo "Too many files" >> $LOG_PATH;;
                    esac
               DURATION=`tcprobe -i "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".avi | grep duration= | awk -Fduration= '{print $2}'`
               echo "Movie Duration=$DURATION" >> $LOG_PATH
               echo "Movie Duration=$DURATION"
         fi

         if [ "$AVIJOIN" = "FALSE" ]
            then
               REMOVE=NO
               # If there is only 1 file, ie single episode, copy it with new name.  If there are multiple files, copy as they are ie Full Season
               if [ $PARTS -eq 1 ]
                  then
                               $PROCESS "${FILEZ[1]}" "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".avi
                  else
                     i=1
                     while [ $i -le $PARTS ]; do
                                  $PROCESS "${FILEZ[$i]}" "$MOVIE_DESTINATION_DIRECTORY"
                             ((i++))
                          done
                  fi
         fi
   fi


   if [ "$MOVIETYPE" = "WMV" ]
      then
         REMOVE=YES
         HANDLED=YES   
         cd "$1"

         # Instead of moving here, you could set the system to reencode the file to a different format
         # If the folder is in multiple parts, it is safest to move the whole source folder and not re-encode
         # The code below will need to be changed from using CASE though

         
         if [ $PARTS -gt 1 ]
            then
               echo "Folder has $PARTS WMV Files" >> $LOG_PATH
               echo "Folder has $PARTS WMV Files"
               mkdir "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME"
         
               i=1
               while [ $i -le $PARTS ]; do
                             $PROCESS "${FILEZ[$i]}" "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME"
                            ((i++))
                    done

            else
                  $PROCESS "${FILEZ[1]}" "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".wmv
         fi
   fi
   
   if [ "$MOVIETYPE" = "MPG" ]
      then
         REMOVE=YES
         HANDLED=YES   
         cd "$1"

         case "$PARTS" in
           1)    $PROCESS "${FILEZ[1]}" "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".mpg ;;
           *) ;;
         esac
        fi

   if [ "$MOVIETYPE" = "VOB" ]
      then
         case $CATEGORY_NAME in
              Movies) MOVIE_DESTINATION_DIRECTORY="/storage/store1/Movies" ;;
              XXX)     MOVIE_DESTINATION_DIRECTORY="/storage/store1/Adult/#Incoming/!ISO" ;;
         esac
      
         REMOVE=YES
         HANDLED=YES   

         cd "$1"

         #Check to see if there is a VIDEO_TS folder if it does, set the variable to the directory the VIDEO_TS folder is in
         VTS="`find . -type d -name VIDEO_TS -printf %h`"

         if [ "$VTS" != "" ]
            then
               echo "VIDEO_TS Folder located" >> $LOG_PATH
               echo "VIDEO_TS Folder located"
               
               cd "$VTS"

            else   
               # Video files are not under a VIDEO_TS File - Need to create the VIDEO_TS folder and move IFO, BUP and VOB files to it
               # This will utilise a temporary folder to remove any other junk files, like samples.
               # Graphic images (JPG, GIF, BMP) will be copied to the root of the folder
               
               echo "Structure incorrect - attempting to build DVD Video structure" >> $LOG_PATH
               echo "Structure incorrect - attempting to build DVD Video structure"

               mkdir "$TEMPFOLDER"      
                mkdir "$TEMPFOLDER/VIDEO_TS"

               #Find Video and graphic files
               PARTS=`find . -type f | wc -l`
               i=1
               while [ $i -le $PARTS ]; do
                            FILEZ[$i]=$FOLDER_PATH`find . -type f -iname "video*" -o -iname "vts*" -o -iname "*.jpg" -o -iname "*.gif" -o -iname "*.bmp" | sort | sed -n ''$i'p' | sed 's/^.//'`
                            ((i++))
                    done
               
               i=1
               while [ $i -le $PARTS ]; do
                  FILEXT=`echo ${FILEZ[$i]} | awk -F. '{print $NF}' | tr [a-z] [A-Z]`
                  if [ "$FILEXT" = "IFO" -o "$FILEXT" = "BUP" -o "$FILEXT" = "VOB" ]
                     then
                         $PROCESS "${FILEZ[$i]}" "$TEMPFOLDER/VIDEO_TS/`echo ${FILEZ[$i]} | awk -F / '{print $NF}' | tr [a-z] [A-Z]`"
                     else
                         $PROCESS "${FILEZ[$i]}" "$TEMPFOLDER"
                  fi
                  ((i++))
               done
               cd "$TEMPFOLDER"   
         fi
         
               echo "Building DVD Video ISO Image.  Video Title: $VIDEO_TITLE as $MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME.ISO" >> $LOG_PATH
               echo "Building DVD Video ISO Image.  Video Title: $VIDEO_TITLE as $MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME.ISO"
      
               mkisofs -dvd-video -udf -quiet -V "$VIDEO_TITLE" -o "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".ISO .
               if [ $? -eq 0 ]
                  then
                     echo "ISO Building completed successfully" >> $LOG_PATH
                     echo "ISO Building completed successfully"
                  else
                     echo "ISO Building failed" >> $LOG_PATH
                     echo "ISO Building failed"
                     REMOVE=NO
               fi


               if [ -d "$TEMPFOLDER" ]
                  then
                     echo "Removing Temporary Folder" >> $LOG_PATH   
                     echo "Removing Temporary Folder"    
                     rm -rf "$TEMPFOLDER"
               fi
               
   fi

#   if [ "$MOVIETYPE" = "ISO" ]
#      then
#         # Set DVD Folder
#         # With ISO images, I like to keep the year of release (if present) in the title
#         # No changes are made to settings if it is a TV show
#
#         case $CATEGORY_NAME in
#              Movies) MOVIE_DESTINATION_DIRECTORY="/storage/store1/Movies"
#                 MOVIE_NAME="$FOLDER_NAME"
#                 ;;
#              XXX)   MOVIE_DESTINATION_DIRECTORY="/storage/store1/Adult/#Incoming/!ISO"
#               MOVIE_NAME="$FOLDER_NAME"
#               ;;
#         esac
#         
#         REMOVE=YES
#
#         cd "$1"
#
#         if [ $PARTS -gt 1 ]
#            then
#               # If there are multiple ISO's in the folder, copy them without changing the name
#               echo "There are $PARTS ISO files within folder" >> $LOG_PATH
#               echo "There are $PARTS ISO files within folder"
#
#               mkdir "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME"
#
#               i=1
#               while [ $i -le $PARTS ]; do
#                   $PROCESS "${FILEZ[$i]}" "`echo "${FILEZ[$i]}" | awk -F. '{print $1}'`".ISO
#                  ((i++))           
#               done
#
#               # Move ISO Files
#               
#                $PROCESS *.ISO "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME"
#
#            else
#           
#                $PROCESS "${FILEZ[1]}" "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".ISO
#         fi
#   fi

   # In 99/100 cases, IMG and ISO files are exactly the same.
   if [ "$MOVIETYPE" = "ISO" -o "$MOVIETYPE" = "IMG" ]
      then
         # Set DVD Folder
         case $CATEGORY_NAME in
              Movies) MOVIE_DESTINATION_DIRECTORY="/storage/store1/Movies"
                 MOVIE_NAME="$FOLDER_NAME"
                 ;;
              XXX)     MOVIE_DESTINATION_DIRECTORY="/storage/store1/Adult/#Incoming/!ISO"
                 MOVIE_NAME="$FOLDER_NAME"
                 ;;
         esac
         
         # With ISO images, I like to keep the year of release (if present) in the title

         REMOVE=YES
         HANDLED=YES   
         
         cd "$1"
         
         # Ensure that IMG and ISO files have the .ISO extension
         # This renames the source file to <filename>.ISO
         i=1
         while [ $i -le $PARTS ]; do
            if [ "`file "${FILEZ[$i]}" | grep ISO`" != "" ]
                 then
               echo "`echo ${FILEZ[$i]} | awk -F/ '{print $NF}'` is in ISO format" >> $LOG_PATH
               echo "`echo ${FILEZ[$i]} | awk -F/ '{print $NF}'` is in ISO format"
                 if [ "`echo ${FILEZ[$i]} | awk -F. '{print $2}'`" != "ISO" ]
                  then
                     mv "${FILEZ[$i]}" "`echo "${FILEZ[$i]}" | awk -F. '{print $1}'`".ISO
               fi
            else
               echo "${FILEZ[$i]} is not in ISO format - aborting processing" >> $LOG_PATH
               echo "${FILEZ[$i]} is not in ISO format - aborting processing"
               exit
            fi
            ((i++))
         done


         if [ $PARTS -gt 1 ]
            then
               echo "There are $PARTS image files within folder" >> $LOG_PATH
               echo "There are $PARTS image files within folder"

               # Move ISO Files
               
                $PROCESS *.ISO "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME"

            else
               $PROCESS "${FILEZ[1]}" "$MOVIE_DESTINATION_DIRECTORY/$MOVIE_NAME".ISO
         fi
   fi

   if [ "$HANDLED" = "NO" ]
      then
         echo "File Extension $MOVIETYPE is not yet handled" >> $LOG_PATH
         echo "File Extension $MOVIETYPE is not yet handled"
         exit
   fi

   if [ "$REMOVE" = "YES" -a "$PROCESS" = "mv" ]
       then
      echo "Removing Folder: $FOLDER_NAME..." >> $LOG_PATH
      echo "Removing Folder: $FOLDER_NAME..."
      rm -r "$FOLDER_PATH"
       else
      if [ "$PROCESS" = "cp" ]
         then
            echo "Script is set to copy files. Please set to mv to remove processed folders. Source files are still in the incoming folder" >> $LOG_PATH
            echo "Script is set to copy files. Please set to mv to remove processed folders. Source files are still in the incoming folder"
         else
            echo "File type of $MOVIE_TYPE is not yet handled by post processing, and is still in the incoming folder" >> $LOG_PATH
            echo "File type of $MOVIE_TYPE is not yet handled by post processing, and is still in the incoming folder"
         fi
   fi

   echo "Done!" >> $LOG_PATH
   echo "Done!"



    fi
    IGNORECASE=0
    exit

Hieronder vind je de log welke de fout aangeeft.

Citaat
2008-01-06 20:34:01,441::INFO::[sabnzbd] Loading data for SABnzbd_article_CzHfkO from /opt/tmp/SABnzbd/cache/SABnzbd_article_CzHfkO
2008-01-06 20:34:01,449::INFO::[sabnzbd] /opt/tmp/SABnzbd/cache/SABnzbd_article_CzHfkO removed
2008-01-06 20:34:01,461::INFO::[sabnzbd] Loading data for SABnzbd_article_IpPQ4c from /opt/tmp/SABnzbd/cache/SABnzbd_article_IpPQ4c
2008-01-06 20:34:01,470::INFO::[sabnzbd] /opt/tmp/SABnzbd/cache/SABnzbd_article_IpPQ4c removed
2008-01-06 20:34:01,481::INFO::[sabnzbd] Loading data for SABnzbd_article_I7OVOo from /opt/tmp/SABnzbd/cache/SABnzbd_article_I7OVOo
2008-01-06 20:34:01,487::INFO::[sabnzbd] /opt/tmp/SABnzbd/cache/SABnzbd_article_I7OVOo removed
2008-01-06 20:34:01,494::INFO::[downloader] Resuming
2008-01-06 20:34:01,501::INFO::[assembler] Starting PostProcessing on msgid_2707337 Big Brother (UK) - 3x49b - Little Brother.nzb => Repair:True, Unpack:False, Delete:False, Script:True
2008-01-06 20:34:01,505::INFO::[downloader] Pausing
2008-01-06 20:34:01,509::INFO::[assembler] Par2 check starting on msgid_2707337 Big Brother (UK) - 3x49b - Little Brother.nzb
2008-01-06 20:34:01,513::INFO::[assembler] Running repair on set BBUK3-Day49b-BBLB
2008-01-06 20:34:22,239::INFO::[newsunpack] Verified in 20.7s, all files correct
2008-01-06 20:34:22,244::INFO::[newsunpack] Par verify finished ok on /opt/tmp/SABnzbd/tmp/alt.binaries.tv.big-brother/TV/Big Brother (UK) - 3x49b - Little Brother/BBUK3-Day49b-BBLB.vol0+1.par2!
2008-01-06 20:34:22,250::INFO::[newsunpack] Deleting /opt/tmp/SABnzbd/tmp/alt.binaries.tv.big-brother/TV/Big Brother (UK) - 3x49b - Little Brother/BBUK3-Day49b-BBLB.par2
2008-01-06 20:34:22,255::INFO::[newsunpack] Deleting /opt/tmp/SABnzbd/tmp/alt.binaries.tv.big-brother/TV/Big Brother (UK) - 3x49b - Little Brother/BBUK3-Day49b-BBLB.vol0+1.par2
2008-01-06 20:34:22,264::INFO::[assembler] Par2 check finished on msgid_2707337 Big Brother (UK) - 3x49b - Little Brother.nzb
2008-01-06 20:34:22,269::INFO::[assembler] Creating directory: /volume1/storage/udownloads/alt.binaries.tv.big-brother/TV/__UNPACK_IN_PROGRESS__Big Brother (UK) - 3x49b - Little Brother
2008-01-06 20:34:22,296::INFO::[assembler] Creating directory: /volume1/storage/udownloads/alt.binaries.tv.big-brother/TV/__UNPACK_IN_PROGRESS__Big Brother (UK) - 3x49b - Little Brother/BBUK3-Day49b-BBLB.part1.rar
2008-01-06 20:34:22,985::INFO::[assembler] Creating directory: /volume1/storage/udownloads/alt.binaries.tv.big-brother/TV/__UNPACK_IN_PROGRESS__Big Brother (UK) - 3x49b - Little Brother/BBUK3-Day49b-BBLB.part2.rar
2008-01-06 20:34:23,363::INFO::[assembler] Creating directory: /volume1/storage/udownloads/alt.binaries.tv.big-brother/TV/__UNPACK_IN_PROGRESS__Big Brother (UK) - 3x49b - Little Brother/bbuk3-day49b-bblb.sfv
2008-01-06 20:34:23,381::INFO::[assembler] Creating directory: /volume1/storage/udownloads/alt.binaries.tv.big-brother/TV/Big Brother (UK) - 3x49b - Little Brother
2008-01-06 20:34:23,441::INFO::[assembler] Running external script /opt/tmp/SABnzbd/script/postproc.sh /volume1/storage/udownloads/alt.binaries.tv.big-brother/TV/Big Brother (UK) - 3x49b - Little Brother msgid_2707337 Big Brother (UK) - 3x49b - Little Brother.nzb
2008-01-06 20:34:23,446::INFO::[newsunpack] Spawning external command ['/opt/tmp/SABnzbd/script/postproc.sh', '/volume1/storage/udownloads/alt.binaries.tv.big-brother/TV/Big Brother (UK) - 3x49b - Little Brother', 'msgid_2707337 Big Brother (UK) - 3x49b - Little Brother.nzb', 'Big Brother (UK) - 3x49b - Little Brother', '2707337']
2008-01-06 20:34:23,584::ERROR::[assembler] Postprocessing of msgid_2707337 Big Brother (UK) - 3x49b - Little Brother.nzb failed.
Traceback (most recent call last):
  File "/opt/local/sabnzbdplus/sabnzbd/assembler.py", line 195, in run
    ext_out = external_processing(self.extern_proc, workdir, filename)
  File "/opt/local/sabnzbdplus/sabnzbd/newsunpack.py", line 105, in external_processing
    startupinfo=stup, creationflags=creationflags)
  File "/opt/lib/python2.4/subprocess.py", line 543, in __init__
    errread, errwrite)
  File "/opt/lib/python2.4/subprocess.py", line 975, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory


Geen idee waar ik naar moet zoeken, iemand een idee ?

Gr
Ferdi


 

Uninstall sabnzbplus. Help!

Gestart door beste-elsBoard SABnzbd (usenet)

Reacties: 2
Gelezen: 2830
Laatste bericht 03 juli 2008, 09:53:49
door beste-els
sabnzbplus en post-proc voor newzbin

Gestart door daferraBoard SABnzbd (usenet)

Reacties: 5
Gelezen: 7650
Laatste bericht 08 januari 2008, 18:47:08
door daferra