Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
Update build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyah Check committed Jan 3, 2020
1 parent 089cb0a commit 5242abf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v1
- name: Build and run tests
run: make
- name: Build
run: make build
- name: Run tests
run: make test
- name: Install
run: make install
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ version=v1.1

all: clean fmt vet build test install

build: fmt vet
build: clean fmt vet
@echo "+ $@"
@go build -tags "$(BUILDTAGS) cgo" .

Expand Down
2 changes: 2 additions & 0 deletions video_extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"io/ioutil"
"net/http"
"net/url"
"reflect"
"strings"
"unicode"

Expand Down Expand Up @@ -96,6 +97,7 @@ func getVideoStream(format, id, path string, bitrate uint) (err error) {
}

// read the streams map
reflect.TypeOf(output)
video.Author = output["author"][0]
video.Title = output["title"][0]
StreamMap, ok := output["url_encoded_fmt_stream_map"]
Expand Down

0 comments on commit 5242abf

Please sign in to comment.