فهرست منبع

Make this thing runtime-configurable. Think about adding a size-limit control.

Zachary Kotlarek 11 سال پیش
والد
کامیت
2aa01eeb3e
1فایلهای تغییر یافته به همراه10 افزوده شده و 3 حذف شده
  1. 10 3
      sync/recentlyUnwatched.sh

+ 10 - 3
sync/recentlyUnwatched.sh

@@ -1,10 +1,17 @@
 #!/bin/bash
 #!/bin/bash
 
 
+# Static config
 IFS=''
 IFS=''
+MAX_RESULTS=200
 CURL_OPTS=(--silent --connect-timeout 5 --max-time 30)
 CURL_OPTS=(--silent --connect-timeout 5 --max-time 30)
-NUM_SERIES=18
-NUM_EPISODES=4
-MAX_RESULTS=100
+
+# Functional environmental parameters
+if [ -z "${NUM_SERIES}" ]; then
+	NUM_SERIES=25
+fi
+if [ -z "${NUM_EPISODES}" ]; then
+	NUM_EPISODES=4
+fi
 
 
 # Construct URL components from the environment
 # Construct URL components from the environment
 if [ -z "${PMS_URL}" ]; then
 if [ -z "${PMS_URL}" ]; then