• 1
  • 23
  • 24
  • 25
  • 26
  • 27(current)
WIP TV Tunes
Are you talking about where Tvtunes used to download the mp3 from the internet?? If so it got removed because of copyright. You have to manually add your tunes into the appropriate folders
Reply
As soon as I focus a series an error message appears. Is this a known error? 

TVTunes 2.1.1, Kodi Omega 21.1, CoreElec 21.1.1

Code:
2024-08-27 01:45:34.455 T:4245     info <general>: [TV Tunes] TunesBackend: themePath = smb://192.168.1.41/Videos/Serien/A Discovery of Witches/
2024-08-27 01:45:34.464 T:4245    debug <general>: [TV Tunes] ### Try authentication share
2024-08-27 01:45:34.464 T:4245    debug <general>: [TV Tunes] ### smb://kodi:[email protected]/Videos/Serien/A Discovery of Witches/
2024-08-27 01:45:34.465 T:4245     info <general>: [TV Tunes] NfoReader: Searching for NFO file: smb://kodi:[email protected]/Videos/Serien/A Discovery of Witches/tvtunes.nfo
2024-08-27 01:45:34.496 T:4484    debug <general>: Thread BackgroundLoader 2860560896 terminating
2024-08-27 01:45:34.551 T:4245     info <general>: [TV Tunes] NfoReader: No NFO file found: smb://kodi:[email protected]/Videos/Serien/A Discovery of Witches/tvtunes.nfo
2024-08-27 01:45:34.552 T:4245     info <general>: [TV Tunes] ThemeFiles: Searching smb://kodi:[email protected]/Videos/Serien/A Discovery of Witches for (theme[ _A-Za-z0-9.-]*.(mp3|wma|flac|m4a|wav|wav|mp4|mkv|avi|mov|m2ts|webm)$)
2024-08-27 01:45:34.554 T:4469    debug <general>: RunQuery took 26 ms for 2 items query: select * from movie_view  JOIN sets ON movie_view.idSet = sets.idSet WHERE (sets.idSet=29) AND (isDefaultVersion = 1) ORDER BY sets.idSet
2024-08-27 01:45:34.555 T:4469    debug <general>: connect replacing configured host 192.168.1.41 with resolved host 192.168.1.41
2024-08-27 01:45:34.674 T:4469    debug <general>: RunQuery took 42 ms for 2 items query: select * from movie_view  WHERE (movie_view.idSet = 29) AND (isDefaultVersion = 1)
2024-08-27 01:45:34.675 T:4469    debug <general>: connect replacing configured host 192.168.1.41 with resolved host 192.168.1.41
2024-08-27 01:45:34.793 T:4245     info <general>: Skipped 1 duplicate messages..
2024-08-27 01:45:34.793 T:4245     info <general>: [TV Tunes] ThemeFiles: Found match: smb://kodi:[email protected]/Videos/Serien/A Discovery of Witches/theme.mp3
2024-08-27 01:45:34.793 T:4245     info <general>: [TV Tunes] ThemeFiles: Playlist size = 1
2024-08-27 01:45:34.793 T:4245     info <general>: [TV Tunes] ThemeFiles: Working Path = smb://kodi:[email protected]/Videos/Serien/A Discovery of Witches
2024-08-27 01:45:34.793 T:4245    debug <general>: [TV Tunes] TunesBackend: old path: 
2024-08-27 01:45:34.793 T:4245    debug <general>: [TV Tunes] TunesBackend: new path: smb://192.168.1.41/Videos/Serien/A Discovery of Witches/
2024-08-27 01:45:34.808 T:4230    debug <general>: script.skin.helper.widgets --> Kodi_Monitor: sender xbmc - method: Playlist.OnAdd  - data: {"item":{"type":"unknown"},"playlistid":0,"position":0}
2024-08-27 01:45:34.808 T:4228    debug <general>: Skin Helper Service --> Kodi_Monitor: sender xbmc - method: Playlist.OnAdd  - data: {"item":{"type":"unknown"},"playlistid":0,"position":0}
2024-08-27 01:45:34.852 T:4243    debug <general>: [service.sleepy.watchdog] Notification triggered
2024-08-27 01:45:34.852 T:4243    debug <general>: [service.sleepy.watchdog] sender: xbmc
2024-08-27 01:45:34.852 T:4243    debug <general>: [service.sleepy.watchdog] method: Playlist.OnAdd
2024-08-27 01:45:34.852 T:4243    debug <general>: [service.sleepy.watchdog] data:   {"item":{"type":"unknown"},"playlistid":0,"position":0}
2024-08-27 01:45:34.876 T:4245    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'AttributeError'>
                                                   Error Contents: 'xbmcgui.ListItem' object has no attribute 'getfilename'
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/service.tvtunes/service.py", line 56, in <module>
                                                       main.runAsAService()
                                                     File "/storage/.kodi/addons/service.tvtunes/resources/lib/backend.py", line 168, in runAsAService
                                                       if self.start_playing():
                                                          ^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/service.tvtunes/resources/lib/backend.py", line 376, in start_playing
                                                       playlist = self.newThemeFiles.getThemePlaylist()
                                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/service.tvtunes/resources/lib/themeFinder.py", line 353, in getThemePlaylist
                                                       filename = playlist[0].getfilename()
                                                                  ^^^^^^^^^^^^^^^^^^^^^^^
                                                   AttributeError: 'xbmcgui.ListItem' object has no attribute 'getfilename'
                                                   -->End of Python script error report<--
                                                   
