is there any way to have EyeTV rescan the file each time EyeTV (v3.1) starts up
Or maybe an AppleScript command to TELL eyeTV to rescan/reload the xmltv file?
set theFile to choose file
tell application "EyeTV"
open theFile
end tell
#!/bin/sh
open -ga EyeTV listings.xml
subd wrote:I use a bash script like this:
- Code: Select all
#!/bin/sh
open -ga EyeTV listings.xml
Saved as update.sh and then added as a cron job to run every night.
Do you have any problems with adding the latest xmltv and proceeding to use EyeTV without relaunching?
tell application "EyeTV"
open "/Users/scott/xmltv/xmltv.xml"
end tell
#!/bin/sh
open -ga EyeTV listings.xml
fogeuk wrote:Yeah, that gives me a slightly more detailed error:
"Can't make some data into the expected type"
I've attached the xmltv file itself, can't see anything obviously wrong with it, and it does import the full 14 days when drag-dropped.
Cheers,
Unfortunately it currently is not working in that EyeTV 3.3 says it cannot parse the resulting XML file. Equally unfortunately the original developer seems to have disappeared off the face of the earth a long time ago. I had not changed the utility (there is no newer version) so either this is a result of Radio Times making a change or Elgato have made a change in EyeTV 3.3.
Would anyone be willing to look at this utility and see where it is going wrong? And secondly it might be worth considering enhancing the formatting of the results produced by the SatScape utility in-line with this.
#!/bin/sh
EYETV=$HOME/Applications/EyeTV.app
TARGET_DIR=$HOME/Library/Xmltv
CURL=`which curl`
MAIN_URL='http://xmltv.tvsajten.com/xmltv/'
CHANNELS=$HOME/Library/Xmltv/channels.txt
#cleanup
rm -f $TARGET_DIR/*.xml
#update all channels
while read line; do
for i in {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14}; do
DATE=`date -v+"$i"d "+%Y-%m-%d"`
TARGET=${line}_$DATE.xml
CMD="$CURL --silent --compressed -R --user-agent tv.swedb.se.widget $MAIN_URL/$TARGET.gz -o $TARGET_DIR/$TARGET"
$CMD
open -ga $EYETV $TARGET_DIR/$TARGET
done
done < $CHANNELS