Kodi Community Forum

Full Version: [RELEASE] Super Favourites AKA Super-Addon Creator
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
lol sometimes all you can do is smile. This is what I been hoping for since the feature iRecommend, seriously its f$%&£ amazing. This actually stands out as a feature now, its simply does what it says which love. Really Really like it and great job!

I have a suggestion though, we have 10 recommendations, if someone sets this setting can you add an extra listing (with fanart) of what the recommendations are for. You should be able to infer from the recommendations but as a peace of mind.

so for example if I searched for "finding nemo"
I'll get the 10 recommendations with finding nemo as an extra at the beginning (the movie recommends itself lol)

either way I'm keeping this and you can do what you want with SF :p
You are a legend! Sean what do you think of this feature? have you tried it, its great!
can't believe how far you've come with SF. thankyou Smile
(2015-07-07, 18:52)MediaPi Wrote: [ -> ]so for example if I searched for "finding nemo"
I'll get the 10 recommendations with finding nemo as an extra at the beginning (the movie recommends itself lol)

Funnily enough I implemented it like that first:
https://dl.dropboxusercontent.com/u/1155...default.py


(2015-07-07, 18:52)MediaPi Wrote: [ -> ]You are a legend! Sean what do you think of this feature? have you tried it, its great!
can't believe how far you've come with SF. thankyou Smile

You're welcome!

(Yes, I use it a lot in conjunction with the iRemember feature)
(2015-07-07, 19:09)spoyser Wrote: [ -> ]Funnily enough I implemented it like that first:
https://dl.dropboxusercontent.com/u/1155...default.py

Awesomme! family won't let me check this out right now but I'll report back!

I also got something that you will think is awesome.

say I do an iRecommend on"evil dead" and come up with 10 recommendations and a listing for what imdb looked for.
say its not the one I wanted
what If I can click on the "evil dead" listing and it does another search in imdb, but this will be a conventional search asking this time for what movie you want to do an iRecommendation on.

basically if it didn't get it right you can do a manual search easily on the same screen.
I think it would complete this automatic search for you feature. what do you think Sean?
Seariously can't believe you got this working.
just tried the new default.py, works great, I prefer it like this. really like this feature, its such a pleasure to use now Smile
(2015-07-07, 20:38)MediaPi Wrote: [ -> ]
(2015-07-07, 19:09)spoyser Wrote: [ -> ]Funnily enough I implemented it like that first:
https://dl.dropboxusercontent.com/u/1155...default.py

Awesomme! family won't let me check this out right now but I'll report back!

I also got something that you will think is awesome.

say I do an iRecommend on"evil dead" and come up with 10 recommendations and a listing for what imdb looked for.
say its not the one I wanted
what If I can click on the "evil dead" listing and it does another search in imdb, but this will be a conventional search asking this time for what movie you want to do an iRecommendation on.

basically if it didn't get it right you can do a manual search easily on the same screen.
I think it would complete this automatic search for you feature. what do you think Sean?
Seariously can't believe you got this working.

Try this:

https://dl.dropboxusercontent.com/u/1155...BMC/sf.zip
another home run! works perfectly, tried it without the feature on and with it on. the results are exact. really complete feature now! I love it, thankyou, you done alot for me recently and for ages.

I'm thinking for new users to this feature they won't know how it works so maybe add "not the iRecommend I'm after" after a movie listing,
i.e. "evil dead - not the iRecommend I'm after"
or
"evil dead - alternate iRecommend"

I'll let you decide on that but its amazing for me! thanks Sean, I've been waiting for this feature for a long time and you more than exceeded my expectations for this Smile
Say I "Add to Super Favourites" (through Context Menu) a listing from YouTube.
Now when I'm in Super Favourites and click that listing, it shows a dialog
"YouTube
opening stream"

so its "communicating" with youtube addon, so SF is the middle man.
but can you not just cut out youtube altogether

I'm thinking of this, similar to how you "copy images and description"
can you not copy "direct path location", the url of what the addon is looking at, not the url of the addon (which is pointing to another url..?)

