My favorites | Sign in
Project Hosting will be READ-ONLY Thursday at 3:00pm UTC for up to 3 hours for network maintenance.
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash

uykfd="java -jar ../uykfd-all-1.3.jar"
ntracks=100

aexponent=-2
atracks=$ntracks
aqueue=$atracks

xexponent=0
xtracks=$(($ntracks * 2))
xqueue=10

rm -fr playlists
mkdir playlists
pushd playlists


for i in {1..500}
do
artist=`$uykfd show lastfm artists random`
qartist="\"$artist\""
echo "$artist"

$uykfd set ARTIST_MEMORY $xqueue
$uykfd set ARTIST_DEXPONENT $xexponent
prefix="xplore-"
postfix=""
file="$prefix$artist$postfix.m3u"
while [ -e "$file" ]
do
postfix="$postfix "
file="$prefix$artist$postfix.m3u"
done
$uykfd walk lastfm artist $qartist $xtracks backlinks > "$file" 2>&1

$uykfd set ARTIST_MEMORY $aqueue
$uykfd set ARTIST_DEXPONENT $aexponent
prefix="around-"
postfix=""
file="$prefix$artist$postfix.m3u"
while [ -e "$file" ]
do
postfix="$postfix "
file="$prefix$artist$postfix.m3u"
done
$uykfd walk lastfm artist $qartist $atracks backlinks > "$file" 2>&1

done

Change log

47bf1b7910ab by andrew cooke <and...@acooke.org> on Dec 6, 2009   Diff
drop prints
Go to: 
Project members, sign in to write a code review

Older revisions

292bcf727397 by andrew cooke <and...@acooke.org> on Dec 6, 2009   Diff
looking pretty good
9a98c210a2d4 by andrew cooke <and...@acooke.org> on Nov 11, 2009   Diff
weight artists by available tracks
16feb909a72b by andrew cooke <and...@acooke.org> on Nov 9, 2009   Diff
now with distances
All revisions of this file

File info

Size: 951 bytes, 49 lines
Powered by Google Project Hosting