[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)
Ken: I've been using your addon very successfully for awhile now. It gets kicked off when playback starts and playback ends. When playback ends I pop up a menu that gives me the option to delete the file (TV Show) being viewed.
My TV Show recordings are coming from NextPVR.

Here is the issue, sometimes NextPVR creates this long filename that contains commas. I should mention I am running on Windows 8.1.
So the issue is every-time there is a comma in the filename my python scrip that gets kicked off by your callback2 thinks there is an extra parameter. So in affect the "file" parameter becomes and invalid filename (a file that can't be found as it is really an incomplete filename) and therefore does not execute my python script correctly.
I know when you pass a parameter to a python program you can put quotes ("") around the parameter being sent, which then would allow embedded commas. Could you point me in the right direction in your code so I could add those quotes around the filename?
I am sure this is not an issue for most people, so I would not expect you to make this specific change just for me. But I could modify the code myself if I could find the right spot. I have taken a look at your code and it isn't obvious to me where to make that change.
I'd appreciate any help you might be able to offer.
Reply


Messages In This Thread
Great! - by gnorf - 2013-02-27, 22:50
[RELEASE] Pilulli Revisited - by KenV99 - 2014-06-28, 18:18
RE: [RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...) - by ReplayHarry - 2015-09-03, 17:46
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)4