diff --git a/build-data/BuildData.groovy b/build-data/BuildData.groovy index 4ee1dd32..9360d0a4 100755 --- a/build-data/BuildData.groovy +++ b/build-data/BuildData.groovy @@ -6,8 +6,7 @@ import org.tukaani.xz.* /* ------------------------------------------------------------------------- */ - -def dir_root = ('..' as File).getCanonicalFile() +def dir_root = project as File def dir_website = dir_root.resolve('website') def dir_data = dir_website.resolve('data') diff --git a/build-data/build-data-import.sh b/build-data/build-data-import.sh deleted file mode 100755 index 32a93b46..00000000 --- a/build-data/build-data-import.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -fetch() -{ - FILE="$1" - LINK="$2" - TIME="$3" - - echo "Fetch $FILE" - if [ ! -f "$FILE" ] || test "`find $FILE -mtime $TIME`"; then - curl -L -o "$FILE" -z "$FILE" --retry 5 "$LINK" - - if [[ "${FILE##*.}" == "gz" ]]; then - gunzip -k -f "$FILE" - fi - if [[ "${FILE##*.}" == "zip" ]]; then - 7z e -y "$FILE" - fi - fi -} - -fetch anidb.txt.gz 'http://anidb.net/api/anime-titles.dat.gz' +5 -fetch tvdb.zip 'http://thetvdb.com/api/58B4AA94C59AD656/updates/updates_all.zip' +5 -fetch omdb.zip 'http://beforethecode.com/projects/omdb/download.aspx?e=reinhard.pointner%40gmail.com&tsv=movies' +30 -fetch osdb.txt 'http://www.opensubtitles.org/addons/export_movie.php' +5 - -fetch anime-list.xml 'https://raw.githubusercontent.com/ScudLee/anime-lists/master/anime-list.xml' +5 -fetch anime-movieset-list.xml 'https://raw.githubusercontent.com/ScudLee/anime-lists/master/anime-movieset-list.xml' +5