# HG changeset patch # User Edho Arief # Date 1332051662 -25200 # Node ID 3bb8d53b61dc37ada867fdc5f7807049a4337cc7 # Parent 799d3bd1bfa1f038411ab281a98c5ba5446734f9 [moefetch] Support for https. diff -r 799d3bd1bfa1 -r 3bb8d53b61dc bin/moefetch --- a/bin/moefetch Sun Mar 18 13:16:54 2012 +0700 +++ b/bin/moefetch Sun Mar 18 13:21:02 2012 +0700 @@ -122,12 +122,12 @@ iternum=1 > "${TEMP_PREFIX}-list" while [ "${tempnum}" -ge 1000 ]; do - url="http://${SITE}/post/index.xml?tags=$(get_cleantags "${TAGS}")&offset=0&limit=1000&page=${iternum}" + url="${SITE}/post/index.xml?tags=$(get_cleantags "${TAGS}")&offset=0&limit=1000&page=${iternum}" [ ${_use_login} -eq 1 ] && url="${url}&login=${LOGIN_USER}&password_hash=${LOGIN_PASS}" - wget --quiet "${url}" -O "${TEMP_PREFIX}-xml" --referer="http://${SITE}/post" --user-agent="${useragent}" -e continue=off || Err_Fatal "Failed download catalog file" + wget --no-check-certificate --quiet "${url}" -O "${TEMP_PREFIX}-xml" --referer="${SITE}/post" --user-agent="${useragent}" -e continue=off || Err_Fatal "Failed download catalog file" printf "Processing XML file... " # xslt evilry - xsltproc - "${TEMP_PREFIX}-xml" < "${TEMP_PREFIX}-templist" + xsltproc - "${TEMP_PREFIX}-xml" < "${TEMP_PREFIX}-templist" @@ -309,7 +309,7 @@ else printf "Downloading files... " cd "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}" - wget -e continue=on -i "${TEMP_PREFIX}-newlist" -o "${TEMP_PREFIX}.log" --referer="http://${SITE}/post" --user-agent="${useragent}" + wget --no-check-certificate -e continue=on -i "${TEMP_PREFIX}-newlist" -o "${TEMP_PREFIX}.log" --referer="${SITE}/post" --user-agent="${useragent}" fi }