2024-08-27 01:45:34.876 T:4245    debug <general>: onExecutionDone(50, /storage/.kodi/addons/service.tvtunes/service.py)
2024-08-27 01:45:34.881 T:4132    debug <general>: ------ Window Init (DialogNotification.xml) ------
Reply
Well, according to https://forum.kodi.tv/showthread.php?tid...pid2933596 the method getfilename has already been marked as deprecated in Kodi v19 ?
Reply
@malvinas2
I'm trying to reproduce this problem, but so far I am unable to do so. Can you try editing the file themeFinder.py and replace getfilename with getPath?
Reply
Hello @latts9923
thank you for your answer. 
I replaced getfilename 4 times in themeFinder.py resp. 2 times in themePlayer.py by getPath

Now I get an error, saying that there's no method getduration, which indeed was removed in v19 as commented in the link mentioned above. 
Any idea what might be the replacement for this command? 
(funny enough that the PR, documentation and comment in forum just say, that a command is removed but no replacement, which to use instead, is given)

Code:
2024-08-31 03:01:57.870 T:4245     info <general>: [TV Tunes] TunesBackend: themePath = smb://kodi:[email protected]/meinesachen/Themes/A Discovery of Witches
2024-08-31 03:01:57.870 T:4245     info <general>: [TV Tunes] NfoReader: Searching for NFO file: smb://kodi:[email protected]/meinesachen/Themes/A Discovery of Witches/tvtunes.nfo
2024-08-31 03:01:57.961 T:4245     info <general>: [TV Tunes] NfoReader: No NFO file found: smb://kodi:[email protected]/meinesachen/Themes/A Discovery of Witches/tvtunes.nfo
2024-08-31 03:01:57.962 T:4245     info <general>: [TV Tunes] ThemeFiles: Searching smb://kodi:[email protected]/meinesachen/Themes/A Discovery of Witches for (theme[ _A-Za-z0-9.-]*.(mp3|wma|flac|m4a|wav|wav|mp4|mkv|avi|mov|m2ts|webm)$)
2024-08-31 03:01:58.021 T:4480    debug <general>: Thread BackgroundLoader 2388648448 terminating
2024-08-31 03:01:58.046 T:4245     info <general>: [TV Tunes] ThemeFiles: Found match: smb://kodi:[email protected]/meinesachen/Themes/A Discovery of Witches/theme.mp3
2024-08-31 03:01:58.046 T:4245     info <general>: [TV Tunes] ThemeFiles: Playlist size = 1
2024-08-31 03:01:58.046 T:4245     info <general>: [TV Tunes] ThemeFiles: Working Path = smb://kodi:[email protected]/meinesachen/Themes/A Discovery of Witches
2024-08-31 03:01:58.046 T:4245    debug <general>: [TV Tunes] TunesBackend: old path: 
2024-08-31 03:01:58.046 T:4245    debug <general>: [TV Tunes] TunesBackend: new path: smb://kodi:[email protected]/meinesachen/Themes/A Discovery of Witches
2024-08-31 03:01:58.079 T:4245    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'AttributeError'>
                                                   Error Contents: 'xbmcgui.ListItem' object has no attribute 'getduration'
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/service.tvtunes/service.py", line 56, in <module>
                                                       main.runAsAService()
                                                     File "/storage/.kodi/addons/service.tvtunes/resources/lib/backend.py", line 168, in runAsAService
                                                       if self.start_playing():
                                                          ^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/service.tvtunes/resources/lib/backend.py", line 376, in start_playing
                                                       playlist = self.newThemeFiles.getThemePlaylist()
                                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/service.tvtunes/resources/lib/themeFinder.py", line 354, in getThemePlaylist
                                                       duration = int(playlist[0].getduration())
                                                                      ^^^^^^^^^^^^^^^^^^^^^^^
                                                   AttributeError: 'xbmcgui.ListItem' object has no attribute 'getduration'
                                                   -->End of Python script error report<--
                                                   
2024-08-31 03:01:58.080 T:4245    debug <general>: onExecutionDone(47, /storage/.kodi/addons/service.tvtunes/service.py)
Reply
I checked again, but the version used is actually the current v2.1.1 from the Latts repo. I can't understand why this problem doesn't occur to other users??
Reply
  • 1
  • 23
  • 24
  • 25
  • 26
  • 27(current)

Logout Mark Read Team Forum Stats Members Help
TV Tunes1