Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aud.onerror = function() {
- console.log('cant')
- whateverFunctionThatDealsWithHandleSongSourcesShit('SoundCloudNonstreamable')
- }
- aud.addEventListener('loadeddata', function() {
- // I DIDN'T have an issue
- whateverFunctionThatDealsWithHandleSongSourcesShit('SoundCloud')
- });
- function doubleCheckSource(src) {
- streamable = true;
- $('#tester').attr('src', src + '?client_id=7af759eb774be5664395ed9afbd09c46');
- }
- function handleSongSource(song) {
- if(song.source == 'SoundCloud') {
- if(song.audioSource) {
- doubleCheckSource(song.audioSource);
- } else {
- return 'SoundCloudNonstreamable';
- }
- } else {
- return song.source;
- }
- // if(song.source == 'SoundCloud') return song.audioSource ? 'SoundCloud' : 'SoundCloudNonstreamable';
- // return song.source;
- }
- function whateverFunctionThatDealsWithHandleSongSourcesShit(songsource) {
- if(songsource = 'waitingOnSoundCloud') {
- return false; (basically, do nothing)
- }
- // blah blabh whatever else happens happens down here.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement