Page 2 of 2

Re: Music from my dedicated server

Posted: 02 Jun 2020, 21:01
by yaahooz
Bah! Of course! Im a moron lol. I did not take that into account. Thanks guys, fixed and it works!

Re: Music from my dedicated server

Posted: 02 Jun 2020, 22:16
by TMarc
perfect :thumbsup:

Re: Music from my dedicated server

Posted: 02 Jun 2020, 22:52
by TheBigMiike
TMarc, the link on the last image is a true one ^_^. It redirects to a web page.

Re: Music from my dedicated server

Posted: 02 Jun 2020, 22:55
by TMarc
Possible, but like for the skins or other resources, i guess music needs to be accessible without relay links.

Re: Music from my dedicated server

Posted: 15 Jul 2020, 21:00
by o0Julia0o
Are local paths possible?

Like: D:\SONGS\song1.ogg ?

I am getting an error, too trying this:

Code: Select all

  SONGS = {
    'default': [
      'http://My-music_server.com/song1.ogg',
      'http://My-music_server.com/song2.ogg',
      'http://My-music_server.com/song3.ogg',
      'http://My-music_server.com/song4.ogg',
    }
  }

Code: Select all

  File "D:\PyPlanet\Project1\settings\base.py", line 97
    SONGS = {
    ^
IndentationError: unexpected indent
The same error i get with this:

Code: Select all

  SONGS = {
    'default': [
      'https://dl.espressif.com/dl/audio/ff-16b-2c-44100hz.ogg',
    }
  }


With the default-settings i am getting no error(but of course have no chance adding songs)

Code: Select all

SONGS = {
	'default': []
}
I am not a coder, but is that correct, that there is no closing "]" in the code(with the songa added) above?
GrandPa43 wrote: 06 Jan 2019, 13:51 I hope you will alter the music app to the possibility to not override authors music
oh yes, that would be very useful.

Re: Music from my dedicated server

Posted: 23 Jul 2020, 12:22
by toffe
You need to host this on a public space, no local paths are possible. Also the URL should download the music file directly, no indurect links are possible here.

Re: Music from my dedicated server

Posted: 23 Jul 2020, 19:48
by o0Julia0o
Thank you. So this music-file-store-place is o.k.?

https://dl.espressif.com/dl/audio/ff-16b-2c-44100hz.ogg

Using this:

Code: Select all

  SONGS = {
    'default': [
      'https://dl.espressif.com/dl/audio/ff-16b-2c-44100hz.ogg',
    }
  }
is leading into this error:

Code: Select all

  File "D:\PyPlanet\Project1\settings\base.py", line 97
    SONGS = {
    ^
IndentationError: unexpected indent

Re: Music from my dedicated server

Posted: 23 Jul 2020, 20:00
by TMarc
your example is missing a closing square bracket.