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 : Forum rules (wiki) | 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) | 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...

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

...to...

<onload condition="!Window.IsActive(visualisation) + !Window.IsActive(videos)">FullScreen</onload>
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button)
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, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button)
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?
Cinema: Denon X7200WA, Epson EH-TW7300, Samsung 55KS7090
HTPC: Win10-1809, SilverStone GD02B-MT, GA-H170M-D3H, Intel i3-7100, GTX 1050 Ti, DuoFlex S2 CI, UHD BU40N
WHS: Server 2016 Essentials, GA-Z170N-WIFI, 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, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button)
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, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button)
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, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button)
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, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button)
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, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button)
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, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button)
Reply
 
Thread Rating:
  • 2 Vote(s) - 5 Average



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