music |
| | OSdata.com |
song information
summary
Use This Side of Sanitys music data base to power your music player.
Use any programming language (or even ordinary web browsers) to go to http://www.thissideofsanity.com/musicbox/songinformation.php?song=63 will get you an ASCII text representation of the information for a specific song. Change the song number to indicate the song you want to present in your music player.
The song information includes: result code, title, artist, YouTube number (or URL), song lenth, and start time. This provides the information to present the song in your own player.
license
This is example code from This Side of Sanity, released under Apache License 2.0.
Copyright 2012, 2013, 2014 Milo
Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
summary
Use This Side of Sanitys music data base to power your music player.
Use any programming language (or even ordinary web browsers) to go to http://www.thissideofsanity.com/musicbox/songinformation.php?song=63 will get you an ASCII text representation of the information for a specific song. Change the song number to indicate the song you want to present in your music player.
The song information includes: result code, YouTube number (or URL), title, artist, song lenth, and start time. This provides the information to present the song in your own player.
Portions (fields) of song information are delimited by new line.
The result code of Y indicates a YouTube number. The result code of M indicates a MP3 URL.
If you give an invalid song number or otherwise make a mistake in calling this web page, you will get an error code of E. All other fields may have unpredictable or empty results or may not exist. You are not expected to attempt any processing after encountering the error code.
You may be tempted to use this number as a loop counter for single accesses to song information, making a series of different calls to this web page to collect all of the song information one song at a time. Doing so will result in a Denial of Sevice Attack on the server, which will prevent your player from working properly. Use the alternate supplied web page for gathering groups of song information in a single pass and then loop internally in your own software.
contact
comments, suggestions, corrections, criticisms
Names and logos of various OSs are trademarks of their respective owners.