Browse Source

Whine less when Plex is angry

Zachary Kotlarek 12 năm trước cách đây
mục cha
commit
39a06ad882
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  1. 1 1
      sync/recentlyUnwatched.sh

+ 1 - 1
sync/recentlyUnwatched.sh

@@ -52,7 +52,7 @@ SERIES_COUNT=0
 IFS=$'\n'
 for i in $SERIES; do
 	SERIES_COUNT=$(( $SERIES_COUNT + 1 ))
-	FILES="`curl ${CURL_OPTS[@]} "${HOST}/library/metadata/${i}/${URL2_POST}" | \
+	FILES="`curl ${CURL_OPTS[@]} "${HOST}/library/metadata/${i}/${URL2_POST}" 2>/dev/null | \
 		grep '<Part ' | \
 		head -n "${MAX_RESULTS}" | \
 		sed 's%^.*file="\([^\"]*\)".*$%\1%' | \