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
50
51
#!/bin/bash

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

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

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

rm -fr playlists
mkdir playlists
pushd playlists

artists=`$uykfd show lastfm tagged artists`

echo "$artists" | while read artist
do

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

395eb75f711d by andrew cooke <and...@acooke.org> on Dec 12, 2009   Diff
all seems to be working?
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 970 bytes, 51 lines
Powered by Google Project Hosting