phil65 / script.extendedinfo

script.extendedinfo
http://forum.xbmc.org/showthread.php?tid=160558
GNU General Public License v2.0
59 stars 79 forks source link

Play similiar local movies #4

Closed Nessus85100 closed 10 years ago

Nessus85100 commented 10 years ago

In "SimilarLocalMovies" feature (https://github.com/phil65/script.extendedinfo/blob/master/default.py#L118) is it possible to use the 'Play' call (https://github.com/phil65/script.extendedinfo/blob/master/Utils.py#L257) to play the movies in results that they are in the local VideoLibrary ?

Thanks Nessus

phil65 commented 10 years ago

not sure if i understand you correctly. you can play the movie with the supplied dbid.

Nessus85100 commented 10 years ago

If i can remember correctly i've already tried that and it didn't work. I will try it again and get back to you.

By the way, what's the proper code for this action, in case that i did it wrong ?

Cheers Nessus

phil65 commented 10 years ago

Runscript(service.skin.widgets,movieid=$INFO[Window(home).Property(DBID)],resume=false/True) would work. if you do not use that addon i could also implement that function into my script.

phil65 commented 10 years ago

had a look again, i was wrong. there is also no DBID supplied so no way atm to start the video. will add that.

phil65 commented 10 years ago

https://github.com/phil65/script.extendedinfo/commit/252c30eeff9d5a9974fe21df745bf94bcd55f069

Nessus85100 commented 10 years ago

I tried this...

Runscript(service.skin.widgets,movieid=$INFO[Window(home).Property(DBID)]

this...

$INFO[Window(Home).Property(SimilarLocalMovies.1.(DBID))]

this...

$INFO[Window(Home).Property(SimilarLocalMovies.1.DBID)]

and this...

PlayMedia($INFO[Window(Home).Property(SimilarLocalMovies.1.DBID)])

and they are not working. What am i doing wrong ?

phil65 commented 10 years ago

is something showin up when using $INFO[Window(Home).Property(SimilarLocalMovies.1.DBID)] in a label control?

Nessus85100 commented 10 years ago

Yes. The DBID it shows in a label control, but the file is not playing with the "onclick" action.

phil65 commented 10 years ago

newest service.skin.widgets version installed?

Nessus85100 commented 10 years ago

Yes, v0.0.29

phil65 commented 10 years ago

strange, workin here on my end. ( i use

Runscript(service.skin.widgets,movieid=$INFO[Window(home).Property(DBID)],resume=false) in nox, the home property was copied from the list before. a closing bracket is missing in your first try, perhaps that´s the reason? ;)
Nessus85100 commented 10 years ago

Nope, is not working for me. Here is my item :

*onclick>Runscript(service.skin.widgets,movieid=$INFO[Window(home).Property(DBID)],resume=false) *icon>$INFO[Window(Home).Property(SimilarLocalMovies.1.Art(poster))] *label>$INFO[Window(Home).Property(SimilarLocalMovies.1.Title)] *label2>$INFO[Window(Home).Property(SimilarLocalMovies.1.Premiered)] *visible>!IsEmpty(Window(Home).Property(SimilarLocalMovies.1.Title))

Debug log is in NearEvents issue.

Can you add a Play property to the script ?. Something like this : onclick>$INFO[Window(Home).Property(SimilarLocalMovies.1.Play)]</onclick

phil65 commented 10 years ago

no, should be Runscript(service.skin.widgets,movieid=$INFO[Window(Home).Property(SimilarLocalMovies.1.DBID)],resume=false) in your case

Nessus85100 commented 10 years ago

Ah... ok. That worked. Sorry. Thanks

phil65 commented 10 years ago

you´re welcome.