Skip to content

Commit

Permalink
Merge branch 'master' of github.com:danog/magnaluna
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Oct 31, 2019
2 parents bce3e90 + e7a18f1 commit 499f1d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ magnabroadcast.php
broadcast.php

docs/.jekyll-metadata
songs.php
_site

# JetBrains IDE
Expand Down
11 changes: 11 additions & 0 deletions songs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

$songs = \glob('*raw');
if (!$songs) {
die('No songs defined! Convert some songs as described in https://docs.madelineproto.xyz/docs/CALLS.html#playing-mp3-files');
}
$songs_length = \count($songs);

for ($x = 0; $x < $songs_length; $x++) {
\shuffle($songs);
}

0 comments on commit 499f1d8

Please sign in to comment.