Prechádzať zdrojové kódy

Different limits for movies vs tv

Zachary Kotlarek 12 rokov pred
rodič
commit
ccf3179649
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      plexCmd/recentlyUnwatched.sh

+ 3 - 1
plexCmd/recentlyUnwatched.sh

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