It Does movies too ;-)
I couldn't find a python addon to fetch extrafanart (might have not looked hard enough) so i wrote an external one in ruby (my language of choice). Mods, I know this isn't python so feel free to move
Description:
Makes an "extrafanart" folder in each of your TV folders, and fills it with ALL the backgrounds from tvdb
Instructions:
sudo gem install fileutils sqlite3
find path to .xbmc/userdata/MyVideosXX.db
make a file called fanartGrabber.rb
paste in the code below
change (line 1) path_to_db="/home/losty/MyVideos34.db" to your path
then run "ruby fanartGrabber.rb"
Code:
path_to_db="/home/losty/MyVideos34.db"
require 'rubygems'
require "fileutils"
require 'sqlite3'
require 'open-uri'
db = SQLite3::Database.new( path_to_db)
db.results_as_hash = true
db.execute( "select c00 as name,c12 as tvdb,strPath as path from tvshow join tvshowlinkpath on tvshowlinkpath.idShow=tvshow.idShow join path on path.idPath= tvshowlinkpath.idPath" ) do |row|
path=row['path']+"/extrafanart/"
begin
Dir.mkdir(path)
rescue
end
workin=true
i=1
if not File.exist?(path+"background1.jpg")
p "Getting art for "+row['name'] +" ("+row['path']+")"
while workin do
p "fetching background #"+i.to_s
begin
open(path+"background"+i.to_s+".jpg", 'wb') do |file|
file << open('http://thetvdb.com/banners/fanart/original/'+row['tvdb']+'-'+i.to_s+'.jpg').read
end
i=i+1
rescue
FileUtils.rm(path+"background"+i.to_s+".jpg")
p "Fetched all, moving on..."
workin=false
end
end
end
end
p "All art fetched :-)"
![[Image: aeKO.jpeg]](http://i.imm.io/aeKO.jpeg)
![[Image: all-fanart.jpg]](http://trakt.tv/user/IsamuDragon/widgets/watched/all-fanart.jpg)

Search
Help