Hi,
I'm writing my first addon for XBMC, it's a script that will automatically download all available extrafanart for every TV show and movie in your library.
I've got a rough working version written and it seems to work ok for me but I would really appreciate if someone could help me test it.
This script requires a nightly build of at least Sep-21.
You can view the project on github at: https://github.com/paddycarey/script.ext...downloader
You can run the script manually by clicking on its entry in the addons menu.
If you keep an eye on your xbmc.log you should see it working. I've added some basic graphical feedback but this isn't too useful right now.
I'm sure I've done some horrible, hacky, unpython things but it's a start at least.
Thanks,
Paddy
paddycarey
Senior Member Joined: Sep 2009 Reputation: 8 |
2011-09-23 23:52
Post: #1
(This post was last modified: 2011-09-30 20:30 by paddycarey.)
|
| find quote |
boomslang
Junior Member Posts: 6 Joined: Sep 2011 Reputation: 0 Location: Sweden |
2011-09-24 01:31
Post: #2
This is a great idea, thank you for doing this.
Unfortunately - I just tested your script and for me it seems to exit instantly, doing nothing. I run it manually after the initial on boot library scan is finished. From xbmc.log: Code: 01:12:35 T:2855258992 M:1383628800 NOTICE: -->Python Interpreter Initialized<-- |
| find quote |
paddycarey
Senior Member Joined: Sep 2009 Reputation: 8 |
2011-09-24 01:58
Post: #3
Thanks for trying it for me. I've added some extra log output to the script, can you try this new version?
The only time it ever does that for me is if a library update is running at the time. I've added some log messages to indicate that.
(This post was last modified: 2011-09-24 02:29 by paddycarey.)
|
| find quote |
ronie
Team-XBMC Member Joined: Jan 2009 Reputation: 108 |
2011-09-24 02:11
Post: #4
boomslang Wrote:Unfortunately - I just tested your script and for me it seems to exit instantly, doing nothing.you'll need a recent nightly build of xbmc (sept-21 or up) for this script. paddycarey Wrote:I'm sure I've done some horrible, hacky, unpython things but it's a start at least. heh, don't we all start that way :-) the only thing that caught my eye is you're adding shows to the TVlist even if the imdbnumber is epmty. oh, and have a look at xbmcvfs. i doubt the script will run correctly if your tv shows are stored on a smb share. Always read the XBMC online-manual, FAQ and search the forum before posting. Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
paddycarey
Senior Member Joined: Sep 2009 Reputation: 8 |
2011-09-24 02:29
Post: #5
ronie Wrote:you'll need a recent nightly build of xbmc (sept-21 or up) for this script. Thanks, I'll add a note to the op. I'll have a look at xbmcvfs, would you recommend a script to look at as a good example of its use? |
| find quote |
boomslang
Junior Member Posts: 6 Joined: Sep 2011 Reputation: 0 Location: Sweden |
2011-09-24 02:33
Post: #6
ronie Wrote:you'll need a recent nightly build of xbmc (sept-21 or up) for this script. I'm still using Dharma 10.1, so this explains my problem. Another reason to upgrade I guess, unless you have plans to make it work on Dharma? :-) |
| find quote |
paddycarey
Senior Member Joined: Sep 2009 Reputation: 8 |
2011-09-24 02:40
Post: #7
boomslang Wrote:I'm still using Dharma 10.1, so this explains my problem. Another reason to upgrade I guess, unless you have plans to make it work on Dharma? :-) I wouldn't have a clue where to start sorry. If someone can point me in the right direction I'd be more than happy to though. |
| find quote |
paddycarey
Senior Member Joined: Sep 2009 Reputation: 8 |
2011-09-24 12:55
Post: #8
Added some basic graphical feedback and a few other silly bugfixes if anyone'd like to try. Updated the DL link in OP.
|
| find quote |
butchabay
Skilled Skinner Joined: Mar 2010 Reputation: 62 Location: Switzerland |
2011-09-24 13:13
Post: #9
Any future plans to add option for movies extrafanarts?
Nice work so far. |
| find quote |
ronie
Team-XBMC Member Joined: Jan 2009 Reputation: 108 |
2011-09-24 13:20
Post: #10
paddycarey Wrote:Thanks, I'll add a note to the op. I'll have a look at xbmcvfs, would you recommend a script to look at as a good example of its use? have a look at script.artworkorganizer in xbmc pre-eden, things like os.path.exists() don't work with smb shares, so replace them with their xbmcvfs equivalent, which supports both local & smb filesystems. also note, downloading an image directly to a smb share is not supported, so you need to download it first to a local temp folder and then copy it over to the destination folder. check the download part of the logo-downloader script if you need some example code. as for my other remark, this: PHP Code: if findimdbnumber:will add shows to the download list even if there's no imdbnumber found, which is useless since you can't download any fanart without having a imdbnumber. imo, this would make more sense: PHP Code: if findimdbnumber:and +1 on butchabay's request ;-) Always read the XBMC online-manual, FAQ and search the forum before posting. Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |

Search
Help