[solved] Radom All Media WTF am I missing ..

Need help? Post your questions here.

Moderator: moderators

[solved] Radom All Media WTF am I missing ..

Postby operat0r » Thu Aug 07, 2014 3:39 am

[SOLVED] I use random it apparently plays for infinity ill have to check that out.

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?'



Last edited by operat0r on Sun Aug 10, 2014 3:42 am, edited 1 time in total.
operat0r
 
Posts: 18
Joined: Thu Aug 07, 2014 3:20 am

Re: Radom All Media WTF am I missing ..

Postby daneren2005 » Sat Aug 09, 2014 5:32 am

Judging by the settings page alone, that version of DSub is very old. I moved the settings to separate sub sections like a year ago. The not working for null values might have already been fixed a long time ago as well. I have also done a fairly substantial amount of work on making the app not choke on playlists of basically any sizes. But really the random size was not meant to go that high. I can see some possible problems with it even now, but I can definitely fix it to work with a larger number. Even if you leave it at the default 20, it will play for infinity. As you get further in the playlist it will automatically remove the old songs and add new ones to keep the playlist ~20 songs at all times. I put in the option to specify the random size so that people can get a slightly larger list downloaded at once for when they go on the subway or somewhere with no connection.
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: Radom All Media WTF am I missing ..

Postby operat0r » Sun Aug 10, 2014 3:41 am

Thanks. I am running current Dsub and no problems so far ran out of space tho I set to unlimited but 3000gigs and some how still ran out of space. I guess new playlist with out deleting the cache or something. Anyway its working great so far with 1K but ill have to try infinity setup. I guess the stock app does the same thing.
operat0r
 
Posts: 18
Joined: Thu Aug 07, 2014 3:20 am


Return to Help

Who is online

Users browsing this forum: No registered users and 32 guests