Skip to content

Commit

Permalink
feat: use local variables to enhance xp when calling playlist_explore…
Browse files Browse the repository at this point in the history
…r recursively
  • Loading branch information
Benexl committed Jan 4, 2025
1 parent 6f4e2b0 commit a03ac50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yt-x
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ ${RED}󰈆${RESET} Exit" | launcher "Select Media Action" | sed 's/. //g')"
echo "$current_recent_videos" | jq "{\"entries\":[.entries[] | select(.id != \"$id\")]}|.entries+=[$(echo "$video" | jq '.title |= sub("^[0-9]+ "; "")')]" | jq "{\"entries\":.entries[-$NO_OF_RECENT:]}" >"$CLI_CONFIG_DIR/recent.json"
;;
Mix)
local url0 _search_results
video_id=$(echo "$video" | jq '.id' -r)
url0=$urlForAll
urlForAll="https://www.youtube.com/watch?v=${video_id}&list=RD$video_id"
Expand Down

0 comments on commit a03ac50

Please sign in to comment.