[RELEASE] script.extrafanartdownloader

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
paddycarey Offline
Senior Member
Posts: 246
Joined: Sep 2009
Reputation: 8
Post: #1
Hi, this script automates the process of downloading extrafanart for your tv and movies.

In order for this script to work, each TV and movie in your library must be in their own folder. You can enable/disable downloading each type of fanart in the addon settings.

Current Features:
- TV fanart
- Movie fanart
- Bulk mode (download all extrafanart for every tv show/movie)
- Solo mode (download all extrafanart for only one tv show/movie)
- Centralised fanart directories (Copy all tv/movie fanart to central directories which can then be used as multi image backdrops)
- Limit number of fanart downloaded per item.
- Limit fanart by rating
- Limit fanart by language
- Download fanart with or without text
- Eden support (requires an xbmc nightly build of September 21st or later)
- Dharma support. (If you use a protected smb:// share you need to add your user/pass in the addon settings))
- Run script in background

Todo:
- Music Fanart

The latest stable version can now be downloaded from the official repo for both Dharma and Eden.

If you would like to help us test you can download the current git version at:

Github project page: https://github.com/paddycarey/script.ext...downloader

If anyone finds any bugs or has any suggestions please add them to issues on github or let me know here.

We'd also really appreciate any translations anyone'd like to help us out with.

putneyj is also working on the script so hopefully bugfixes and improvements should be coming even quicker now. Thanks also to Machine-Sanctum for translations, documentation and other help Big Grin
(This post was last modified: 2011-10-23 22:16 by paddycarey.)
find quote
butchabay Online
Skilled Skinner
Posts: 3,828
Joined: Mar 2010
Reputation: 75
Location: Planet Crematoria
Post: #2
paddycarey Wrote:Hi, I've been writing a script to automate the process of downloading extrafanart for tv and movies. I've gotten the script to a point where I think it'll be useful for other people so I'm posting here in the hopes that it'll get more users for testing. It's still in the early stages of development but works well enough for tv fanart (for me at least).

This script requires an xbmc nightly build of at least September 21st or later

Current Features:
- TV bulk mode (downloads all extrafanart for every tv show in your library)

Todo:
- Solo mode (download all extrafanart for only one tv show/movie)
- Movie fanart

Download: https://github.com/downloads/paddycarey/...-0.1.5.zip
Github project page: https://github.com/paddycarey/script.ext...downloader

Great work ! Working perfect for TV Shows. Looking forward to see it working for movies. Smile
Cheers
find quote
Martijn Offline
Team Kodi
Posts: 11,685
Joined: Jul 2011
Reputation: 168
Location: Dawn of time
Post: #3
Works great so far. Also when using smb:// sources.
Will check my logs for possible error later.

BTW: Send you something on github. See if you like it.

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
(This post was last modified: 2011-09-26 20:12 by Martijn.)
find quote
paddycarey Offline
Senior Member
Posts: 246
Joined: Sep 2009
Reputation: 8
Post: #4
Machine-Sanctum Wrote:BTW: Send you something on github. See if you like it.

Cheers, pull request merged. Still new to git so I hope i did it right.

Like the icon, but think it needs changed to fit the official guidelines. I don't believe it's allowed to have any transparency. I'll have a look at it tomorrow if I get a chance. Smile
find quote
emmahudson88 Offline
Junior Member
Posts: 1
Joined: Sep 2011
Reputation: 0
Post: #5
paddycarey Wrote:Cheers, pull request merged. Still new to git so I hope i did it right.

Like the icon, but think it needs changed to fit the official guidelines. I don't believe it's allowed to have any transparency. I'll have a look at it tomorrow if I get a chance. Smile



I also think so.

__________________
Watch 50/50 Movie Online Free
find quote
Martijn Offline
Team Kodi
Posts: 11,685
Joined: Jul 2011
Reputation: 168
Location: Dawn of time
Post: #6
paddycarey Wrote:Cheers, pull request merged. Still new to git so I hope i did it right.

Like the icon, but think it needs changed to fit the official guidelines. I don't believe it's allowed to have any transparency. I'll have a look at it tomorrow if I get a chance. Smile

Ok. Didn't know that. Will fix that.

EDIT:
Fixed and send PR

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
(This post was last modified: 2011-09-27 07:52 by Martijn.)
find quote
butchabay Online
Skilled Skinner
Posts: 3,828
Joined: Mar 2010
Reputation: 75
Location: Planet Crematoria
Post: #7
Would be nice to see a notification bar, see the progress of downloaded fanarts.
For some reason i don't get any extrafanarts with the latest nightly (26. Sep.)
I start the script, Downloading, 0 extrafanarts Downloaded.
I'll try this evening again, someone else having issues ?
find quote
Martijn Offline
Team Kodi
Posts: 11,685
Joined: Jul 2011
Reputation: 168
Location: Dawn of time
Post: #8
butchabay Wrote:Would be nice to see a notification bar, see the progress of downloaded fanarts.
For some reason i don't get any extrafanarts with the latest nightly (26. Sep.)
I start the script, Downloading, 0 extrafanarts Downloaded.
I'll try this evening again, someone else having issues ?

Better is an option to enable/disable the current download status notification.
Nightly sept.24 worked ok so think there where some code changes.

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
butchabay Online
Skilled Skinner
Posts: 3,828
Joined: Mar 2010
Reputation: 75
Location: Planet Crematoria
Post: #9
Machine-Sanctum Wrote:Better is an option to enable/disable the current download status notification.
Nightly sept.24 worked ok so think there where some code changes.

An option would be better, yes.
It worked fine with the build of 25. Sep. ... let's wait and hope ... Smile
find quote
flobbes Offline
Senior Member
Posts: 131
Joined: Mar 2009
Reputation: 0
Post: #10
At first the script didn't work for me. I looked into the logs and realized that the script wanted to copy the files to an not existing dir.

After I created the "script.extrafanartdownloader/temp/" directory it worked fine.

Although I found the line in the script to create the folder, something must have gone wrong.

Thanks for the great script!
find quote
butchabay Online
Skilled Skinner
Posts: 3,828
Joined: Mar 2010
Reputation: 75
Location: Planet Crematoria
Post: #11
flobbes Wrote:At first the script didn't work for me. I looked into the logs and realized that the script wanted to copy the files to an not existing dir.

After I created the "script.extrafanartdownloader/temp/" directory it worked fine.

Although I found the line in the script to create the folder, something must have gone wrong.

Thanks for the great script!

As said, yesterday it worked fine. Extrafanart folder in the TV Show root has been created by the script itself.
find quote
paddycarey Offline
Senior Member
Posts: 246
Joined: Sep 2009
Reputation: 8
Post: #12
butchabay Wrote:Would be nice to see a notification bar, see the progress of downloaded fanarts.
For some reason i don't get any extrafanarts with the latest nightly (26. Sep.)
I start the script, Downloading, 0 extrafanarts Downloaded.
I'll try this evening again, someone else having issues ?

Script still seems to be working fine for me with a nightly of 26th September.

The downloading code is still a bit fragile and doesn't time out properly sometimes when there are errors causing the script to take ages to complete. It will eventually complete, there's just no feedback as to what the script's doing so you can't really tell if it's crashed or not.

Got some ideas on how to fix it though.
find quote
ronie Offline
Team-Kodi Member
Posts: 9,364
Joined: Jan 2009
Reputation: 164
Post: #13
Code:
tempdir = xbmc.translatePath('special://profile/addon_data/%s/temp/' % __addonid__)

creating the initial directories will fail (at least on linux) for 2 reasons:
- there shouldn't be a slash at the end of the path
- you can't create a temp dir if the parent folder doesn't exist (yet).

other than that, the script runs fine on my end,
both local and smb shares. :-)

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Martijn Offline
Team Kodi
Posts: 11,685
Joined: Jul 2011
Reputation: 168
Location: Dawn of time
Post: #14
ronie Wrote:
Code:
tempdir = xbmc.translatePath('special://profile/addon_data/%s/temp/' % __addonid__)

creating the initial directories will fail (at least on linux) for 2 reasons:
- there shouldn't be a slash at the end of the path
- you can't create a temp dir if the parent folder doesn't exist (yet).

other than that, the script runs fine on my end,
both local and smb shares. :-)
First time i ran the script had the same. Seccond time it work great. so this is the same on windows i think.

Tried tried yesterday to shutdown xbmc while running scipt. I think it keeps running until finished. Maybe adding a abortrequest to the code. So when xbmc tries to shutdown it first closes the script.

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
(This post was last modified: 2011-09-27 12:12 by Martijn.)
find quote
paddycarey Offline
Senior Member
Posts: 246
Joined: Sep 2009
Reputation: 8
Post: #15
New version posted which should hopefully solve the directory creation and timeout issues. Link in OP.
find quote
Post Reply