Kodi Community Forum
Release VideoExtras Addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: Release VideoExtras Addon (/showthread.php?tid=178717)



RE: VideoExtras Addon - Gade - 2014-03-25

Cool, thanks!

I was thinking to use both

Code:
$INFO[ListItem.Path,,logo.png]

and

Code:
$INFO[ListItem.Path,../,logo.png]



RE: VideoExtras Addon - warlion - 2014-03-25

(2014-03-25, 14:45)Gade Wrote: Cool, thanks!

I was thinking to use both

Code:
$INFO[ListItem.Path,,logo.png]

and

Code:
$INFO[ListItem.Path,../,logo.png]

duh I didn't think of ../ lol that will work with a variable thanks


<variable name="VideoExtraLogo">
<value condition="Substring(ListItem.Path),BDMV">$INFO[ListItem.Path,../,logo.png]</value>
<value>$INFO[ListItem.Path,,logo.png]</value>
</variable>


RE: VideoExtras Addon - Gade - 2014-03-25

Yes, exactly.

This will look for a logo.png inside the Extras folder. I think most people won't add that, so maybe we need to add one more item to get images from the movie folder:

Code:
$INFO[ListItem.Path,../../,logo.png]

for BDMV and only one ../ for regular extras.

What do you think?


RE: VideoExtras Addon - warlion - 2014-03-25

Actually no I just test it for bdmv only one ../
It will take the path perfect for regular but not sure for dvdrips I don't had any


RE: VideoExtras Addon - wgstarks - 2014-03-25

(2014-03-25, 15:46)warlion Wrote: Actually no I just test it for bdmv only one ../
It will take the path perfect for regular but not sure for dvdrips I don't had any

Warlion, I love what you are doing with VideoExtras in ANG. Just trying to keep up with the changes. To get the art in the Extras window are you adding a png to the extras folder? How is it named? More than one? I see multiple images in the screenshot you posted, just not sure if they are being pulled from the parent video or if you added the images you wanted to use in the extras folder.

Amazing work.Nod


RE: VideoExtras Addon - robwebset - 2014-03-25

Are you sure you need to do this sort of lookup - shouldn't you be able to just do:

ListItem.Icon
ListItem.Thumb

To get the images?

Rob


RE: VideoExtras Addon - warlion - 2014-03-25

You can add jpg with the same name of the video will make it thumbs or via nfo
But my changes will grab the images from the movie , tvshow all but the thumb hope rob implement something to grab the thumb from the video automatic

(2014-03-25, 16:22)rob_webset Wrote: Are you sure you need to do this sort of lookup - shouldn't you be able to just do:

ListItem.Icon
ListItem.Thumb

To get the images?

Rob

That only work if you add it on the nfo but I had 50 extras for friends kind of a pain in the ass to add nfo for each file lol


RE: VideoExtras Addon - robwebset - 2014-03-25

Comment from the code - what I believe is supported:

Code:
# Load the Correct set of images for icons and thumbnails
    # Image options are
    # (NFO - Will overwrite these values)
    # <filename>.tbn/jpg
    # <filename>-poster.jpg (Auto picked up by player)
    # <filename>-thumb.jpg
    # poster.jpg
    # folder.jpg
    #
    # See:
    # http://wiki.xbmc.org/?title=Thumbnails
    # http://wiki.xbmc.org/index.php?title=Frodo_FAQ#Local_images

Is this not the case?

Rob


RE: VideoExtras Addon - warlion - 2014-03-25

(2014-03-25, 16:29)rob_webset Wrote: Comment from the code - what I believe is supported:

Code:
# Load the Correct set of images for icons and thumbnails
    # Image options are
    # (NFO - Will overwrite these values)
    # <filename>.tbn/jpg
    # <filename>-poster.jpg (Auto picked up by player)
    # <filename>-thumb.jpg
    # poster.jpg
    # folder.jpg
    #
    # See:
    # http://wiki.xbmc.org/?title=Thumbnails
    # http://wiki.xbmc.org/index.php?title=Frodo_FAQ#Local_images

Is this not the case?

Rob

But what about logo, landscape, clearart, etc etc etch
Also to avoid adding a lot of img to the extra folder I did that but those will be overwrite if you had the images on the extra folder

BTW Rob any chance to grab the thumb automatic from the video just like xbmc do?


RE: VideoExtras Addon - wgstarks - 2014-03-25

(2014-03-25, 16:22)warlion Wrote: You can add jpg with the same name of the video will make it thumbs or via nfo
But my changes will grab the images from the movie , tvshow all but the thumb hope rob implement something to grab the thumb from the video automatic

Thanks. I see which way you're headed with this. Think I'll hold off adding artwork for extras until I see where this winds up.


RE: VideoExtras Addon - robwebset - 2014-03-25

(2014-03-25, 16:36)warlion Wrote: But what about logo, landscape, clearart, etc etc etch

I don't think there is anywhere in the ListItem that these can be stored is there?

(2014-03-25, 16:36)warlion Wrote: Also to avoid adding a lot of img to the extra folder I did that but those will be overwrite if you had the images on the extra folder

BTW Rob any chance to grab the thumb automatic from the video just like xbmc do?

Not sure what you are refering to, please can you give an example. If you are talking about the "screenshot" type image, unfortunately there is no python interface to generate this (Not without playing the video anyway)


RE: VideoExtras Addon - warlion - 2014-03-25

For example
<value condition="IsEmpty(listitem.poster)">$INFO[listitem.path,,poster.jpg]</value>
<value>$INFO[listitem.poster]</value>


Yes that's called thumb , that's ok there is many programs that do that automatic just asking to avoid another program lol


RE: VideoExtras Addon - robwebset - 2014-03-25

(2014-03-25, 17:12)warlion Wrote: For example
<value condition="IsEmpty(listitem.poster)">$INFO[listitem.path,,poster.jpg]</value>
<value>$INFO[listitem.poster]</value>

Looking at the python interface, it doesn't appear there is a way to set ListItem.poster:

http://mirrors.xbmc.org/docs/python-docs/12.2-frodo/xbmcgui.html#ListItem

Maybe:

ListItem.Art(poster)

(2014-03-25, 17:12)warlion Wrote: Yes that's called thumb , that's ok there is many programs that do that automatic just asking to avoid another program lol

Go on, share Big Grin is there a way this can be done in XBMC without needing to install another program?


RE: VideoExtras Addon - robwebset - 2014-03-25

Beta: Icon Overlay

Hi All,

I think I now have something working for the icon overlay, not the nicest solution, but it does seem to work. Firstly you will need a copy of the feature for the following revision:

https://code.google.com/p/robwebset/source/detail?r=315

(Note: that will include all the changed files since r307 - the last publish to the official repo)

Details on how to make use of it are now available on the wiki:

http://wiki.xbmc.org/index.php?title=Add-on:VideoExtras#Icon_Overlay_on_Video_List_Screen_.28Advanced_Skinners_Only.29

Please let me know how you get on.

Rob


RE: VideoExtras Addon - warlion - 2014-03-25

Can this help?
http://stackoverflow.com/questions/1772599/creating-thumbnails-from-video-files-with-python