File: gpodder_download_complete

package info (click to toggle)
gpodder 2.20.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,228 kB
  • sloc: python: 16,951; makefile: 183; ansic: 140; sh: 97
file content (15 lines) | stat: -rw-r--r-- 488 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
#
# Post download processor to convert a video into a format that can be played on handheld devices.
#
LOG=$HOME/.gpodder.log
date >> $LOG
EXT=${GPODDER_EPISODE_FILENAME##*.}
OUTFILE=$HOME/Desktop/`basename ${GPODDER_EPISODE_URL%.*}`.avi

if [ "$EXT" == "mp4" ] || [ "$EXT" == "mov" ]; then
	echo "Converting $GPODDER_EPISODE_FILENAME to $OUTFILE" >> $LOG
	convert_video_iaudio-x5 $GPODDER_EPISODE_FILENAME $OUTFILE >> $LOG 2>&1
	echo "Finished converting" >> $LOG
	exit 0
fi