I want to create a folder, and have listings inside a folder (user created) and then just "paste direct path location" from other addons. This way It should be much faster, to open links. (when I mean user created I would add to super favourites the listing, then I'm thinking of context menu -> "paste direct path url")

let me know what your ideas on this is please.thanks

.
(2015-07-11, 13:49)MediaPi Wrote: [ -> ]Say I "Add to Super Favourites" (through Context Menu) a listing from YouTube.
Now when I'm in Super Favourites and click that listing, it shows a dialog
"YouTube
opening stream"

so its "communicating" with youtube addon, so SF is the middle man.
but can you not just cut out youtube altogether

I'm thinking of this, similar to how you "copy images and description"
can you not copy "direct path location", the url of what the addon is looking at, not the url of the addon (which is pointing to another url..?)

I want to create a folder, and have listings inside a folder (user created) and then just "paste direct path location" from other addons. This way It should be much faster, to open links. (when I mean user created I would add to super favourites the listing, then I'm thinking of context menu -> "paste direct path url")

let me know what your ideas on this is please.thanks

.
That is not possible.

What you refer to as the direct path URL (correct term is resolved URL) is not known at the time the favourite is made, and in fact this resolved URL may often change time each the item is streamed.

The code in the real add-on takes the various parameters in the favourite to determine the resolved URL and then lets Kodi know this URL via the setresolvedurl call back.
thanks for the exaplanation Smile
I tried to see what my log will show when I play a youtube video
Code:
https://r1---sn-8pgbpohxqp5-ac5l.googlevideo.com/videoplayback?initcwndbps=2155000&ipbits=0&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&mime=video%2Fmp4&mn=sn-8pgbpohxqp5-ac5l&mm=31&id=b3eae2f306529f53&mv=m&mt=1436688405&ms=au&ip=82.27.147.173&pl=23&ratebypass=yes&itag=22&expire=1436710067&upn=dsooOGTZXZ8&sver=3&fexp=901816%2C936129%2C9406125%2C9407943%2C9408142%2C9408211%2C9408420%2C9408710%2C9414629%2C9414918%2C9415038%2C9416520%2C9416524&signature=43202D4A066E01965B0D6FC0B2FB1DDBFDA988B0.039837002977801431E61A1E5683E01290178696&key=yt5&dur=2039.640&source=youtube&lmt=1436214045625534&requiressl=yes

this came up for something random I tried, If I paste into firefox it plays, tried to replace it in a favourites.xml in SF (i.e replace ActivateWindow(10025,"plugin:/..... with the url)
but I don't think it'll work

just curious if you had this url can super favourites open the video?

edit: the videos I grab like this expire? guess I should have listened to you!
(2015-07-12, 10:01)MediaPi Wrote: [ -> ]I tried to see what my log will show when I play a youtube video
Code:
https://r1---sn-8pgbpohxqp5-ac5l.googlevideo.com/videoplayback?initcwndbps=2155000&ipbits=0&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&mime=video%2Fmp4&mn=sn-8pgbpohxqp5-ac5l&mm=31&id=b3eae2f306529f53&mv=m&mt=1436688405&ms=au&ip=82.27.147.173&pl=23&ratebypass=yes&itag=22&expire=1436710067&upn=dsooOGTZXZ8&sver=3&fexp=901816%2C936129%2C9406125%2C9407943%2C9408142%2C9408211%2C9408420%2C9408710%2C9414629%2C9414918%2C9415038%2C9416520%2C9416524&signature=43202D4A066E01965B0D6FC0B2FB1DDBFDA988B0.039837002977801431E61A1E5683E01290178696&key=yt5&dur=2039.640&source=youtube&lmt=1436214045625534&requiressl=yes

this came up for something random I tried, If I paste into firefox it plays, tried to replace it in a favourites.xml in SF (i.e replace ActivateWindow(10025,"plugin:/..... with the url)
but I don't think it'll work

just curious if you had this url can super favourites open the video?

edit: the videos I grab like this expire? guess I should have listened to you!

This will do it:

Code:
<favourite name="MediaPi - Test" thumb="">PlayMedia(&quot;https://r1---sn-8pgbpohxqp5-ac5l.googlevideo.com/videoplayback?initcwndbps=2155000&ipbits=0&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&mime=video%2Fmp4&mn=sn-8pgbpohxqp5-ac5l&mm=31&id=b3eae2f306529f53&mv=m&mt=1436688405&ms=au&ip=82.27.147.173&pl=23&ratebypass=yes&itag=22&expire=1436710067&upn=dsooOGTZXZ8&sver=3&fexp=901816%2C936129%2C9406125%2C9407943%2C9408142%2C9408211%2C9408420%2C9408710%2C9414629%2C9414918%2C9415038%2C9416520%2C9416524&signature=43202D4A066E01965B0D6FC0B2FB1DDBFDA988B0.039837002977801431E61A1E5683E01290178696&key=yt5&dur=2039.640&source=youtube&lmt=1436214045625534&requiressl=yes&quot;)</favourite>
PlayMedia(https%3A%2F%2Fr1---sn-8pgbpohxqp5-ac5l.googlevideo.com%2Fvideoplayback%3Finitcwndbps%3D2155000%26ipbits%3D0%26spar​ams%3Ddur%252Cid%252Cinitcwndbps%252Cip%252Cipbits%252Citag%252Clmt%252Cmime%252​Cmm%252Cmn%252Cms%252Cmv%252Cpl%252Cratebypass%252Crequiressl%252Csource%252Cupn​%252Cexpire%26mime%3Dvideo%252Fmp4%26mn%3Dsn-8pgbpohxqp5-ac5l%26mm%3D31%26id%3Db3eae2f306529f53%26mv%3Dm%26mt%3D1436688405%26ms%3Dau%26ip​%3D82.27.147.173%26pl%3D23%26ratebypass%3Dyes%26itag%3D22%26expire%3D1436710067%​26upn%3DdsooOGTZXZ8%26sver%3D3%26fexp%3D901816%252C936129%252C9406125%252C940794​3%252C9408142%252C9408211%252C9408420%252C9408710%252C9414629%252C9414918%252C94​15038%252C9416520%252C9416524%26signature%3D43202D4A066E01965B0D6FC0B2FB1DDBFDA9​88B0.039837002977801431E61A1E5683E01290178696%26key%3Dyt5%26dur%3D2039.640%26sou​rce%3Dyoutube%26lmt%3D1436214045625534%26requiressl%3Dyes)

like this? I'll try
didn't work when I used this
(2015-07-12, 11:19)spoyser Wrote: [ -> ]This will do it:

Code:
<favourite name="MediaPi - Test" thumb="">PlayMedia(&quot;https://r1---sn-8pgbpohxqp5-ac5l.googlevideo.com/videoplayback?initcwndbps=2155000&ipbits=0&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&mime=video%2Fmp4&mn=sn-8pgbpohxqp5-ac5l&mm=31&id=b3eae2f306529f53&mv=m&mt=1436688405&ms=au&ip=82.27.147.173&pl=23&ratebypass=yes&itag=22&expire=1436710067&upn=dsooOGTZXZ8&sver=3&fexp=901816%2C936129%2C9406125%2C9407943%2C9408142%2C9408211%2C9408420%2C9408710%2C9414629%2C9414918%2C9415038%2C9416520%2C9416524&signature=43202D4A066E01965B0D6FC0B2FB1DDBFDA988B0.039837002977801431E61A1E5683E01290178696&key=yt5&dur=2039.640&source=youtube&lmt=1436214045625534&requiressl=yes&quot;)</favourite>

when I paste this into favourites.xml everywhere where theres an & is highlighted with red, not a good sign?
edit: nope, nothing opened, even tried a different url that I know opens in firefox, getting excited lol thanks for trying
(2015-07-12, 11:41)MediaPi Wrote: [ -> ]
(2015-07-12, 11:19)spoyser Wrote: [ -> ]This will do it:

Code:
<favourite name="MediaPi - Test" thumb="">PlayMedia(&quot;https://r1---sn-8pgbpohxqp5-ac5l.googlevideo.com/videoplayback?initcwndbps=2155000&ipbits=0&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&mime=video%2Fmp4&mn=sn-8pgbpohxqp5-ac5l&mm=31&id=b3eae2f306529f53&mv=m&mt=1436688405&ms=au&ip=82.27.147.173&pl=23&ratebypass=yes&itag=22&expire=1436710067&upn=dsooOGTZXZ8&sver=3&fexp=901816%2C936129%2C9406125%2C9407943%2C9408142%2C9408211%2C9408420%2C9408710%2C9414629%2C9414918%2C9415038%2C9416520%2C9416524&signature=43202D4A066E01965B0D6FC0B2FB1DDBFDA988B0.039837002977801431E61A1E5683E01290178696&key=yt5&dur=2039.640&source=youtube&lmt=1436214045625534&requiressl=yes&quot;)</favourite>

when I paste this into favourites.xml everywhere where theres an & is highlighted with red, not a good sign?
edit: nope, nothing opened, even tried a different url that I know opens in firefox, getting excited lol thanks for trying

In that case you did it wrong as it definitely works (it's a GTA 5 video) Smile

My guess is it might be adding erroneous new lines at the line breaks.

The highlighting in red is irrelevant as that is just your text editor
Code:
<favourites>
    <favourite name="MediaPi - Test" thumb="">PlayMedia(&quot;https://r1---sn-8pgbpohxqp5-ac5l.googlevideo.com/videoplayback?initcwndbps=2155000&ipbits=0&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2​Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&mime=video%2Fmp4&mn=sn-8pgbpohxqp5-ac5l&mm=31&id=b3eae2f306529f53&mv=m&mt=1436688405&ms=au&ip=82.27.147.173&pl=23&ratebypass=yes&itag=22&expire=1436710067&upn=dsooOGTZXZ8&sver=3&fexp=901816%2C936129%2C9406125%2C9407943%2C9408142%2C9408211%2C9408420%2C940​8710%2C9414629%2C9414918%2C9415038%2C9416520%2C9416524&signature=43202D4A066E01965B0D6FC0B2FB1DDBFDA988B0.039837002977801431E61A1E5​683E01290178696&key=yt5&dur=2039.640&source=youtube&lmt=1436214045625534&requiressl=yes&quot;)</favourite>
</favourites>
this is my favourites.xml file. When I click on this I don't even get a working icon, but xbmc is doing something becuase for a split second I can move cursor

I checked if there are any spaces between characters and can't find any, so I don't think new lines are added? arghh I want to see how fast this is compared to letting other addons do the work