Being inspired by youtube-dl, Glod is a small library to help retrieve direct URL from multiple media sources that written in Go.
Glod which is abbreviated of Gloddson a.k.a Glod Gloddson, one of those unconventional Dwarfs, who with Giamo Casanunda, Hwel the playwright, Mad, Sharn and Cheery Littlebottom, express rebellion against the limited life of a conventional Dwarf. Glod is a musician, a horn player, who comes to Ankh-Morpork apparently after some years' experience elsewhere, since he is first encountered applying for membership in the Musicians' Guild. In the office he meets Imp y Celyn and Lias Bluestone, two more newcomers. They join up to try to raise the Guild membership fees and form The Band With Rocks In.
If you are building your music streaming website, the command line tool to download media files or even a crawler ... you do not have to build it from scratch, glod is here to help.
Assume that you had Go installed
$ go get -u github.com/dwarvesf/glod
const (
initNhacCuatui string = "nhaccuatui"
)
if strings.Contains(url, initNhacCuatui) {
glod = &nct.NhacCuaTui{}
}
// url is the link inputed, listStream is list of URLs that permanently downloadable link
// In case url is song's link, listStream contains one item
listStream, error := glod.GetDirectLink(url)
We have created an command-line tool that implements glod. Check it out glod-cli!
$ git checkout -b feature/soundcloud
$ git commit -am "Add function download for soundcloud"
$ git push origin feature/soundcloud
Copyright 2016 Dwarves Foundation
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.