UPDATE: I got Dsub to sort of do random like i want but this may no work with tags that are null or date is missing/invalid
Subsonic random media android Dsub
https://www.flickr.com/photos/freeload101/14662597589/
* playlist over at least 10k crash Android Subsonic and Dsub
* playlist over at least 10k crash Firefox
* I tried to automate creating M3U file list and that even crashes VLC etc .. 10K songs x 2 for url/songname
* I tried dsub with 500 random in settings ( this appers do to nothing )
* googled and looked at both this forums and madsonic forms for help on what I am trying to do
* I would use the native "random" playlist or search whatever in android but I can't get it to add all to the playlist .. just ONE .. so I may be missing something there
All I want is a way to play random of all my music from android via Subsonic or Dsub or VLC anything ... it appears all the client seem to want to just load up 10K + DB and just fall flat on the face...onlything I have 1/2 working is a curl script to automatically generate a playlist.m3u with 500 or so random ID's directly.
This app is based on 'playlist' and 'client driven stuffs' IE it has to eat the entire DB to play a random song...
Could anybody suggest a different server or some kind of script that will allow me to simply @#$%ing play a random song from my phone or even andriod/browser/flash. Don't get me wrong subsonic does everything else great! I just CAN'T be the only person trying to do this ...or am I wrong ?
stupid code to create playlist I tried to create.. I later discovered you just need a ID so I just ended up picking a random numbers from 1-X and creating a M3U file 500 or so long
- Code: Select all
# login DUH ...
rm cookie
curl -s -c cookie -b cookie -d 'j_username=admin&j_password=admin&submit=Log+in&_acegi_security_remember_me=on' 'http://25.0.0.151:4040/j_acegi_security_check'
# get number of songs
export var1=`curl -s -c cookie -b cookie 'http://25.0.0.151:4040/left.view?' |grep songs | sed -e 's/.*albums<br>//g' -e 's/,//g' -e 's/\&.*//g'`
echo got $var1 songs
# get httpSessionId AKA JSESSIONID
export var2=`cat cookie | grep JSESSIONID | awk '{print $7}'`
echo got JSESSIONID httpSessionId of $var2
#create random que with all music
# fuk it no need just download the playlist ..
# ALL curl -s -c cookie -b cookie -d "size=$var1&genre=any&year=any&musicFolderId=-1" 'http://25.0.0.151:4040/randomPlayQueue.view?'
#curl -s -c cookie -b cookie -d "size=10&genre=any&year=any&musicFolderId=-1" 'http://25.0.0.151:4040/randomPlayQueue.view?'
# put it in the temp que
curl -s -c cookie -b cookie -d "c0-methodName=getUploadInfo&c0-scriptName=transferService&c0-id=0&batchId=2&callCount=1&httpSessionId=$var2&scriptSessionId=0&page=%2FplayQueue.view&windowName=playQueue" 'http://25.0.0.151:4040/dwr/call/plaincall/playQueueService.getPlayQueue.dwr'
# set playmod to M3U DIRECT
curl -s -c cookie -b cookie -d "technologyName=EXTERNAL_WITH_PLAYLIST" 'http://25.0.0.151:4040/playerSettings.view'
##curl -s -c cookie -b cookie -d "scriptSessionId=0" -d "httpSessionId=" 'http://25.0.0.151:4040/dwr/call/plaincall/playlistService.createPlaylistForPlayQueue.dwr'
#curl -s -c cookie -b cookie -d "httpSessionId=$var2" 'http://25.0.0.151:4040/play.m3u?'
curl -s -c cookie -b cookie -d "c0-methodName=getUploadInfo&c0-scriptName=transferService&c0-id=0&batchId=2&callCount=1&httpSessionId=$var2&scriptSessionId=0&page=%2FplayQueue.view&windowName=playQueue&httpSessionId=$var2" 'http://25.0.0.151:4040/play.m3u?'
