Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.
/ diva Public archive

Convert diva.cmore.se URLs into img-cdn-cmore.b17g.services URLs

License

Notifications You must be signed in to change notification settings

TV4/diva

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated; this package is no longer maintained.

diva

Build Status GoDoc License MIT

Convert diva.cmore.se URLs into img-cdn-cmore.b17g.services URLs

Installation

go get -u github.com/TV4/diva

Usage

Basic

package main

import (
	"fmt"

	"github.com/TV4/diva"
)

func main() {
	rawurl := "http://diva.cmore.se/image.aspx?formatid=221&id=a21630f5-ef51-4632-bf6f-cc94073d3cb1"

	fmt.Println(diva.CDNRawURL(rawurl))
}

Custom base URL

package main

import (
	"fmt"

	"github.com/TV4/diva"
)

func main() {
	rawurl := "http://diva.cmore.se/image.aspx?formatid=221&id=a21630f5-ef51-4632-bf6f-cc94073d3cb1"

	dc := diva.NewConverter("https://example.com/")

	fmt.Println(dc.CDNRawURL(rawurl))
}

About

Convert diva.cmore.se URLs into img-cdn-cmore.b17g.services URLs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages