瀏覽代碼

Different limits for movies vs tv

Zachary Kotlarek 12 年之前
父節點
當前提交
ccf3179649
共有 1 個文件被更改,包括 3 次插入 和 1 次删除
  1. 3 1
      plexCmd/recentlyUnwatched.sh

+ 3 - 1
plexCmd/recentlyUnwatched.sh

@@ -1,17 +1,19 @@
 #!/bin/bash
 
-NUM_EPISODES=10
 HOST="http://beddy.uberzach.com:32400"
 
+# Select a configuration mode
 URL1="${HOST}/library/sections/2/recentlyViewedShows/"
 URL2_POST="allLeaves?unwatched=1"
 ELEMENT="Directory"
+NUM_EPISODES=5
 MOVIES=0
 if echo "${1}" | grep -iq Movie; then
 	MOVIES=1
 	URL1="${HOST}/library/sections/1/recentlyAdded/"
 	URL2_POST=""
 	ELEMENT="Video"
+	NUM_EPISODES=10
 fi
 
 SERIES="`curl --silent "${URL1}" | \