Skip to content

Commit

Permalink
Merge pull request #10 from UniDash-Linux/nightly
Browse files Browse the repository at this point in the history
Nightly
  • Loading branch information
Pikatsuto authored Dec 10, 2024
2 parents e323d81 + 35d9042 commit e4166be
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
};

outputs = {
Expand Down
8 changes: 7 additions & 1 deletion src/play-music
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
#!/usr/bin/env bash

PROFILE=$(
ls ~/.mozilla/firefox/*.default/cookies.sqlite \
| head -n 1 \
| cut -d "/" -f 6
)

if [[ "${2}x" != "x" && "${2}x" != "x" ]]; then
while true; do
mpv ${1} --title="radio-mpv" ${2} --no-video \
--ytdl-raw-options=cookies-from-browser=firefox
--ytdl-raw-options-append="format=bestaudio"
done
fi

0 comments on commit e4166be

Please sign in to comment.