Displaying music video icon in song list

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
tree_jammer Offline
Team-Kodi Member
Posts: 50
Joined: Apr 2009
Reputation: 17
Post: #1
Like the title says i would like to have a link to the music video appear next to a song title if a video exists for said song and allows the user to move to it from the list. Is this possible even via a script? If not is anyone willing to give it a try making one? I would myself but I know nothing about python.

e.g.

01. a song.mp3
02. another song.mp3
03. and another song.mp3 (focused) > [video button]
04. and one more.mp3
find quote
ronie Offline
Team-Kodi Member
Posts: 9,157
Joined: Jan 2009
Reputation: 157
Post: #2
it's only possible using a script.
i don't mind giving it a shot :-)

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Robotica Offline
Banned
Posts: 1,202
Joined: Aug 2010
Post: #3
It would make sense to have the same for videos in slideshows.
find quote
ronie Offline
Team-Kodi Member
Posts: 9,157
Joined: Jan 2009
Reputation: 157
Post: #4
@tree_jammer:

script.song-to-musicvideo

see README.txt for instructions.

let me know if there's any issues :-)

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,749
Joined: Aug 2007
Reputation: 98
Location: Eastleigh, UK
Post: #5
ronie to the rescue.
find quote
ronie Offline
Team-Kodi Member
Posts: 9,157
Joined: Jan 2009
Reputation: 157
Post: #6
Hitcher Wrote:ronie to the rescue.

heh, you know how these things go...

most likely i'm gonna get a bunch of requests to add this and that as well, which i don't have time for.

then `Black will take over. ;-)

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2012-03-09 00:55 by ronie.)
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,749
Joined: Aug 2007
Reputation: 98
Location: Eastleigh, UK
Post: #7
I like the way you think. Nod
find quote
`Black Offline
Team-Kodi Member
Posts: 2,433
Joined: Apr 2009
Reputation: 72
Location: Germany
Post: #8
Big Grin

[Image: xp1080-21.png]
find quote
tree_jammer Offline
Team-Kodi Member
Posts: 50
Joined: Apr 2009
Reputation: 17
Post: #9
dude I love you. I shall ask you for nothing more.*

Will hopefully have something to show you in a day or two.

*not a guarantee Big Grin
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,749
Joined: Aug 2007
Reputation: 98
Location: Eastleigh, UK
Post: #10
This is what makes this community so damn great.
find quote
krish_2k4 Offline
Fan
Posts: 619
Joined: Aug 2010
Reputation: 9
Post: #11
think bluecop was working on the vevo addon to import the music videos to the library. would work well with your script since nearly all videos are on vevo.

don't know if he is still working on it mind.
(This post was last modified: 2012-03-09 02:03 by krish_2k4.)
find quote
tree_jammer Offline
Team-Kodi Member
Posts: 50
Joined: Apr 2009
Reputation: 17
Post: #12
thanks ronie! works great. Smile

If you ever need any artwork or graphics just let me know!

Just out of interest I'm pretty competent at programming just not python and JSON. Know anywhere with good tutorials? Looks like it could be really useful to know
find quote
Martijn Offline
Team Kodi
Posts: 11,235
Joined: Jul 2011
Reputation: 162
Location: Dawn of time
Post: #13
tree_jammer Wrote:thanks ronie! works great. Smile

If you ever need any artwork or graphics just let me know!

Just out of interest I'm pretty competent at programming just not python and JSON. Know anywhere with good tutorials? Looks like it could be really useful to know

Be carefull what you promise here Wink

Like the saying: give a finger and they will take your whole hand Big Grin


Python is really really easy to learn if you already have some coding skills.
Judging from that skin you made you know some coding so it shouldn't take long.
Here's some (outdated) info for starters:
http://forum.xbmc.org/showthread.php?tid=68337

Just look at severel others add-ons on how things are done and before you know you will be well under way making your own script (which we can use Big Grin )

Feel free to ask on the forum on how to do things. Soon I will be doing some wiki updating on getting started with add-ons/plugins

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
ronie Offline
Team-Kodi Member
Posts: 9,157
Joined: Jan 2009
Reputation: 157
Post: #14
tree_jammer Wrote:If you ever need any artwork or graphics just let me know!
cheers, i'll keep that in mind :-)

tree_jammer Wrote:Just out of interest I'm pretty competent at programming just not python and JSON. Know anywhere with good tutorials? Looks like it could be really useful to know

get the XBMC Addon Developers Guide here:
http://code.google.com/p/xbmc-gpodder-in...loads/list

besides that, look at some of the other addons (as Martijn suggested)
and use google whenever you get stuck.
it's fairly easy to find a lot of good python examples on the interweb.

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
backspace Offline
Senior Member
Posts: 139
Joined: Mar 2012
Reputation: 1
Post: #15
Could someone please help me out as where to put the button?

<onclick>PlayMedia($ESCINFO[Window.Property(SongToMusicVideo.Path)])</onclick>
<visible>!IsEmpty(Window.Property(SongToMusicVideo.Path))</visible>

I am at a loss as to why music videos and music are not more closely integrated, hopefully this will go some way to resolving that Smile

Thanks Smile
find quote
Post Reply