Explorar el Código

Prevent some podcasts from being synced

Samuel W. Flint hace 1 año
padre
commit
b6f6870a10
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      pod

+ 3 - 2
pod

@@ -139,8 +139,9 @@ case "$CMD" in
     update-feeds)
         CUR_DIR=$(pwd)
         cd $POD_BASE_DIR
-        cut -f2 ${POD_SUB_DIR}/podcasts-list.txt |\
-            xargs git annex importfeed \
+        grep -v '^# ' ${POD_SUB_DIR}/podcasts-list.txt |\
+            cut -f2 |\
+            xargs -L1 git annex importfeed \
                   --template="${POD_SUB_DIR}/\${feedtitle}/\${itempubdate}-\${itemtitle}\${extension}"
         git annex add ${POD_SUB_DIR}
         git commit -m "Caught podcasts"