Просмотр исходного кода

Different limits for movies vs tv

Zachary Kotlarek 12 лет назад
Родитель
Сommit
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}" | \