summaryrefslogtreecommitdiff
path: root/update-feed.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update-feed.sh')
-rwxr-xr-xupdate-feed.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/update-feed.sh b/update-feed.sh
index ef55874..12ac1a2 100755
--- a/update-feed.sh
+++ b/update-feed.sh
@@ -7,7 +7,7 @@ checksum() {
}
fetch() {
- curl -s http://tv.nrk.no/listobjects/recentlysent | dos2unix | xmllint --html --dropdtd --xmlout - 2> /dev/null > tv.nrk.no.html.new
+ curl -s -o tv.nrk.no.html.new http://tv.nrk.no/listobjects/recentlysent
if [ -r tv.nrk.no.html -a "`checksum tv.nrk.no.html.new`" == "`checksum tv.nrk.no.html`" ]
then
@@ -16,10 +16,13 @@ fetch() {
exit 0
fi
+ dos2unix tv.nrk.no.html.new
+ xmllint --html --dropdtd --xmlout tv.nrk.no.html.new 2> /dev/null > tv.nrk.no.html.new2
+ mv tv.nrk.no.html.new2 tv.nrk.no.html.new
mv tv.nrk.no.html.new tv.nrk.no.html
}
-# fetch
+fetch
mkdir -p tmp