Kodi Community Forum
Artwork Downloader - 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: Artwork Downloader (/showthread.php?tid=114633)



RE: Artwork Downloader - bigwillch - 2017-11-01

Regarding the fix posted here: https://forum.kodi.tv/showthread.php?tid=114633&pid=2626694#pid2626694

If the addon now requires an api key to function are there plans to update it so that the key can be added through the UI? As it stands the addon is unusable and if people add their api key manually it will break again the next time the addon is updated


RE: Artwork Downloader - proutek - 2017-11-04

(2017-11-01, 10:15)bigwillch Wrote: Regarding the fix posted here: https://forum.kodi.tv/showthread.php?tid=114633&pid=2626694#pid2626694

If the addon now requires an api key to function are there plans to update it so that the key can be added through the UI? As it stands the addon is unusable and if people add their api key manually it will break again the next time the addon is updated

Download addon described in this post https://forum.kodi.tv/showthread.php?tid=114633&pid=2653292#pid2653292. You can modify API keys in menu settings. It worked for me.


RE: Artwork Downloader - bigwillch - 2017-11-07

Thanks. Will give it a go


RE: Artwork Downloader - cscott1 - 2017-11-07

How do you add TV thumbs from Artwork Downloader to the widgets on the homepage of Titan BETA? I have successfully added the fixed patch for the Artwork Downloader and added my  developer Fanart TV and TMDb API's to the configuration . When I run the AD it successfully scrapes and dowmloads the TV thumbs.  When I open up change artwork in the skin I don't see an option for tv thumbs I assume its within landscape but for the life of me cant figure out how to add them please help.


RE: Artwork Downloader - jokeronparade - 2017-11-09

I keep getting no provider id found for looking up artwork.
What is causing this? Thank you in advance.


RE: Artwork Downloader - thrak76 - 2017-11-11

Thanks a lot for this fix @JohnyBee!

I rely on AD as an integral part of Kodi. Glad to have it working again!
 
(2017-08-03, 08:43)JohnyBee Wrote:
(2017-08-02, 18:28)movie78 Wrote:
(2017-08-02, 12:25)JohnyBee Wrote: Hi Martijn,
Maybe a small mistake in the code:
File: default.py line 286
is:
Code:
currentmedia['id'] == '' and not

should
Code:
currentmedia['id'] == '' or not
Check it please.Wink
Thanks for the great work 

Just checked, still not working 

Hi Movie78,
My code was a suggestion for Martijn.

Hmmm, ok full description:
1. You must have your active API_KEY from themoviedb.org (API_KEY included in Artwork Downloader does not work).
- You login in to themoviedb.org and generate your API_KEY
A) Testing API_KEY from themoviedb:
- in FirefoxWink type:
Code:
http://api.themoviedb.org/3/movie/274857/images?api_key=Your_API_KEY
- you should get something like this:
Code:
{ "Id": 274857, "backdrops": [{ "ASPECT_RATIO aspect": 1.777777777777778 "FILE_PATH" "/ 22eFfWlar6MtXO5qG25TkjLphoj.jpg", "height" 1080 "iso_639_1": "en", "vote_average": 5318, "vote_count" 3 "width": 1920}, { "ASPECT_RATIO aspect": 1.777777777777778 "FILE_PATH" "/ 5GhvQpK4XO16NJVUPljK27KUQYp.jpg", "height" 2160 "iso_639_1": null "vote_average": 5318 " vote_count "3" width ": 3840}, {" ASPECT_RATIO aspect ": 1.777777777777778" FILE_PATH "" / rhs0spoLwcdF7ftXwBCHUVZQoQ4.jpg "," height "1080" iso_639_1 ":" en "," vote_average ": 5312, "vote_count" 1 "width": 1920} .....................
- Your API_KEY is OK!

2. You must have your active Project_API_Key (no Personal API Key!) with fanart.tv (Project_API_Key included with Artwork Downloader does not work)
- You login in to fanart.tv and generate your Project_API_Key (no Personal API Key!)
A) Testing Project_API_Key from fanart:
- in FirefoxWinkWink type:
Code:
http://webservice.fanart.tv/v3/movies/274857?api_key=Your_Project_API_Key
- you should get something like this:
Code:
{
"Name": "King Arthur: Legend of the Sword",
"Tmdb_id": "274857",
"Imdb_id": "tt3496992",
"Movieposter": [
{
"Id": "191663",
"Url": "https://assets.fanart.tv/fanart/movies/274857/movieposter/king-arthur-legend-of-the-sword-58f73d8b51d4e.jpg",
"Lang": "00",
"Likes": "8"
}
{
"Id": "190897",
"Url": "https://assets.fanart.tv/fanart/movies/274857/movieposter/king-arthur-legend-of-the-sword-58ed50d0b9ec8.jpg",
"Lang": "00",
"Likes": "6"
}
{..............
- Your Project_API_Key is OK!

3. Type your API_KEY = ... from themoviedb.org (line 33) in the addons\script.artwork.downloader\lib\provider\tmdb.py file.
4. Enter your (not Personal API Key!) API_KEY = ... with fanart.tv (line 34) in addons\script.artwork.downloader\lib\provider\fanart.py file
5. Modify the addons\script.artwork.downloader\default.py file:
Old code (lines 285-287):
PHP Code:
elif (currentmedia['mediatype'] == 'movie' and not
currentmedia
['id'] == '' and not
currentmedia
['id'].startswith('tt')): 


New code:
PHP Code:
elif ((currentmedia['mediatype'] == 'movie') and (not currentmedia['id'] == '' or not currentmedia['id'].startswith('tt'))): 
WARNING - python sensitive to blank characters

EDIT:
Now, "Artwork Downloader" can not cope with movies search by release date.

Modify the V:\addons\script.artwork.downloader\lib\provider\tmdb.py file:
old code:
PHP Code:
def _search_movie(medianame,year=''):
medianame normalize_string(medianame)
log('TMDB API search criteria: Title[''%s''] | Year[''%s'']' % (medianame,year) )
illegal_char ' -<>:"/\|?*%'
for char in illegal_char:
medianame medianame.replacechar '+' ).replace'++''+' ).replace'+++''+' )

search_url 'http://api.themoviedb.org/3/search/movie?query=%s+%s&api_key=%s' %( medianameyearAPI_KEY )
tmdb_id ''
log('TMDB API search: %s ' search_url)
try:
data get_data(search_url'json')
if 
data == "Empty":
tmdb_id ''
else:
for 
item in data['results']:
if 
item['id']:
tmdb_id item['id']
break
except Exceptione:
logstr), xbmc.LOGERROR )
if 
tmdb_id == '':
log('TMDB API search found no ID')
else:
log('TMDB API search found ID: %s' %tmdb_id)
return 
tmdb_id 

