Bug #3333

deviceId is NaN if plugin's URI was called by bookmark

Added by Leonid Protasov over 1 year ago. Updated over 1 year ago.

Status:NewStart date:12/23/2017
Priority:HighDue date:
Assignee:Andreas Smas% Done:

0%

Category:General
Target version:5.2
Found in version:5.0.494 Platform:Linux

Description

Plugin exposes the URI:

plugin.addURI(PREFIX + ":play:(.*):(.*):(.*)", function(page, url, title, referer) {
showtime.print('Device Id is NaN here :(' + showtime.deviceId);
});

If play is called outside the plugin (by bookmark or another plugin for example) deviceId isn't available.

History

#1 Updated by Leonid Protasov over 1 year ago

  • Subject changed from showtime.deviceId is NaN if plugin's URI was called by bookmark to deviceId is NaN if plugin's URI was called by bookmark

#2 Updated by Leonid Protasov over 1 year ago

new page.Route('test:(.*)', function(page) {
print('DevId: ' + Core.deviceId);
});

Call it like test from unified search box and you will get empty result :(

Also available in: Atom PDF