浏览代码

Prevent some podcasts from being synced

Samuel W. Flint 1 年之前
父节点
当前提交
b6f6870a10
共有 1 个文件被更改,包括 3 次插入2 次删除
  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"