XBMC Community Forum
[RELEASE] Artist Slideshow addon (for skin integration) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Artist Slideshow addon (for skin integration) (/showthread.php?tid=102703)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28


- ronie - 2011-08-21 22:21

ronie Wrote:i don't mind adding an option to specify the path.

i gave it a shot, but it's (not yet) possible on xbmc pre-eden.
you run into troubles if your custom path is a smb:// share.

i'll keep it in mind just in case xbmc / python / samba support improves in the future.


- kiboy6 - 2011-08-22 05:21

ronie Wrote:could be bug or feature request, pick one ;-)
feel free to cc me on the ticket.



nope, the script doesn't have the slightest clue where your music is stored.
and i seriously doubt there's an easy/reliable way to figure it out.

I agree that this would be the most elegant if it were possible.

Would it not be theoretically possible to for the user to input his music folder either via manually editing the script or via a skin option? Then the script could write images to a subfolder in each artist's folder much like the "extrafanart" function reads from the extrafanart folder within one artists folder if the artist name and folder name matches exactly.

In this case of folder name and artist name not matching up exactly, it wouldn't be the end of the world if a new folder was created with the alternative (last.fm's) spelling/syntax. (Ie. I might have a folder called Sly and Robbie - last.fm wants Sly & Robbie so puts the images in a new folder with that name instead. Not a big deal and can be easily tidied later.

There's probably a good reason why this is still impractical, but I figured it might be possible due to the way extrafanart for music works in some skins. Smile


- ronie - 2011-08-22 08:28

kiboy6 Wrote:I agree that this would be the most elegant if it were possible.

Would it not be theoretically possible to for the user to input his music folder either via manually editing the script or via a skin option? Then the script could write images to a subfolder in each artist's folder much like the "extrafanart" function reads from the extrafanart folder within one artists folder if the artist name and folder name matches exactly.

In this case of folder name and artist name not matching up exactly, it wouldn't be the end of the world if a new folder was created with the alternative (last.fm's) spelling/syntax. (Ie. I might have a folder called Sly and Robbie - last.fm wants Sly & Robbie so puts the images in a new folder with that name instead. Not a big deal and can be easily tidied later.

There's probably a good reason why this is still impractical, but I figured it might be possible due to the way extrafanart for music works in some skins. Smile

yeah i did the same in Transparency, but i don't like to put similars hacks in this script.


- Martijn - 2011-08-22 09:47

ronie Wrote:i gave it a shot, but it's (not yet) possible on xbmc pre-eden.
you run into troubles if your custom path is a smb:// share.

i'll keep it in mind just in case xbmc / python / samba support improves in the future.
I think it is possible. To my knowledge CDartmanager already supports SMB:// shares. Maybe check that code how it's done.

Quote:In this case of folder name and artist name not matching up exactly, it wouldn't be the end of the world if a new folder was created with the alternative (last.fm's) spelling/syntax. (Ie. I might have a folder called Sly and Robbie - last.fm wants Sly & Robbie so puts the images in a new folder with that name instead. Not a big deal and can be easily tidied later.
Also CDartmanager does this without any problems. It loads the artists from the database and puts in a extra sub-folder. If artists doesn't exist it's create a folder for that.
But take your time. Don't want to rush you


- ronie - 2011-08-22 17:38

Machine-Sanctum Wrote:I think it is possible.

to the best of my knowledge it's not. the script needs an equivalent of os.listdir that will work with smb:// shares on eden.

since xbmcvfs doesn't support it, there's nothing i can do to make it work


- Martijn - 2011-08-22 18:24

ronie Wrote:to the best of my knowledge it's not. the script needs an equivalent of os.listdir that will work with smb:// shares on eden.

since xbmcvfs doesn't support it, there's nothing i can do to make it work

Well just checked and apperently they got away with it. When setting up cdartmanager and selecting the different used paths i can select smb:// and after a couple of seconds it returns the different pc's on which i have shares. So far i had no problems at all with this.
Don't ask me how it work because i am no programmer. When reading the the code I can understand the basics what it does but that's as far as i go.
Here a screenshot of the settings panel.
http://img841.imageshack.us/img841/1541/screenshot103r.png


- ronie - 2011-08-22 18:32

Machine-Sanctum Wrote:Well just checked and apperently they got away with it. When setting up cdartmanager and selecting the different used paths i can select smb:// and after a couple of seconds it returns the different pc's on which i have shares. So far i had no problems at all with this.
Don't ask me how it work because i am no programmer. When reading the the code I can understand the basics what it does but that's as far as i go.
Here a screenshot of the settings panel.
http://img841.imageshack.us/img841/1541/screenshot103r.png

storing images on a smb share is not the problem,
it's listing the contents of a directory that's currently not possible.

the script needs to list the dir to find out which (if any) images were previously downloaded
and compare them to the ones currently available on last.fm / htbackdrops.


- Martijn - 2011-08-22 18:45

ronie Wrote:storing images on a smb share is not the problem,
it's listing the contents of a directory that's currently not possible.

the script needs to list the dir to find out which (if any) images were previously downloaded
and compare them to the ones currently available on last.fm / htbackdrops.

Aah now i understand Nerd
It's not the same as to check if cover or cdart already exist and check if it has lower res and if so replace?
From what i can understand from the code it uses a temporary work_path in between operation (of some sort)
But if it's not possible so be it. You're a far better expert on this than i am. We'll just have to wait until it is.
If you can make the custom path option that would be great. At least i can set the path to a different local drive or else it will flood my primary drive.


- ronie - 2011-08-22 18:47

Machine-Sanctum Wrote:Aah now i understand Nerd
It's not the same as to check if cover or cdart already exist and check if it has lower res and if so replace?

indeed, checking for a file existence is different from listing the contents of a directory. ;-)


- fional - 2011-08-22 19:08

I have tried and tried to recreate that problem and it isn't happening. But when I posted the initial report, it was happening loads. I'm not sure what I changed, cause I just imported a load of TV Shows - did their logo - ran the programme and it's working grand!

I've tried and tried to hammer it - the only thing I can think of is that it's an issue of attrition - like over time. So next time I'm playing loads of music, I'll keep an eye - because when it was happening before, it was during a house party.