Add-on to "Star" a picture and copy it to a "Favorites" folder for later printing
#1
Hi,

I want to make an add-on that copies the current picture file (during a slideshow) to a specified folder. The destination folder would be for example a pen drive that allowed me to take my favorite pictures to print them.

I intend to call the script from a dedicated key in my keymap.xml.

The problem here is that I can't find the python function to retrieve the current picture (path+filename) during a slideshow.

Anyone knows how to do that? Or does anybody know a script that can do this?

After that I can do the rest of the script.

Thank you in advance!


Reply
#2
many people would love to have a rating function in xbmc. For this, you need to use a library which support exif writing. Best way to go forward is to replace current exif library in xbmc instead of adding new ones for addon specific usage. Either way, it would bd great if you pull this of.
Reply
#3
I can do this and I will share it with the Comunity. All I need is to know is the Python function that returns the current path/filename during a slideshow..

Anyone?
Reply
#4
I'm not sure but
picturename = xbmc.getInfoLabel("ListItem.PicturePath")

should do it.
No log no help.
Main page: https://github.com/Xycl
Repository: Xycl Repository Leia
Repository: Xycl Repository Matrix
Reply
#5
(2013-01-30, 10:12)Xycl Wrote: I'm not sure but
picturename = xbmc.getInfoLabel("ListItem.PicturePath")

should do it.

Thank you, but it didn't work.. I've tried:

Code:
import os, xbmc
filename = xbmc.getInfoLabel('System.CurrentWindow')
xbmc.executebuiltin("Notification(Filename:,%s)" % filename)

and your suggestion:

Code:
import os, xbmc
filename = xbmc.getInfoLabel("ListItem.PicturePath")
xbmc.executebuiltin("Notification(Filename:,%s)" % filename)

they both give me an "Filename: <empty>" notification...

Reply
#6
You started your plugin during the slideshow with a bind key in keymap.xml?
No log no help.
Main page: https://github.com/Xycl
Repository: Xycl Repository Leia
Repository: Xycl Repository Matrix
Reply
#7
(2013-01-30, 11:12)Xycl Wrote: You started your plugin during the slideshow with a bind key in keymap.xml?

Exactly. My keymap.xml:

Code:
(...)
  <SlideShow>
    <keyboard>      
      <e>RunScript(plugin.program.starpicture)</e>
(...)

Started the slideshow ad then pressed the "e" key. I got a notification saying "Filename: <newline> <empty>"


Reply

Logout Mark Read Team Forum Stats Members Help
Add-on to "Star" a picture and copy it to a "Favorites" folder for later printing0