Skip to content

Commit

Permalink
extractors/iqiyi: ⬆️ resource url, fix #129 [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
iawia002 committed May 8, 2018
1 parent 03b29f8 commit fb08c28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extractors/iqiyi.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ func Iqiyi(url string) downloader.VideoData {
size, _ = strconv.ParseInt(
utils.MatchOneOf(ts, `contentlength=(\d+)`)[1], 10, 64,
)
// http://dx.data.video.qiyi.com -> http://data.video.qiyi.com
urlData = downloader.URLData{
URL: ts,
URL: strings.Replace(ts, "dx.data.video.qiyi.com", "data.video.qiyi.com", 1),
Size: size,
Ext: "ts",
}
Expand Down

0 comments on commit fb08c28

Please sign in to comment.