diff --git a/scripts/fix_files.sh b/scripts/fix_files.sh index 18aa866ef..92579a5be 100755 --- a/scripts/fix_files.sh +++ b/scripts/fix_files.sh @@ -38,7 +38,6 @@ fi if [[ $EN_IMDB == "true" ]]; then echo "edit movie language" $SED -i -e 's/akas.imdb/www.imdb/g' $NEWZPATH/www/lib/movie.php - $SED -i -e 's/akas.imdb/www.imdb/g' $TESTING_PATH/update_parsing.php $SED -i -e 's/curl_setopt($ch, CURLOPT_URL, $url);/curl_setopt($ch, CURLOPT_URL, $url);\ $header[] = "Accept-Language: en-us";\ curl_setopt($ch, CURLOPT_HTTPHEADER, $header);/' $NEWZPATH/www/lib/util.php @@ -49,6 +48,11 @@ if [[ $KEVIN_SAFER == "true" ]] || [[ $PARSING_MOD == "true" ]]; then cd $DIR"/kevin123" cp -frv * $NEWZPATH/www/lib/ fi +#copy needed files for hash_decrypt and fixReleaseNames scripts +if [[ $HASH == "true"]] || [[ $FIXRELEASES == "true" ]]; then + cd $DIR"/test/files to copy/www/lib" + cp -frv * $NEWZPATH/www/lib/ +fi #set user/group to www echo "Fixing permisions, this can take some time if you have a large set of releases"