Posts: 1,332
Joined: Jan 2016
Reputation:
54
2018-01-07, 15:37
(This post was last modified: 2018-01-07, 15:40 by smitchell6879.)
Basically I have a video add that is looking at local/smb home video files put them in a list then you can play them. so they do not need to be added to the library. I have it working as long as the default setting is onclick play. but if the default setting is onclick show info then kodi trys to scrape the video. I can right click on the item and select play and it works just fine as well.
so my question is, can I force play on click of the item so that it isn't added to the main library? I just want it to play the video.. and of course I only want this to effect the addon itself as in the normal library to act as it should.
also can I disable the key "i" in the addon as well so that if accidentally pressed out of habit it doesn't add the item to the library.
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
i think if you add some dummy info to the videos, kodi will not try to scrape them?
perhaps check how the youtube addon is handling this. bringing up the info window (without kodi trying to scrape) works fine there.
Posts: 1,332
Joined: Jan 2016
Reputation:
54
Figured it out my url was a direct link... Once I added plug-in://plug-in.name/Acton=play video=directlink
It works as it should... I already had set the info. And the above isn't exactly how I put it either I am away from the PC so it's just shorthand figure you would know what I meant.. thanks again ronie.
Posts: 1,332
Joined: Jan 2016
Reputation:
54
Update:
After further testing.
Using plugin://plugin.test/?action=play&video=E:Movies\testmovie\testmovie.mkv
Works perfectly for local videos and absobing the normal info to only show the info inwhich I set in the plugin.
My new problem nows when I use smb video as I have Kodi setup to use MySQL so that I enjoy the pause in one room pick up in another features.
So using plugin://plugin.test/?action=play&video=smb://media-server/shared folder/testmovie/testmovie.mkv
I can generate the list perfectly and the info works as it should but the videos will not play.
If I make the url simlply smb://media-server/shared folder/testmovie/testmovie.mkv without the plugn perfix then the movie plays fine but on info it trys to can it into the library.
And ideas will be appreciated.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
if you embed urls in urls you have to use url encoding for the embedded url
Posts: 1,332
Joined: Jan 2016
Reputation:
54
Do you know where a example maybe?
Or do you mean something like
Url=plugin://plugin.test/?action=play&video=+ urlencode(smb://media-server/shared/testmovie/testmovie.mkv)