Kodi Community Forum
[Closed] TvTunes Addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [Closed] TvTunes Addon (/showthread.php?tid=83925)



RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - ronie - 2013-03-15

(2013-03-12, 22:13)tomska Wrote: Why would it be a mess? Wouldn't it be possible to add some timer so a theme starts playing only if a show was focused for a second or so? That way, if one were to immediately start scrolling after opening the list, nothing would be played until he stopped scrolling. And if he then started scrolling again, the previous theme would keep playing until he stopped at another show.

tbh i don't know if it would be easy to implement.

if anyone has interest in having a go at it,
check the run() function in tvtunes_backend.py


RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - seth.feinberg - 2013-03-18

Hey all, I recently upgraded to Frodo and after my upgrade I experienced a very strange and consistent ~2.5 minute lag at what appeared like random moments but most consistently after an episode completed and I would select the next episode of the same TV show to play. @Memphiz helped me (http://forum.xbmc.org/showthread.php?tid=158967) narrow down the problem and I noticed that particular issue disappear as soon as I disabled TVTunes. You can see my pastebin's in that thread but here are the latest ones, the first with TVTunes enabled and the last 3 w/o:

http://pastebin.com/VB2DbARB (All Enabled)
http://pastebin.com/EVR3P49m (No TVTunes or Library Update on Open)
http://pastebin.com/QWCBZZh1 (No TVTunes)
http://pastebin.com/Qx94jeiM (No TVTunes)

I realize considering I'm still seeing issues, albeit much less severe issues, it may be something totally unrelated, but I love TVTunes and would love to be able to re-enable it. Has anybody else experienced these issues during the upgrade process? I'm running Frodo 12.0 on Win7, ATV2 and a MySQL db on a Synology Nas where files are being served with NFS.


RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - ronie - 2013-03-18

i'm afraid i won't be of much help.
afaik your issue is still there with tv tunes disabled.

1st log, tv tunes enabled - 120 secs freeze
17:31:20 T:5212 DEBUG: Thread Jobworker 5212 terminating (autodelete)
17:33:20 T:8440 DEBUG: CAnnouncementManager - Announcement: OnUpdate from xbmc

3th log, tv tunes disabled - 87 secs freeze
17:28:38 T:2512 DEBUG: Thread Jobworker 2512 terminating (autodelete)
17:31:05 T:7120 DEBUG: CAnnouncementManager - Announcement: OnUpdate from xbmc


RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - seth.feinberg - 2013-03-19

(2013-03-18, 22:32)ronie Wrote: i'm afraid i won't be of much help.
afaik your issue is still there with tv tunes disabled.

1st log, tv tunes enabled - 120 secs freeze
17:31:20 T:5212 DEBUG: Thread Jobworker 5212 terminating (autodelete)
17:33:20 T:8440 DEBUG: CAnnouncementManager - Announcement: OnUpdate from xbmc

3th log, tv tunes disabled - 87 secs freeze
17:28:38 T:2512 DEBUG: Thread Jobworker 2512 terminating (autodelete)
17:31:05 T:7120 DEBUG: CAnnouncementManager - Announcement: OnUpdate from xbmc

@ronie, thanks for taking a look! Yes, SOMETHING is still there, but before I disabled TV Tunes I would play a file to completion and be able to navigate to the next file, but when I hit play it would hang for about 2.5 minutes before the previous file would be marked watched and the new one would start playing. This roughly 2.5 minute pause was also present if I tried to exit the TV Show subfolder that I was currently in.

What exactly is this Jobworker that is causing the ~2min delay you've pointed out above?


RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - ronie - 2013-03-19

(2013-03-19, 00:41)seth.feinberg Wrote: What exactly is this Jobworker that is causing the ~2min delay you've pointed out above?

no idea... and i don't think it's causing the delay either.


RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - seth.feinberg - 2013-03-19

(2013-03-19, 00:45)ronie Wrote:
(2013-03-19, 00:41)seth.feinberg Wrote: What exactly is this Jobworker that is causing the ~2min delay you've pointed out above?

no idea... and i don't think it's causing the delay either.

ha, ok, i guess I shouldn't bother asking about the CAnnouncementManager thenSmile


RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - ronie - 2013-03-19

(2013-03-19, 00:49)seth.feinberg Wrote:
(2013-03-19, 00:45)ronie Wrote:
(2013-03-19, 00:41)seth.feinberg Wrote: What exactly is this Jobworker that is causing the ~2min delay you've pointed out above?

no idea... and i don't think it's causing the delay either.

ha, ok, i guess I shouldn't bother asking about the CAnnouncementManager thenSmile

heh, the onUpdate announcement is just an internal notification that your database has been updated.
it happens when you finish watching something for instance (video will be marked as watched in the db).


RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - seth.feinberg - 2013-03-19

(2013-03-19, 00:54)ronie Wrote: heh, the onUpdate announcement is just an internal notification that your database has been updated.
it happens when you finish watching something for instance (video will be marked as watched in the db).

So basically the Debug log is telling me that it took 2 minutes for XBMC to mark the video I just watched as watched, but not what it was doing during those 2 minutes. awesome.


RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - UserInterface - 2013-03-20

I have just installed the ACE theme and am trying to get this feature to work. Yesterday I ran the whole scan and selected all my themes but it didn't store any files in the path that it stated.
Today I turned on logging so that I could find out why but now the script just fails on the second show (first does not exist)

This is the section that I narrowed down from the log (if i am right)

Code:
21:57:57 T:5868   DEBUG: LocalizeStrings: no strings.po file exist at C:\Users\Media\AppData\Roaming\XBMC\addons\script.tvtunes\resources\language\english, fallback to strings.xml
21:57:57 T:3176   DEBUG: ------ Window Init (DialogYesNo.xml) ------
21:57:57 T:3176    INFO: Loading skin file: DialogYesNo.xml, load type: KEEP_IN_MEMORY
21:57:58 T:1532   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x9732628
21:57:58 T:3176   DEBUG: Previous line repeats 1 times.
21:57:58 T:3176    INFO: XCURL::DllLibCurlGlobal::CheckIdle - Closing session to http://feeds.feedburner.com (easy=0CDA0008, multi=0A0D11F0)
21:57:59 T:1532   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x9732628
21:58:01 T:3176   DEBUG: Previous line repeats 5 times.
21:58:01 T:3176   DEBUG: Keyboard: scancode: 4d, sym: 0113, unicode: 0000, modifier: 0
21:58:01 T:3176   DEBUG: CApplication::OnKey: right (f083) pressed, action is Right
21:58:02 T:1532   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x9732628
21:58:02 T:3176   DEBUG: Keyboard: scancode: 1c, sym: 000d, unicode: 000d, modifier: 0
21:58:02 T:3176   DEBUG: CApplication::OnKey: return (f00d) pressed, action is Select
21:58:02 T:3176   DEBUG: ------ Window Deinit (DialogYesNo.xml) ------
21:58:02 T:5868   DEBUG: DialogProgress::StartModal called
21:58:02 T:5868   DEBUG: ------ Window Init (DialogProgress.xml) ------
21:58:02 T:5868    INFO: Loading skin file: DialogProgress.xml, load type: KEEP_IN_MEMORY
21:58:02 T:5868   DEBUG: script.tvtunes: ### Search for $#*! My Dad Says
21:58:02 T:1532   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x9732628
21:58:03 T:5868   DEBUG: Previous line repeats 2 times.
21:58:03 T:5868   DEBUG: script.tvtunes: ### Search url: http://www.televisiontunes.com/search.php?searWords=%24%23%2A%21+My+Dad+Says&Send=Search
21:58:03 T:5868   DEBUG: script.tvtunes: no theme found for $#*! My Dad Says
21:58:03 T:5868   DEBUG: script.tvtunes: ### next page: False
21:58:03 T:3176   DEBUG: ------ Window Init (DialogSelect.xml) ------
21:58:03 T:3176    INFO: Loading skin file: DialogSelect.xml, load type: KEEP_IN_MEMORY
21:58:04 T:1532   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x9732628
21:58:06 T:3176   DEBUG: Previous line repeats 4 times.
21:58:06 T:3176   DEBUG: Keyboard: scancode: 0e, sym: 0008, unicode: 0008, modifier: 0
21:58:06 T:3176   DEBUG: CApplication::OnKey: backspace (f008) pressed, action is Back
21:58:06 T:1532   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x9732628
21:58:07 T:3176   DEBUG: ------ Window Deinit (DialogSelect.xml) ------
21:58:07 T:5868   DEBUG: script.tvtunes: ### Canceled by user
21:58:07 T:5868   DEBUG: script.tvtunes: ### Search for 2 Broke Girls
21:58:07 T:1532   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x9732628
21:58:08 T:5868   DEBUG: Previous line repeats 2 times.
21:58:08 T:5868   DEBUG: script.tvtunes: ### Search url: http://www.televisiontunes.com/search.php?searWords=2+Broke+Girls&Send=Search
21:58:08 T:5868   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.NameError'>
                                            Error Contents: global name 'exact_match' is not defined
                                            Traceback (most recent call last):
                                              File "C:\Users\Media\AppData\Roaming\XBMC\addons\script.tvtunes\resources\tvtunes_scraper.py", line 238, in <module>
                                                TvTunes()
                                              File "C:\Users\Media\AppData\Roaming\XBMC\addons\script.tvtunes\resources\tvtunes_scraper.py", line 88, in __init__
                                                self.scan(normalize_string( params.get("name", "" ) ),params.get("path", "false" ).decode("utf-8"))
                                              File "C:\Users\Media\AppData\Roaming\XBMC\addons\script.tvtunes\resources\tvtunes_scraper.py", line 113, in scan
                                                if (len(theme_list) == 1) and (exact_match == 'true'):
                                            NameError: global name 'exact_match' is not defined
                                            -->End of Python script error report<--
21:58:08 T:3176   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
21:58:08 T:5868    INFO: Python script stopped
21:58:08 T:5868   DEBUG: Thread XBPyThread 5868 terminating
21:58:08 T:3176   DEBUG: waiting for python thread 10 (C:\Users\Media\AppData\Roaming\XBMC\addons\script.tvtunes\resources\tvtunes_scraper.py) to stop
21:58:08 T:3176   DEBUG: python thread 10 (C:\Users\Media\AppData\Roaming\XBMC\addons\script.tvtunes\resources\tvtunes_scraper.py) destructed
21:58:08 T:1532   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x9732628
21:58:08 T:3176   DEBUG: ------ Window Deinit (DialogProgress.xml) ------
21:58:09 T:1532   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x9732628
21:58:12 T:3176   DEBUG: Previous line repeats 5 times.
21:58:12 T:3176   DEBUG: Keyboard: scancode: 0e, sym: 0008, unicode: 0008, modifier: 0
21:58:12 T:3176   DEBUG: CApplication::OnKey: backspace (f008) pressed, action is Back
21:58:12 T:3176   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
21:58:12 T:1532   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x9732628
21:58:12 T:3176   DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
21:58:12 T:3176   DEBUG: CGUIWindowManager::PreviousWindow: Activate new
21:58:12 T:3176   DEBUG: ------ Window Init (Home.xml) ------

Could someone help me with why?
I started at the point where it lists all my shows to keep it small but the whole thing can be found here -> http://pastebin.com/wVbMerzd


RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - Alim - 2013-03-20

HI,I installed this script to use it with Ace theme but I get an error "script failed : tvtunes scraper.py" I tried it in Aeon Nox as well but I got the same error. Can someone tell me where I'm going wrong ?


RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - ronie - 2013-03-20

(2013-03-20, 19:18)Alim Wrote: HI,I installed this script to use it with Ace theme but I get an error "script failed : tvtunes scraper.py" I tried it in Aeon Nox as well but I got the same error. Can someone tell me where I'm going wrong ?

do as the person above you and post a full Debug Log ;-)


RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - ronie - 2013-03-20

(2013-03-20, 12:57)UserInterface Wrote: Could someone help me with why?
I started at the point where it lists all my shows to keep it small but the whole thing can be found here -> http://pastebin.com/wVbMerzd

thanx, i'll look into it.


RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - Alim - 2013-03-20

(2013-03-20, 20:02)ronie Wrote:
(2013-03-20, 19:18)Alim Wrote: HI,I installed this script to use it with Ace theme but I get an error "script failed : tvtunes scraper.py" I tried it in Aeon Nox as well but I got the same error. Can someone tell me where I'm going wrong ?

do as the person above you and post a full debug log ;-)

Here is the debug log.

http://pastebin.com/ytsdixZJ


RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - D3mon3k-CZ - 2013-03-20

hi, i have same problem script failed: tvtunes_scraper.py
here is the log, i dunno it i did it right, if not i will remake it.
the program automatically start at first TVshow no matter what i choose, i choose GoT and still looking for Cal. 7% and failure

thank you for help

http://pastebin.com/yMaNPyrM


RE: [RELEASE] TvTunes Addon - TV Show Theme Music while browsing - ronie - 2013-03-21

thanx for the logs everyone :-)
fix should arrive shortly (v3.0.6)