Release TvTunes alternative for playing soundtracks when browsing
#16
@manfeed

Perfect. That plays both mp3 and flac files.

Thank you Smile
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#17
@manfeed ,

very clever there, have just made it a part of my skin.  Have added a comment acknowledging your code and have added a skin setting so that my users can turn on/off as required.

Many thanks for your contribution to the Kodi codebase.
Wyrm (AppTV)
Reply
#18
(2018-04-15, 16:11)tehax Wrote: Great to see that there is now an alternative to TvTunes. Nevertheless it won't work for me in v18 with EstuaryModV2.
@tehax 
 I just had a look... You only have to put the three xml files from the first post and also edit Custom_1121_MusicFullscreenEnabler.xml from EstuaryModV2. You have to change line 4 from...

xml:
<onload condition="!Window.IsActive(visualisation)">FullScreen</onload>

...to...

xml:
<onload condition="!Window.IsActive(visualisation) + !Window.IsActive(videos)">FullScreen</onload>
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
#19
First post updated... Fixed a bug happening when there was no theme.mp3 in a movie or tvshow folder
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
#20
Brilliant, thanks!
Reply
#21
Hello manfeed,
i often browse through the libraries while watching tv or series is playing. Is it possible to play only soundtrack when no other movie, tv or music is playing and can you add an option to play soundtrack only in series or movie library?
HTPC: Windows 10 Pro 22H2, Zalman HD135, Intel i3-7100, GTX 1070, UHD ASUS BW-16D1HT
NAS: Xpenology 7.2 Update 1, Intel i5-6600
Reply
#22
(2018-04-22, 18:19)tehax Wrote: Hello manfeed,
i often browse through the libraries while watching tv or series is playing. Is it possible to play only soundtrack when no other movie, tv or music is playing and can you add an option to play soundtrack only in series or movie library?
 Hi tehax, my code is intended to be as a starting point for skinners, and as such it offers the most basic functionality; it is down to them to add options to determine when and when not the soundtracks must play in their skins
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
#23
manfeed,

Just a couple of things about your code. First, <allowoverlay> tag has not been used since Kodi Jarvis, so while it does not cause any issues it is not required. Also, not entirely sure what changes you have made between some of your edits, could you please document the changes in the first post.

Thanks once again
Wyrm (AppTV)
Reply
#24
@wyrm 

Thanks, you're right, I have removed allowoverlay.

I can see your point about the updates in the code, sorry I haven't kept track of them, basically I have been patching the flaws that were appearing while I was using it and updating the first post accordingly. I think that right now the code works as intended, so it is safe to use in every skin as it is; if any additional change must be made in the future,  I will clearly explain it, so that everyone can adapt it to their customized code.
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
#25
First post have been updated with Edit 1 at the bottom to solve an issue happening when using latest Leia nightlies
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
#26
First post updated to prevent a bug that freezes Kodi when using an addon to select online artworks. See Edit 2 at the bottom...
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
#27
For info, there is also error in debug log when no theme.mp3 is available :
Code:
08:08:36.477 T:138520024144   DEBUG: CMusicGUIInfo::InitCurrentItem(videodb://movies/theme.mp3)
08:08:36.484 T:138520024144   DEBUG: LoadMusicTag: loading tag information for file: videodb://movies/theme.mp3
08:08:36.492 T:138520024144   DEBUG: file videodb://movies/theme.mp3 could not be opened for tag reading
08:08:36.496 T:138640057424   DEBUG: DoWork - Saving file state for audio item videodb://movies/theme.mp3


08:08:40.905 T:138520024144   DEBUG: LoadMusicTag: loading tag information for file: smb://NAS/Videos/Movies/6 Days (2017)/theme.mp3
08:08:41.251 T:138686514256   DEBUG: CSMBFile::Open - opened smb://NAS/Videos/Movies/6 Days (2017)/theme.mp3, fd=-1
08:08:41.251 T:138686514256    INFO: SMBFile->Open: Unable to open file : 'smb://NAS/Videos/Movies/6%20Days%20(2017)/theme.mp3'
                                            unix_err:'2' error : 'No such file or directory'
08:08:41.255 T:138520024144   DEBUG: CSMBFile::Open - opened smb://NAS/Videos/Movies/6 Days (2017)/theme.mp3, fd=-1
08:08:41.256 T:138686514256   ERROR: Open - failed to open source <smb://NAS/Videos/Movies/6 Days (2017)/theme.mp3>
08:08:41.256 T:138520024144    INFO: SMBFile->Open: Unable to open file : 'smb://NAS/Videos/Movies/6%20Days%20(2017)/theme.mp3'
                                            unix_err:'2' error : 'No such file or directory'
08:08:41.257 T:138520024144   DEBUG: file smb://NAS/Videos/Movies/6 Days (2017)/theme.mp3 could not be opened for tag reading
08:08:41.257 T:138686514256   ERROR: CVideoPlayer::OpenInputStream - error opening [smb://NAS/Videos/Movies/6 Days (2017)/theme.mp3]
 Estuary MOD V2 
Reply
#28
Yep, no way AFAIK to check beforehand whether a theme.mp3 file exists or not, so those messages are inevitable for now...
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
#29
Hi would this work on vid files like TVTunes? I use DL the trailer for my shows in .mp4 format on Youtube and put it in the same folder and it would play
Reply
#30
No, it doesn't work in the same way. I think it would be possible to make trailers play automatically after "x" seconds, though. If I'm succesful I'll post it here...
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply

Logout Mark Read Team Forum Stats Members Help
TvTunes alternative for playing soundtracks when browsing2