glod

package module
v0.0.0-...-f84ea49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2017 License: GPL-2.0 Imports: 0 Imported by: 11

README

Coverage Status

GoDoc Build Status Code Climate Test Coverage

Introduction:

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.

Installation:

Assume that you had Go installed

$ go get -u github.com/dwarvesf/glod

Usage:

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)

Current status and TODO

  • Mp3 Zing
  • Nhaccuatui
  • Soundcloud
  • Youtube
  • Chiasenhac
  • Facebook
  • Vimeo
  • Lynda
  • Udemy
  • Flickr
  • Slideshare
  • Dropbox
  • PornHub 😎

Implementation

We have created an command-line tool that implements glod. Check it out glod-cli!

Contributing

  • Fork it!
  • Create your feature branch (for example soundcloud):
$ git checkout -b feature/soundcloud
  • Write your function download, remember to override GetDirectLink() function
  • Commit your changes:
$ git commit -am "Add function download for soundcloud"
  • Push to the branch:
$ git push origin feature/soundcloud
  • Submit your pull request

License

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.

Documentation

Overview

Being inspired by youtube-dl, Glod is a small library to help retrieve direct URL from multiple media sources that written in Go.

The package is named after 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 media crawler, etc., you do not need to build it from scratch, glod is here to help. Package glod provides client library for other developer that wants to develop media related apps.

Glod includes several packages which are the source of media website, such as YouTube, SoundCloud, NhacCuaTui, Zing Mp3 ... Check out the sub-packages for more.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Artist    string
	StreamURL string
	Title     string
}

type Source

type Source interface {
	GetDirectLink(url string) ([]Response, error)
}

Source is the main interface and it defines the main methods of the package

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL