<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <meta name="generator" content="pandoc" />
  <title></title>
  <style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<p>Hi Pierre,</p>
<p>On 2016-10-26 15:48, Pierre Ynard wrote:</p>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050">
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050">
<pre><code> The entry still has the numeric identifier, which is unconditionally
 displayed, so you would still be able to query information about the
 entity (in case that is wanted).</code></pre>
</blockquote>
<pre><code> How do you query information about anything but the current item within
 the CLI?</code></pre>
</blockquote>
<p>I honestly thought that <code>cli.lua</code> had support for querying entity data based on the numeric id, it was a “stupid” assumption based on the fact that I really expected such information to be there.</p>
<ul>
<li><p>Attached is a modified patch that simply prints “item.path” if the entity lacks a title.</p></li>
<li><p>I will probably write an enhancement for <code>cli.lua</code> later this evening so that information can be queried about arbitrary items without asking for playback, because I am honestly surprised that this is not present at the current time.</p></li>
</ul>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050">
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050">
<pre><code> I do not understand what you mean by *"that possibly won't play
 correctly"*, the "name" property of an item is not mandatory - and
 will not aid when an item is actually scheduled to be played.</code></pre>
</blockquote>
<pre><code> The example in #17545 won't play, so you can't even play it to make it
 the current item, to then query it.</code></pre>
</blockquote>
<p>The snippet in <code>#17545</code> was written incorrectly, more specifically it lacked the scheme for the <em>URI</em> supplied - I will update the ticket as soon as possible. Thanks for letting me know about it.</p>
<p>Regarding <em>“you can’t even play it to make it the current item”</em>, that’s in no way limited to the items that has no name (the same would happen for media that as the relevant metadata, but fails to play).</p>
<p>Best Regards,<br />
Filip</p>
</body>
</html>