tvheadend42: add support for compressed epg content

It pipes the content of the downloaded to zcat to ensure
the content is readable
This commit is contained in:
Marco Hutzsch 2020-11-23 06:40:31 +01:00
parent f248a5b8b7
commit 426f57ed62
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,6 @@
125
- fix download zipped content for epg data with epg_grab_file
124 124
- fix query url for imdb.com and thetvdb.com - fix query url for imdb.com and thetvdb.com

View File

@ -5,7 +5,7 @@ PKG_NAME="tvheadend42"
PKG_VERSION="5bdcfd8ac97b3337e1c7911ae24127df76fa693a" PKG_VERSION="5bdcfd8ac97b3337e1c7911ae24127df76fa693a"
PKG_SHA256="b562a26248cdc02dc94cc62038deea172668fa4c079b2ea4e1b4220f3b1d34f5" PKG_SHA256="b562a26248cdc02dc94cc62038deea172668fa4c079b2ea4e1b4220f3b1d34f5"
PKG_VERSION_NUMBER="4.2.8-36" PKG_VERSION_NUMBER="4.2.8-36"
PKG_REV="124" PKG_REV="125"
PKG_ARCH="any" PKG_ARCH="any"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SITE="http://www.tvheadend.org" PKG_SITE="http://www.tvheadend.org"

View File

@ -37,7 +37,14 @@ then
exec "$XMLTV_LOCATION_SCRIPT" exec "$XMLTV_LOCATION_SCRIPT"
fi fi
elif [ "$XMLTV_TYPE" = "WEB" ]; then elif [ "$XMLTV_TYPE" = "WEB" ]; then
wget -qO - "$XMLTV_LOCATION_WEB" case "$XMLTV_LOCATION_WEB" in
*.gz | *.bz2 | *.xz)
wget -qO - "$XMLTV_LOCATION_WEB" | zcat
;;
*)
wget -qO - "$XMLTV_LOCATION_WEB"
;;
esac
exit 0 exit 0
fi fi
fi fi