Parcourir la source

Different limits for movies vs tv

Zachary Kotlarek il y a 12 ans
Parent
commit
ccf3179649
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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}" | \