Skip to content

Commit

Permalink
solve url
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Sep 19, 2024
1 parent 1170b9d commit 5c57823
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tiktok/content.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package tiktok

import (

"net/url"
"encoding/json"
"fmt"
)
Expand Down Expand Up @@ -67,7 +65,7 @@ func (o *tiktok) PostVideoInit(title, videoUrl string, privacyLevel string) (*Pu
if !CheckPrivacyLevel(privacyLevel) {
return nil, PrivacyLevelWrong
}
encodedVideoUrl := url.QueryEscape(videoUrl)
//encodedVideoUrl := url.QueryEscape(videoUrl)
//
request := &PublishVideoRequest{
PostInfo: PostInfo{
Expand All @@ -79,7 +77,7 @@ func (o *tiktok) PostVideoInit(title, videoUrl string, privacyLevel string) (*Pu
},
SourceInfo: SourceInfo{
Source: "PULL_FROM_URL",
VideoUrl: encodedVideoUrl,
VideoUrl: videoUrl,
},
}
resp, err := o.restyPost(API_POST_PUBLISH_VIDEO_INIT, request)
Expand Down

0 comments on commit 5c57823

Please sign in to comment.