Posts: 76
Joined: Jan 2015
Reputation:
3
I got it working. A restart was required after changing the setting. However kodi is idle while playing a video. So it shuts the tv off during a show. Is that normal?
Posts: 11
Joined: Oct 2015
Reputation:
2
JANGER
Junior Member
Posts: 11
I try to use it in RPi OSMC version.
it does not work. I ssume it did not intialized propertly at all.
have any idea how to fix?
here is the log:
13:51:29 32.128613 T:1759802400 NOTICE: -->Python Interpreter Initialized<--
13:51:31 33.935440 T:1503654944 NOTICE: Thread BackgroundLoader start, auto delete: false
13:51:31 34.173580 T:1503654944 NOTICE: Previous line repeats 1 times.
13:51:31 34.173836 T:1503654944 NOTICE: Thread JobWorker start, auto delete: true
13:53:06 128.746902 T:1470100512 NOTICE: Thread LanguageInvoker start, auto delete: false
13:53:06 128.748657 T:1717335072 NOTICE: Thread JobWorker start, auto delete: true
13:53:07 129.354507 T:1470100512 NOTICE: -->Python Interpreter Initialized<--
13:53:14 136.895264 T:1470100512 NOTICE: Thread BackgroundLoader start, auto delete: false
13:53:25 147.743332 T:1528820768 NOTICE: Previous line repeats 2 times.
13:53:25 147.743652 T:1528820768 NOTICE: Thread JobWorker start, auto delete: true
13:58:04 426.967926 T:1958097456 NOTICE: Previous line repeats 3 times.
13:58:04 426.968201 T:1958097456 ERROR: CPythonInvoker(9, /home/osmc/.kodi/addons/service.xbmc.callbacks-0.5/default.py): script didn't stop in 5 seconds - let's kill it
13:58:04 427.007233 T:1503654944 NOTICE: Thread JobWorker start, auto delete: true
13:58:04 427.144135 T:1545597984 NOTICE: Thread BackgroundLoader start, auto delete: false
13:58:07 429.420166 T:1545597984 NOTICE: Thread LanguageInvoker start, auto delete: false
13:58:07 429.609436 T:1528820768 NOTICE: Thread BackgroundLoader start, auto delete: false
13:58:07 429.690613 T:1681847328 WARNING: CPythonInvoker(9, /home/osmc/.kodi/addons/service.xbmc.callbacks-0.5/default.py): the python script "/home/osmc/.kodi/addons/service.xbmc.callbacks-0.5/default.py" has left several classes in memory that we couldn't clean up. The classes include: N14PythonBindings31XBMCAddon_xbmc_Monitor_DirectorE,N14PythonBindings30XBMCAddon_xbmc_Player_DirectorE
13:58:07 429.981659 T:1545597984 NOTICE: -->Python Interpreter Initialized<--
13:58:10 432.544098 T:1681847328 NOTICE: Thread JobWorker start, auto delete: true
13:58:12 435.256744 T:1717335072 NOTICE: Previous line repeats 2 times.
13:58:12 435.257050 T:1717335072 NOTICE: Thread BackgroundLoader start, auto delete: false
13:58:15 437.688690 T:1717335072 NOTICE: Previous line repeats 1 times.
Posts: 306
Joined: Feb 2012
Reputation:
1
2015-10-17, 18:22
(This post was last modified: 2015-10-17, 18:22 by tekno.)
I have been using this on linux, and just tried it with a cleanup script on ATV2 as posted below however addon says "Command Not Valid"
I can run the script from the command line. Unfortunately this is very needed on ATV2 due to its lack of ability to automate in other ways
#!/bin/sh
rm -f /home/kodi/kodi_crash*.log
rm -f /home/kodi/.kodi/addons/packages/*.zip
rm -f /home/kodi/.kodi/temp/*.idx
rm -f /home/kodi/.kodi/temp/*.smi
rm -f /home/kodi/.kodi/temp/*.ssa
rm -f /home/kodi/.kodi/temp/*.ass
rm -f /home/kodi/.kodi/temp/*.srt
rm -f /home/kodi/.kodi/temp/*.sub
rm -f /home/kodi/.kodi/temp/*.fi
rm -f /home/kodi/.kodi/temp/*.mpl
rm -f /home/kodi/.kodi/temp/*.cache
rm -f /home/kodi/.kodi/temp/*.dat
rm -f /home/kodi/.kodi/temp/*.zip
rm -f /home/kodi/.kodi/temp/*.rar
rm -f /home/kodi/.kodi/temp/*.mpg
rm -f /home/kodi/.kodi/temp/*.avi
rm -f /home/kodi/.kodi/temp/*.mp4
rm -f /home/kodi/.kodi/temp/*.mkv
rm -f /home/kodi/.kodi/temp/*.3gp
rm -f /home/kodi/.kodi/temp/*.ts
rm -f /private/var/mobile/Library/Preferences/Kodi/addons/packages/*.zip
rm -f /private/var/mobile/Library/Caches/AppleTV/Video/LocalAndRental/*
rm -f /private/var/mobile/Library/Caches/AppleTV/Video/Other/*
rm -f /private/var/cache/apt/archives/*.deb
rm -f /private/var/cache/apt/archives/partial/*
exit 0
also tried with #!bin/bash as first line and either runs when I ssh to atv2 and manually run the script.
Posts: 507
Joined: Nov 2013
Reputation:
28
2015-10-17, 18:35
(This post was last modified: 2015-10-17, 18:35 by KenV99.)
Since you didn't link to a log my assumption is that it is the log that says 'Command Not Valid' as opposed to there being an exception/error?
I also assume that you have the above script in a file called script.sh or similar and the permissions/execute bit is properly set (i.e. you aren't root or su when you test it)?
I also assume that you have checked off to run it as a shell command (requires shell)?
I don't have any experience with ATV2 so beyond the above, I don't have any ideas.
Posts: 1,739
Joined: Aug 2011
Reputation:
23
2015-11-11, 12:44
(This post was last modified: 2015-11-11, 12:45 by schumi2004.)
Would it be possible to have this script to react on certain addon actions only?
For example only kick in when Retrospect stream stops playing instead of all (local and remote) media?
Or on http or rtmp streams only?