xbmc/video/VideoInfoScanner: Cannot retrieve Music Video - kodi

I am trying to retrieve information for a Music Video. For instance let's take:
$ youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 https://youtu.be/GhNuAXnhADI
If I start kodi, and try to search based on the filename I get no result, so I tried to simplify and enter in the text box, simply: "Come on home":
I still get no result:
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&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&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>
Which seems to be consistent with a command line GET query:
$ curl "http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/searchtrack.php?s=Come%20on%20Home&t="
{"track":null}%
However if I now go online, I can find a hit:
http://www.theaudiodb.com/track/32777980
What did I do wrong ?

Reading the API query URL I figured I needed to tweak a bit the title + artist line.
Pay attention that spaces before/after the dash are important.
So eventually I get something to work:
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
So I need to use ${ARTIST NAME} - ${SONG NAME} to get eventually something.

Related

how to truly turn off LaTex output in Doxygen

My group is using Doxygen 1.8.5 on RHEL7 to generate HTML-only documentation for a large C++ project. We only want HTML documentation and do not desire any other output format. The project's Doxygen configuration file (Doxyfile) carries the following settings which differ from the default (among others, of course):
OUTPUT_DIRECTORY="../Docs"
GENERATE_HTML=YES
GENERATE_LATEX=NO
When we run Doxygen with this config file, towards the end of processing, errors start coming to screen from LaTeX components, and processing is held up until the user hits enter a bunch of times to get past these errors, e.g.
...
sh: epstopdf: command not found
error: Problems running epstopdf. Check your TeX installation!
Generating graph info page...
Generating directory documentation...
</home/abilich/Src/GNSS_Software/Lib/LibgpsC++/>:3: warning: Found unknown command `\reference'
</home/abilich/Src/GNSS_Software/Lib/LibgpsC++/>:2: warning: Found unknown command `\reference'
</home/abilich/Src/GNSS_Software/Lib/LibgpsC++/>:2: warning: Found unknown command `\reference'
Generating bitmaps for formulas in HTML...
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
restricted \write18 enabled.
entering extended mode
(./_formulas.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo
aded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/epsfig.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/dvips.def))))
No file _formulas.aux.
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16]
! Undefined control sequence.
l.53 \[ \Vert v - w \Vert \leqslant
p\,\min(\Vert v\Vert, \Vert w\Vert). \]
?
...
! Undefined control sequence.
l.533 $ \vert singular value \vert \leqslant
threshold \times \vert max sing...
?
[177] [178] (./_formulas.aux) )
Output written on _formulas.dvi (178 pages, 20576 bytes).
Transcript written on _formulas.log.
error: Problems running latex. Check your installation or look for typos in _formulas.tex and check _formulas.log!
Generating image form_0.png for formula
sh: gs: command not found
error: Problem running ghostscript gs -q -g60x50 -r384x384x -sDEVICE=ppmraw -sOutputFile=_form0.pnm -dNOPAUSE -dBATCH -- _form0.ps. Check your installation!
Generating index page...
/home/abilich/Src/GNSS_Software/Doxy/mainpage.h:15: warning: image file GNSSSoftwareTimeline.png is not found in IMAGE_PATH: assuming external image.
Generating page index...
Generating module index...
Generating namespace index...
Generating namespace member index...
I want to create a Doxyfile that runs without user intervention and does not throw LaTeX errors. Where have I gone astray?
Thanks for #albert's comment, actually the newest version of doxygen did support to turn latex generation off by setting GENERATE_LATEX=NO:
#---------------------------------------------------------------------------
# Configuration options related to the LaTeX output
#---------------------------------------------------------------------------
# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
# The default value is: YES.
GENERATE_LATEX = NO
The parameter USE_PDFLATEX in your config file should set to NO (the default value is YES)
# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
# files. Set this option to YES, to get a higher quality PDF documentation.
#
# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
USE_PDFLATEX = NO

PowerShell Hide-WUUpdate to Hide specific KB update

Trying to hide a specific KB update with Hide-WUUpdate Here is what I am trying
Hide-WUUpdate –KBArticleID “KB4034664” -ComputerName PCNAME –Confirm:$false
I get the following output
WARNING: You haven't privileges to make this. Try start an eleated Windows PowerShell console
I have tried with an "Elevated Powershell" Any ideas?
After running this as suggested
Hide-WUUpdate –KBArticleID “KB4034664” -ComputerName PCNAME –Confirm:$false -Debuger
I got the following output.
DEBUG: STAGE 0: Prepare environment
DEBUG: Check if ComputerName in set
DEBUG: STAGE 1: Get updates list
DEBUG: Create Microsoft.Update.Session object for PCNAME
DEBUG: Create Microsoft.Update.Session.Searcher object for PCNAME
DEBUG: Set source of updates to default (for PCNAME) Windows Update
DEBUG: Set pre search criteria: IsInstalled = 0
DEBUG: Search criteria is: IsInstalled = 0
DEBUG: Set post search criteria: Dell Inc. - Bus Controllers and Ports, Display - Dell 1907FP(Analog)
DEBUG: Set post search criteria: KBArticleIDs = 'KB4034664'
DEBUG: UpdateAccess: false
DEBUG: Set post search criteria: LSI - Storage - Dell SAS 6/iR Integrated Workstation Controller
DEBUG: Set post search criteria: KBArticleIDs = 'KB4034664'
DEBUG: UpdateAccess: false
DEBUG: Set post search criteria: Update for Windows 7 for x64-based Systems (KB2574819)
DEBUG: Set post search criteria: KBArticleIDs = 'KB4034664'
DEBUG: UpdateAccess: false
DEBUG: Set post search criteria: Update for Windows 7 for x64-based Systems (KB2592687)
DEBUG: Set post search criteria: KBArticleIDs = 'KB4034664'
DEBUG: UpdateAccess: false
DEBUG: Set post search criteria: Update for Windows 7 for x64-based Systems (KB2830477)
DEBUG: Set post search criteria: KBArticleIDs = 'KB4034664'
DEBUG: UpdateAccess: false
DEBUG: Set post search criteria: Update for Windows 7 for x64-based Systems (KB3080079)
DEBUG: Set post search criteria: KBArticleIDs = 'KB4034664'
DEBUG: UpdateAccess: false
DEBUG: Set post search criteria: Update for Windows 7 for x64-based Systems (KB3102429)
DEBUG: Set post search criteria: KBArticleIDs = 'KB4034664'
DEBUG: UpdateAccess: false
DEBUG: Set post search criteria: 2017-08 Security Monthly Quality Rollup for Windows 7 for x64-based System
s (KB4034664)
DEBUG: Set post search criteria: KBArticleIDs = 'KB4034664'
DEBUG: Convert size
DEBUG: Convert KBArticleIDs
WARNING: You haven't privileges to make this. Try start an eleated Windows PowerShell console.
DEBUG: Set post search criteria: August, 2017 Preview of Quality Rollup for .NET Framework 3.5.1, 4.5.2, 4.
6, 4.6.1, 4.6.2, 4.7 on Windows 7 and Server 2008 R2 for x64 (KB4035036)
DEBUG: Set post search criteria: KBArticleIDs = 'KB4034664'
DEBUG: UpdateAccess: false
DEBUG: Set post search criteria: 2017-08 Preview of Monthly Quality Rollup for Windows 7 for x64-based Syst
ems (KB4034670)
DEBUG: Set post search criteria: KBArticleIDs = 'KB4034664'
DEBUG: UpdateAccess: false'
Powershell remote IS enabled on the remote computer.
Assuming this is the script you're using, it looks like the error message is from line 550. That warning message is from an error trap that's concealing the actual error. I'd recommend changing the code to something like this:
If ($pscmdlet.ShouldProcess($Computer, "$StatusName $($Update.Title)?")) {
Try {
$Update.IsHidden = $HideStatus
}
Catch {
Write-Warning "You haven't privileges to make this. Try start an eleated Windows PowerShell console."
throw ($_)
}
} #$pscmdlet.ShouldProcess($Computer,"Hide $($Update.Title)?")
Now you should be able to see the actual error message instead of the friendly, non-informative warning the script author decided you should get.
After analyzing all the information, I believe you do not have the required permissions/access to perform this operation remotely.
Your script is a 3rd party script. The debug info is not specially informative. All that can be said is that the script fails on setting the hidden property on the update.
The best shot you have is to enable Powershell Remoting to make sure you have the remote access you need to run this. Nevertheless there is a chance that it still may not work due to some Microsoft security restrictions. In that case I'd advise you to install and configure Microsoft Windows Server Update Services which will enable you to perform this task.

Protractor e2e test for downloading and comparing file with browser.driver.wait is timing out

I followed the suggestions in this thread: Protractor e2e test case for downloading pdf file and the file is downloading properly, but the test is timing out before the compare/expect is reached.
var filename = 'somefilename';
var content = 'some content\r\nsome more content';
download.click();
browser.driver.wait(function() {
return fs.existsSync(filename);
}, 5000).then(function() {
expect(fs.readFileSync(filename, {encoding: 'utf8'})).toEqual(content);
});
It creates and downloads the file and then sits there for 5 seconds before continuing on. The message I get is:
Message:
Error: Wait timed out after 5000ms
Stacktrace:
Error: Wait timed out after 5000ms
at Array.forEach (native)
From: Task: <anonymous wait>
at /path/to/test/e2e/scenarios.js:337:28
at Array.forEach (native)
Where line 337 is the browser.driver.wait line.
I tried doing it without the browser.driver.wait since the download is actually very quick since the file is just two short line by doing the following:
expect(fs.existsSync(filename));
browser.sleep(5000);
expect(fs.readFileSync(filename, {encoding: 'utf8'})).toEqual(content);
but it says that the filename doesn't exist for readFileSync and I assume this is because the file is not downloaded yet and the browser.sleep(5000) doesn't do anything.
Is there another way to do promises in protractor? Or can anyone clue me in as to why this might not be working? I'm running Protractor 2.1.0. I was running 1.0.0 and updated everything before trying again, but alas, it still isn't working.
Best regards,
Julie
I figured out the problem. My filename didn't contain the path that I set in the 'default_directory' of my protractor-conf.js file. Once I put in the whole path, it worked. Boy do I feel silly!

Writing an Augeas lens

I need to edit one line in /etc/mongodb.conf
auth = true
Augeas has a mongo lens, however it only works on augeas > 1.0
I am completely stuck on augeas 0.9 because it is the latest version in the epel repo, and I can not compile augeas from github.
As a work around, I'm trying to write my own augeas lens that will work on augeas 0.9
What I have so far is this
module Spencer =
autoload xfm
let entry = key /[a-z]+/ . del /[ \t]*=[ \t]*/ "=" . store /[a-z]+/
let lns = [ entry . del "\n" "\n" ] *
test lns get "auth = false\nfoo = bar\n" = ?
let filter = incl "/etc/mongodb.conf"
let xfm = transform lns filter
When I try and use the puppet type to apply the lens to /etc/mongodb.conf, I get an error "Iterated lens matched less than it should".
puppet apply augmongo.pp --debug --verbose --summarize
Info: Applying configuration version '1385024927'
Debug: Augeas[auth-mongo](provider=augeas): Opening augeas with root /, lens path , flags 64
Debug: Augeas[auth-mongo](provider=augeas): Augeas version 0.9.0 is installed
Test result: /usr/share/augeas/lenses/dist/spencer.aug:8.0-.44:
{ "auth" = "false" }
{ "foo" = "bar" }
Debug: Augeas[auth-mongo](provider=augeas): Will attempt to save and only run if files changed
Debug: Augeas[auth-mongo](provider=augeas): sending command 'set' with params ["/files/etc/mongodb.conf/auth", "true"]
Debug: Augeas[auth-mongo](provider=augeas): Put failed on one or more files, output from /augeas//error:
Debug: Augeas[auth-mongo](provider=augeas): /augeas/files/etc/mongodb.conf/error = put_failed
Debug: Augeas[auth-mongo](provider=augeas): /augeas/files/etc/mongodb.conf/error/pos = 1
Debug: Augeas[auth-mongo](provider=augeas): /augeas/files/etc/mongodb.conf/error/lens = /usr/share/augeas/lenses/dist/spencer.aug:6.10-.37:
Debug: Augeas[auth-mongo](provider=augeas): /augeas/files/etc/mongodb.conf/error/message = Iterated lens matched less than it should
Debug: Augeas[auth-mongo](provider=augeas): Closed the augeas connection
Error: /Stage[main]/Augmongo/Augeas[auth-mongo]: Could not evaluate: Save failed with return code false, see debug
Debug: Finishing transaction 69857417180740
Debug: Storing state
Debug: Stored state in 0.13 seconds
What is wrong with the lens?
How can I test a lens from the command line and take puppet out of the equation?
RHEL 6.4 just upgraded to Augeas 1.0. See https://rhn.redhat.com/errata/RHSA-2013-1537.html.
You should be able to rebuild the packages, or wait for CentOS to do that for you.
I have had similar issues with augeas & puppet. Applying changes seemed to end with the error Could not evaluate: Save failed with return code false every time. This turned out to be an syntax issue. I had:
set spec[user = '%somegroup']/host_group/command/tag NOPASSWD
(notice two empty space between tag and NOPASSWD).
When I tried the same command with one empty space, the issue was solved.
Looking into the template/lens (spencer.aug, line 6.10-.37) might offer some clue at what went wrong.

Emacs Elnode can't show html pages

I have installed Emacs elnode by Marmalade, and everything looks OK. And I have read the manual carefully.
Now elnode has started, and I can view the folder public_html under .emacs.d\elnode folder.
If I input url http://localhost:8000 in my Chrome, it will show following content:
/
.
..
default-webserver-image.png
test.html
But when I click the test.html file, chrome just can't get the response from elnode. I check my Emacs, the Message file provides two errors:
elnode-error: elnode--sentinel 'open from 127.0.0.1.' for process elnode-webserver-proc 127.0.0.1:2224 with buffer nil
elnode-error: Elnode status: elnode-webserver-proc 127.0.0.1:2224 open from 127.0.0.1
elnode-error: filter: calling handler on elnode-webserver-proc 127.0.0.1:2224
elnode-error: starting HTTP response on elnode-webserver-proc 127.0.0.1:2224
error in process filter: apply: Spawning child process: invalid argument
error in process filter: Spawning child process: invalid argument
I just don't know how to debug it. I also tried elnode-send-file function, it also doesn't work.
But If I run the Hello World example, it works:
(defun my-status-page (httpcon)
(elnode-http-start httpcon 200 '("Content-type" . "text/html"))
(elnode-http-return httpcon "<html><b>HELLO!</b></html>"))
(elnode-start 'my-status-page :port 8010)
The core problem is that Emacs can't send html page!
Is it necessary to do some basic configuration after installing elnode?
Thanks
Water Lin
The newest edition has solved the problem. If you meet the same problem as me, please download the newest edition.
My test environment is Windows7 & Emacs 24.2.1.