-
Notifications
You must be signed in to change notification settings - Fork 3k
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
add qingting.fm support #650
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, can you please add support for downloading a single audio program, eg: https://www.qingting.fm/channels/226572/programs/8275727
@@ -606,6 +606,7 @@ Pornhub | <https://pornhub.com> | ✓ | | | | | |||
XVIDEOS | <https://xvideos.com> | ✓ | | | | | |||
聯合新聞網 | <https://udn.com> | ✓ | | | | | |||
TikTok | <https://www.tiktok.com> | ✓ | | | | | |||
蜻蜓fm | <https://www.qingting.fm/> | | |✓ | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
蜻蜓fm | <https://www.qingting.fm/> | | |✓ | | | |
蜻蜓fm | <https://www.qingting.fm/> | | | ✓ | | |
"github.com/iawia002/annie/utils" | ||
"io/ioutil" | ||
"net/http" | ||
"strings" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please group those packages
"strings" | ||
) | ||
|
||
type ChannelInfoApi struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type ChannelInfoApi struct { | |
type ChannelInfoAPI struct { |
Name string | ||
} | ||
|
||
type ChannelAudioInfoApi struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
channelInfoUrl := getChannelInfoUrl(channelId) | ||
channelInfoResponse, err := http.Get(channelInfoUrl) | ||
if err != nil { | ||
fmt.Println("Error in fetching JSON") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not print logs here, just return the error
audioInfoUrl := getChannelAudioInfoUrl(channelId) | ||
response, err := http.Get(audioInfoUrl) | ||
if err != nil { | ||
fmt.Println("Error in fetching JSON") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Size: size, | ||
} | ||
return downloader.Data{ | ||
Site: "qingting fm", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Site: "qingting fm", | |
Site: "蜻蜓FM qingting.fm", |
return downloader.Data{ | ||
Site: "qingting fm", | ||
Title: title, | ||
Type: "aduio", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type: "aduio", | |
Type: "audio", |
dccdfc5
to
de872ac
Compare
Describe what this PR does / why we need it
add qingting.fm support
Does this pull request fix one issue?
Describe how you did it
many thanks for this project: https://github.com/koallen/qingting-dl
I just do some parsing job.
Describe how to verify it
already test for some channels
Special notes for reviews
Can not download for paid channels.