Browse Source

Hide "Podcasts/" in pick

Samuel W. Flint 1 year ago
parent
commit
738d65fc7a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      pod

+ 3 - 3
pod

@@ -106,12 +106,12 @@ case "$CMD" in
     pick)
         CHOSEN_POD=''
         if [ "$1" == "-x" ] ; then
-            CHOSEN_POD=$(find_unlistened --in=here | rofi -dmenu -p "podcast")
+            CHOSEN_POD=$(find_unlistened --in=here | cut -d'/' -f 2- | rofi -dmenu -p "podcast")
         else
-            CHOSEN_POD=$(find_unlistened --in=here | fzf)
+            CHOSEN_POD=$(find_unlistened --in=here | cut -d'/' -f 2- | fzf)
         fi
         if [ "${#CHOSEN_POD}" -gt 0 ] ; then
-                play_pod $CHOSEN_POD
+            play_pod "${POD_SUB_DIR}/${CHOSEN_POD}"
         fi
         exit
         ;;