new code:
PHP Code:
def _search_movie(medianame,year=''):
medianame normalize_string(medianame)
log('TMDB API search criteria: Title[''%s''] | Year[''%s'']' % (medianame,year) )
illegal_char ' -<>:"/\|?*%'
for char in illegal_char:
medianame medianame.replacechar '+' ).replace'++''+' ).replace'+++''+' )

# -JB-
# (I'm looking for the year) OR (I'm looking for the year-1) OR (I'm looking for the year+1)
for year_delta in [yearyear-1,year+1]:
search_url 'http://api.themoviedb.org/3/search/movie?query=%s&primary_release_year=%s&api_key=%s' % (medianameyear_deltaAPI_KEY)

tmdb_id ''
log('TMDB API search: %s ' search_url)
try:
data get_data(search_url'json')
if 
data == "Empty":
tmdb_id ''
else:
for 
item in data['results']:
if 
item['id']:
tmdb_id item['id']
break
if 
tmdb_id != '':
break
except Exceptione:
logstr), xbmc.LOGERROR )
if 
tmdb_id == '':
log('TMDB API search found no ID')
else:
log('TMDB API search found ID: %s' %tmdb_id)
return 
tmdb_id 



For me Artwork Downloader works very well, Now Big Grin



RE: Artwork Downloader - jmerrilljr - 2017-11-12

Is there a fix for problems with thetvdb.com or a tutorial? When Kodi or ViMedia scrapes tv shows I get .nfo files but all images are downloaded with zero bytes. Or is this a fanart.tv issue?


RE: Artwork Downloader - bodya5 - 2017-11-15

sorry for my English.
I still have a bug after fixingImage.Please help me.
https://pastebin.com/Emzf5SJ1


RE: Artwork Downloader - JohnyBee - 2017-11-16

(2017-11-15, 22:41)bodya5 Wrote: sorry for my English.
I still have a bug after fixingImage.Please help me.
https://pastebin.com/Emzf5SJ1
Hi...
Python language is sensitive to spaces.
Use another editor for python.
I recommend PyCharm (it's free).
JB


RE: Artwork Downloader - steve1977 - 2017-11-19

Any chance to update the naming convention to the new Kodi default (<movie>-poster.ext, etc.)? Some context and developer reply: https://forum.kodi.tv/showthread.php?tid=324329

Thanks!


RE: Artwork Downloader - jsowa98 - 2017-11-26

(2017-11-19, 17:15)steve1977 Wrote: Any chance to update the naming convention to the new Kodi default (<movie>-poster.ext, etc.)? Some context and developer reply: https://forum.kodi.tv/showthread.php?tid=324329

Thanks!
 I still need an API project key from fanarttv to complete the edits to the add-on.  I registered on their website but never received an account login password.  Does it take time for them to process the request?  I received an API from tmdb instantly.


RE: Artwork Downloader - jsowa98 - 2017-11-26

(2017-11-26, 19:30)jsowa98 Wrote:
(2017-11-19, 17:15)steve1977 Wrote: Any chance to update the naming convention to the new Kodi default (<movie>-poster.ext, etc.)? Some context and developer reply: https://forum.kodi.tv/showthread.php?tid=324329

Thanks!
 I still need an API project key from fanarttv to complete the edits to the add-on.  I registered on their website but never received an account login password.  Does it take time for them to process the request?  I received an API from tmdb instantly. 
Disregard.  I registered using gmail (never received it using yahoo mail) and received a pw immediately.  Now to try the fix...


RE: Artwork Downloader - gb160 - 2017-11-27

Hi, ive applied the fix and all artwork is being downloaded fine, but for quite a few series I seem to be getting foreign covers, has anyone seen or know how to fix this?
Ive set the language to English in the add-ons Limit Artwork section but it makes no difference.
Cheers.


RE: Artwork Downloader - maxenric - 2017-11-28

(2017-11-12, 16:26)jmerrilljr Wrote: Is there a fix for problems with thetvdb.com or a tutorial? When Kodi or ViMedia scrapes tv shows I get .nfo files but all images are downloaded with zero bytes. Or is this a fanart.tv issue?
 Same issue here.


RE: Artwork Downloader - burekas - 2017-11-29

I have a problem with fanart.tv.

For example: Movie = Wonder Woman (2017)

Why the fanart.tv using the imdb id = tt0451279:

Instead of the fanart.tv ID = 297762:

This is the reason why I don't get results from it.
How can I fix this?