Sfoglia il codice sorgente

Prevent some podcasts from being synced

Samuel W. Flint 2 anni fa
parent
commit
b6f6870a10
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  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"