Posts: 128
Joined: Feb 2014
Reputation:
0
Ok, thanks.
Actually I do need filename and title, but I will install this and see what happens, then I can always go back.
Won't be able to try till tomorrow mornings "Good Day".
Question: Would this affect getting filename and title in this particular circumstance (not getting filename or title) or all? If it just affects this one, then I could probably live with it.
I sure appreciate your assistance. I'll get back to you tomorrow.
Posts: 507
Joined: Nov 2013
Reputation:
28
It's only happening when you are getting the error. Even though Kodi is triggering the script that playback has started, it is not able to retrieve either the filename or title at that point. This is the first that I am hearing of this issue and should only affect this circumstance with comskip as far as I can tell.
Posts: 204
Joined: Oct 2011
Reputation:
7
Love this service -
Is there a way to set an action to run only when a Smart Playlist plays?
I have an action working on the regular Playback event, but would love to restrict this to only Smart Playlists.
Thanks!
Posts: 306
Joined: Feb 2012
Reputation:
1
I just tried this on Raspberry Pi 2 running OSMC and the script never runs. I have executable permissions. Is there some dependency? I have great success on 64 bit ubuntu , but not on Pi 2 with OSMC
Posts: 306
Joined: Feb 2012
Reputation:
1
Thanks KenV99,
I have been using this older version for some time and was unaware of a newer fork.
this newer version works great. Good work.
Mark
Posts: 128
Joined: Feb 2014
Reputation:
0
Ken: My little script has been working just fine for awhile now, but today on my desktop (my test machine before I put changes on my HTPC) I started to get script errors on the callback2 addon. See below.
21:53:12 T:1892 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named requests2
Traceback (most recent call last):
File "C:\Users\Harry\AppData\Roaming\Kodi\addons\service.xbmc.callbacks2-master\default.py", line 46, in <module>
import requests2 as requests
ImportError: No module named requests2
-->End of Python script error report<--
I had been modifying my script for some "cosmetic" issues and testing the changes. Out of nowhere this comes up. I made no modifications to your script, but since I installed Helix since I put your last fix in, I was thinking maybe that was it.
Any ideas? What kind of additional info might you need.
Thanks for any help you may give. If worst comes to worst I will just re-install the addon and start from scratch I guess.
Posts: 1,355
Joined: Oct 2011
Reputation:
70
Is it missing an import request2?
Posts: 128
Joined: Feb 2014
Reputation:
0
2015-06-24, 13:16
(This post was last modified: 2015-06-27, 02:36 by ReplayHarry.)
I looked at the code and it has IMPORT REQUESTS2 as REQUESTS
But the question is what happen to the REQUEST2 module and how do I get it back? As it appears it isn't finding it all of a sudden.
----UPDATE
Since I was awake anyway, I decided to put my new code (my script that works with callback2) on my HTPC. Of course I renamed my old code to oldxxxx.py so I could go back to it. It worked fine over there and no "script error" for callback2 when I started up Kodi.
So all I can figure out is that someway the REQUEST2 module got zapped when I was testing my code on my desktop.
So if I can get it back, all should be normal again.
Do I just pip it back? I know how to do that on Python in general, but how do I get it back into Kodi's python.
--update 6/26/2015
uninstalled callback2 addon and re-installed and all is working fine again.
Posts: 38
Joined: Mar 2015
Reputation:
0
Alth79
Junior Member
Posts: 38
Hi, this looks really interesting! I wonder if this can work with my set up. I run kodi on windows 8.1 and have a script that activates batch files to switch between VPNs when opening various addons. I have not been able to make the VPN disconnect when exiting an addon using this script. Could this allow me to disconnect my VPN via .bat file when exiting an addon/returning to main kodi screen? An alternative would be to disconnect the VPN when stopping playback of a stream from within an addon? Cheers for any info
Posts: 38
Joined: Mar 2015
Reputation:
0
Alth79
Junior Member
Posts: 38
Hi kenv99, thanks for the quick reply. Sadly for me that is all way too complicated ha ha! Would love to learn how to develop this type of thing but wouldn't know where to start! Cheers again