xbmc / video / VideoInfoScanner:无法检索音乐视频

时间:2018-05-14 19:47:05

标签: kodi

我正在尝试检索音乐视频的信息。例如,让我们采取:

$ youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 https://youtu.be/GhNuAXnhADI

如果我启动kodi,并尝试根据文件名搜索我没有结果,所以我尝试简化并输入文本框,只需:"来回家":

enter image description here

我仍然没有结果:

21:43:38.887 T:140736808257280   DEBUG: Thread VideoInfoDownloader start, auto delete: false
21:43:38.888 T:140736808257280   DEBUG: FindMovie: Searching for 'Come on Home' using TheAudioDb.com for Music Videos scraper (path: '/home/mathieu/.kodi/addons/metadata.musicvideos.theaudiodb.com', content: 'musicvideos', version: '1.3.3')
21:43:38.888 T:140736808257280   DEBUG: scraper: CreateSearchUrl returned <url>http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/searchtrack.php?s=Come%20on%20Home&amp;t=</url>
21:43:38.888 T:140736808257280   DEBUG: CurlFile::Open(0x55555c3ba0f0) http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/searchtrack.php?s=Come%20on%20Home&t=
21:43:39.009 T:140736808257280   DEBUG: Get: Using content of "http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/searchtrack.php?s=Come%20on%20Home&t=" as binary or text with "UTF-8" charset
21:43:39.009 T:140736808257280   DEBUG: scraper: GetSearchResults returned <results sorted="yes"></results>
21:43:39.010 T:140736808257280   DEBUG: FindMovie: Searching for 'Come on Home' using TheAudioDb.com for Music Videos scraper (path: '/home/mathieu/.kodi/addons/metadata.musicvideos.theaudiodb.com', content: 'musicvideos', version: '1.3.3')
21:43:39.011 T:140736808257280   DEBUG: scraper: CreateSearchUrl returned <url>http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/searchtrack.php?s=Come%20on%20Home&amp;t=</url>
21:43:39.011 T:140736808257280   DEBUG: CurlFile::Open(0x55555c3ba0f0) http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/searchtrack.php?s=Come%20on%20Home&t=
21:43:39.073 T:140736808257280   DEBUG: Get: Using content of "http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/searchtrack.php?s=Come%20on%20Home&t=" as binary or text with "UTF-8" charset
21:43:39.073 T:140736808257280   DEBUG: scraper: GetSearchResults returned <results sorted="yes"></results>

这似乎与命令行GET查询一致:

$ curl "http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/searchtrack.php?s=Come%20on%20Home&t="
{"track":null}%      

但是,如果我现在上网,我可以找到一个点击:

我做错了什么?

1 个答案:

答案 0 :(得分:0)

阅读API query URL我想我需要调整一下标题+艺术家系列。

enter image description here

注意破折号之前/之后的空格很重要。

enter image description here

所以最终我得到了一些工作:

21:52:33.568 T:140736062281472   DEBUG: CurlFile::Open(0x55555c3c9130) http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/searchtrack.php?s=Franz%20Ferdinand&t=Come%20on%20home
21:52:33.568 T:140736062281472    INFO: easy_acquire - Created session to http://www.theaudiodb.com
21:52:33.829 T:140736062281472   DEBUG: Get: Using content of "http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/searchtrack.php?s=Franz%20Ferdinand&t=Come%20on%20home" as binary or text with "UTF-8" charset
21:52:33.830 T:140736062281472   DEBUG: scraper: GetSearchResults returned <results sorted="yes"><entity><title>Franz Ferdinand - Come On Home [Franz Ferdinand]</title><url cache="tadb-32777980.json">http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/track.php?h=32777980</url></entity></results>
21:52:33.830 T:140736062281472   DEBUG: Thread VideoInfoDownloader 140736062281472 terminating

所以我需要使用$ {ARTIST NAME} - $ {SONG NAME}来获取最终内容。