nicoxiang / geektime-downloader

极客时间课程下载器,支持下载极客时间专栏/视频课/每日一课/大厂实践/训练营视频
MIT License
622 stars 156 forks source link

cannot unmarshal array #131

Closed heya0 closed 1 year ago

heya0 commented 1 year ago

]# ./geektime-downloader -u "162578497xx" 登录成功 正在下载专栏 《6 小时掌握 Docker 与 K8s 架构核心》 中的所有文章 Failed to write to log, invalid argument An error occurred: json: cannot unmarshal array into Go struct field V1ArticleResponse.data of type struct { ArticleContent string "json:\"article_content\""; ArticleTitle string "json:\"article_title\""; InlineVideoSubtitles []struct { VideoURL string "json:\"video_url\""; VideoFreeURL string "json:\"video_free_url\""; VideoVid string "json:\"video_vid\""; VideoSubtitle string "json:\"video_subtitle\""; VideoFreeVid string "json:\"video_free_vid\""; VideoFreeSubtitle string "json:\"video_free_subtitle\"" } "json:\"inline_video_subtitles\""; AudioDownloadURL string "json:\"audio_download_url\"" }

yaorp commented 1 year ago

现在下载的时候报错,我下载的是训练营里面的视频,选择视频下载的时候报下面这个错误,用的版本是0.10.5: An error occurred: json: cannot unmarshal array into Go struct field V1ArticleResponse.data of type struct { ArticleContent string "json:\"article_content\""; ArticleTitle string "json:\"article_title\""; InlineVideoSubtitles []struct { VideoURL string "json:\"video_url\""; VideoFreeURL string "json:\"video_free_url\""; VideoVid string "json:\"video_vid\""; VideoSubtitle string "json:\"video_subtitle\""; VideoFreeVid string "json:\"video_free_vid\""; VideoFreeSubtitle string "json:\"video_free_subtitle\"" } "json:\"inline_video_subtitles\""; AudioDownloadURL string "json:\"audio_download_url\"" }

nicoxiang commented 1 year ago

现在下载的时候报错,我下载的是训练营里面的视频,选择视频下载的时候报下面这个错误,用的版本是0.10.5: An error occurred: json: cannot unmarshal array into Go struct field V1ArticleResponse.data of type struct { ArticleContent string "json:"article_content""; ArticleTitle string "json:"article_title""; InlineVideoSubtitles []struct { VideoURL string "json:"video_url""; VideoFreeURL string "json:"video_free_url""; VideoVid string "json:"video_vid""; VideoSubtitle string "json:"video_subtitle""; VideoFreeVid string "json:"video_free_vid""; VideoFreeSubtitle string "json:"video_free_subtitle"" } "json:"inline_video_subtitles""; AudioDownloadURL string "json:"audio_download_url"" }

哪个训练营?这两天我找个免费的训练营看下这个问题

yaorp commented 1 year ago

现在下载的时候报错,我下载的是训练营里面的视频,选择视频下载的时候报下面这个错误,用的版本是0.10.5: An error occurred: json: cannot unmarshal array into Go struct field V1ArticleResponse.data of type struct { ArticleContent string "json:"article_content""; ArticleTitle string "json:"article_title""; InlineVideoSubtitles []struct { VideoURL string "json:"video_url""; VideoFreeURL string "json:"video_free_url""; VideoVid string "json:"video_vid""; VideoSubtitle string "json:"video_subtitle""; VideoFreeVid string "json:"video_free_vid""; VideoFreeSubtitle string "json:"video_free_subtitle"" } "json:"inline_video_subtitles""; AudioDownloadURL string "json:"audio_download_url"" }

哪个训练营?这两天我找个免费的训练营看下这个问题

高级 Java 工程师体系课

nicoxiang commented 1 year ago

@yaorp ok, 我先找个免费的看下,感谢提供报错信息

nicoxiang commented 1 year ago

@yaorp @heya0 可以试试 0.10.6-beta 这个版本

yaorp commented 1 year ago

@yaorp @heya0 可以试试 0.10.6-beta 这个版本

谢谢,可以下载了

heya0 commented 1 year ago

已解决