Skip to content

minor optimization #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

minor optimization #10

wants to merge 2 commits into from

Conversation

brownchow
Copy link

Hi oopsguy:

just some optimization

  1. we don't need to check url variable in main.go, cause in download.go we have already deal with this situation.

I have tested on windows10, using git-bash

/d/golang/src/github.com/oopsguy/m3u8 (master)
$ ./m3u8.exe   -u http://127.0.0.1:1323/live/playlist.m3u8  -o  ""
[download  20.00%] http://127.0.0.1:1323/live/0/8.ts
[download  40.00%] http://127.0.0.1:1323/live/0/7.ts
[download  60.00%] http://127.0.0.1:1323/live/0/1.ts
[download  80.00%] http://127.0.0.1:1323/live/0/6.ts
[download 100.00%] http://127.0.0.1:1323/live/0/0.ts
[merge] ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 100.00%
[output] D:\golang\src\github.com\oopsguy\m3u8\main.ts
Done!
  1. update README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant