Jump to content


Photo
Completed

[Feature request] TV show tunes



  • This topic is locked This topic is locked
33 replies to this topic

#1 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 09:56 AM

Posted 29 April 2014 - 10:28 AM

I don't know if this is actually already possible in XBMB3C, but I couldn't get TV show tunes to play for MB3 content so far.

 

Is it already possible to use them or is it even feasible to support them in XBMB3C?



#2 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4755 posts
  • Local time: 03:56 AM
  • LocationAustin, TX

Posted 29 April 2014 - 10:37 AM

Depends on what the skins expect.  We can get a path to a file.  

 

xnappo



#3 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 09:56 AM

Posted 29 April 2014 - 11:06 AM

Skins seem to just run the script:

<onload condition="System.HasAddon(script.tvtunes) + Skin.HasSetting(TVTunes.Enabled) + !Player.HasMedia">RunScript(script.tvtunes,backend=True)</onload>


#4 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4755 posts
  • Local time: 03:56 AM
  • LocationAustin, TX

Posted 29 April 2014 - 11:10 AM

There has to be some other place where they are setting a window property or something that that script monitors.



#5 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 09:56 AM

Posted 29 April 2014 - 11:36 AM

I couldn't find anything else, but on the TvTunes addon page in the XBMC wiki the usage is described:

http://wiki.xbmc.org...=Add-on:TvTunes



#6 im85288 OFFLINE  

im85288

    Kodi Kruncher

  • Developers
  • 2699 posts
  • Local time: 09:56 AM
  • LocationGeordie Land

Posted 04 May 2014 - 08:41 AM

I started looking into this and it seems it may be possible. Set to in-progress.


  • tube82 likes this

#7 im85288 OFFLINE  

im85288

    Kodi Kruncher

  • Developers
  • 2699 posts
  • Local time: 09:56 AM
  • LocationGeordie Land

Posted 04 May 2014 - 07:02 PM

This is now working and does not need any skin changes to support it. 

 

The add-on has settings to turn it on or off and to set it on a loop if required.  

 

Please test and let me know if there's any issues. 

 

If you have the xbmb3c repo installed it has been updated with this change so look out for version 0.9.07 



#8 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 09:56 AM

Posted 04 May 2014 - 08:06 PM

I just tested it but couldn't get any themes to play. (The rotating fanart changes worked like a charm, though :) )

 

I think the problem may be that XBMC is running on a different machine than MB3. The log shows a local path from the server:

01:59:52 T:3872   ERROR: XFILE::CFileCache::Open - failed to open source <D:\...\2 Broke Girls\theme.mp3>


#9 im85288 OFFLINE  

im85288

    Kodi Kruncher

  • Developers
  • 2699 posts
  • Local time: 09:56 AM
  • LocationGeordie Land

Posted 04 May 2014 - 08:26 PM

Yes it looks that way if xbmc cannot see the D:, you can use path substitution to solve that though.

#10 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4755 posts
  • Local time: 03:56 AM
  • LocationAustin, TX

Posted 04 May 2014 - 08:54 PM

Use UNC paths !!!

 

Path substitution is a work-around.  In MediaBrowser server you are much better off using //computer/path/video than c:\video.

 

xnappo



#11 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 09:56 AM

Posted 05 May 2014 - 08:18 AM

Right, forgot about path substitution but will try UNC paths tonight! Three exclamation marks are enough to convince me ;)



#12 im85288 OFFLINE  

im85288

    Kodi Kruncher

  • Developers
  • 2699 posts
  • Local time: 09:56 AM
  • LocationGeordie Land

Posted 05 May 2014 - 08:53 AM

Yeah UNC paths when you can, path substitution when you can't (ie Linux/osx MB3 server)..but never local PC drive paths :)

#13 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 09:56 AM

Posted 05 May 2014 - 01:46 PM

I just tried with path substitution and it didn't work either:

19:36:01 T:2636   ERROR: XFILE::CFileCache::Open - failed to open source <\\192.168.2.113\path\According to Jim\theme.mp3>

When I copy and paste the path in the windows explorer the file plays.


Edited by tube82, 05 May 2014 - 02:00 PM.


#14 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 09:56 AM

Posted 05 May 2014 - 06:20 PM

Switching to UNC didn't help either.

I can play the vidoes from UNC paths with "Play from stream instead of SMB" disabled and I can copy&paste the link in the explorer and play the theme just fine.

 

Any idea what could cause this?

 

[edit]

with local paths it works on the server


Edited by tube82, 05 May 2014 - 06:57 PM.


#15 im85288 OFFLINE  

im85288

    Kodi Kruncher

  • Developers
  • 2699 posts
  • Local time: 09:56 AM
  • LocationGeordie Land

Posted 06 May 2014 - 04:04 AM

I am confused a bit here, so it does work correctly now?

 

I use path substitution as I have MB3 running on an OSX server and have not had any problems at all. My media is all on a NAS that has the NFS protocol built in so I map things such as:

 

/Volumes/music nfs://192.168.1.8/volume1/music

 

where /Volumes/music is local to my OSX machine and nfs://192.168.1.8/volume1/music is the path on my NAS

 

If you have it set up correctly there should not be any playback problems. 



#16 Vidman OFFLINE  

Vidman

    Advanced Member

  • Alpha Testers
  • 2682 posts
  • Local time: 05:56 PM

Posted 06 May 2014 - 05:34 AM

This is not working for me... I have set xbmb3c set to transcode and stream instead of smb as I am connecting to my server remotely. Without these options set videos don't play

Edited by Vidman, 06 May 2014 - 05:36 AM.


#17 im85288 OFFLINE  

im85288

    Kodi Kruncher

  • Developers
  • 2699 posts
  • Local time: 09:56 AM
  • LocationGeordie Land

Posted 06 May 2014 - 05:39 AM

This is not working for me... I have set xbmb3c set to transcode and stream instead of smb as I am connecting to my server remotely. Without these options set videos don't play

 

Yes it currently only play's the theme music without any transcoding taking place...I'll have a look into this and put up a fix later.



#18 im85288 OFFLINE  

im85288

    Kodi Kruncher

  • Developers
  • 2699 posts
  • Local time: 09:56 AM
  • LocationGeordie Land

Posted 06 May 2014 - 10:32 AM

The fix is now there so that it transcodes Audio as needed (note - Music/Audio was never being transcoded before so it should now work remotely for Music too). Version 0.9.08 of the xbmb3c add-on is in the xbmb3c add ons repo..or alternatively try the latest from Github.

 

Can you test it and let me know how it goes. Thanks



#19 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 09:56 AM

Posted 06 May 2014 - 01:30 PM

I don't know what changed, but it seems to work with network paths now. :)

 

However, after a while I get an exception:

19:20:36 T:1584   ERROR: Exception in thread Thread-6:
                                            Traceback (most recent call last):
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\threading.py", line 808, in __bootstrap_inner
                                                self.run()
                                              File "C:\Users\xxx\AppData\Roaming\XBMC\addons\MediaBrowser.XBMC-master\resources\lib\ThemeMusic.py", line 52, in run
                                                self.updateThemeMusic()
                                              File "C:\Users\xxx\AppData\Roaming\XBMC\addons\MediaBrowser.XBMC-master\resources\lib\ThemeMusic.py", line 90, in updateThemeMusic
                                                themePlayUrl = PlayUtils.getPlayUrl(mb3Host + ":" + mb3Port,themeItems[0].get("Id"),themeItems[0])
                                              File "C:\Users\xxx\AppData\Roaming\XBMC\addons\MediaBrowser.XBMC-master\Utils.py", line 22, in getPlayUrl
                                                xbmcgui.Dialog().ok(__language__(30130), __language__(30131) + playurl)
                                            NameError: global name '__language__' is not defined


#20 im85288 OFFLINE  

im85288

    Kodi Kruncher

  • Developers
  • 2699 posts
  • Local time: 09:56 AM
  • LocationGeordie Land

Posted 06 May 2014 - 02:09 PM

 

I don't know what changed, but it seems to work with network paths now. :)

 

However, after a while I get an exception:

19:20:36 T:1584   ERROR: Exception in thread Thread-6:
                                            Traceback (most recent call last):
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\threading.py", line 808, in __bootstrap_inner
                                                self.run()
                                              File "C:\Users\xxx\AppData\Roaming\XBMC\addons\MediaBrowser.XBMC-master\resources\lib\ThemeMusic.py", line 52, in run
                                                self.updateThemeMusic()
                                              File "C:\Users\xxx\AppData\Roaming\XBMC\addons\MediaBrowser.XBMC-master\resources\lib\ThemeMusic.py", line 90, in updateThemeMusic
                                                themePlayUrl = PlayUtils.getPlayUrl(mb3Host + ":" + mb3Port,themeItems[0].get("Id"),themeItems[0])
                                              File "C:\Users\xxx\AppData\Roaming\XBMC\addons\MediaBrowser.XBMC-master\Utils.py", line 22, in getPlayUrl
                                                xbmcgui.Dialog().ok(__language__(30130), __language__(30131) + playurl)
                                            NameError: global name '__language__' is not defined

 

Thanks for the bug report, I had a look and the problem above probably caused it to play! It should pop up a dialog asking you to put transcoding on. I've committed the fix to github, could you try again?







Also tagged with one or more of these keywords: Completed

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users