- May 13, 2007
- 418
- 37
- Home Country
- United Kingdom
I am working on an enhanced csscript grabber for myVideos that will give the user more flexibility as to where they want to pull the info from.
One thing I want to do is if a movie has an assosiated local .jpg or is in a folder with any .jpg files then use that file instead of going off to the internet and pulling down a new cover.
This funcitonality is already present in the MP configurator on the coverart TAB if you click the 'search of images' button as it invokes the btnAmazon_Click function which adds any .jpg or .jpeg files to the imagesListBox and then UpdateActiveMovieImageAndThumbs will grab that file either locally or via http and copy it to thumbs.
If however you specify a local file from within cssript grabber the local file does not work.
If I specify the file as
1. c:\\dir\\dir\\dir\\file.jpg - then this is correctly recorded in the movieDetails.ThumbURL in the db as c:\dir\dir\dir\file.jpg but the function DownloadCoverArt can only cope with downloading from URLs not local files.
2. file://c:/dir/dir/dir/file.jpg - then this is recorded in the db correctly but it does not get copied to thumbs + is shown in the MP config app as c:/dir/dir/dir/file.jpg (hense with the file:// missing) and the file is not copied to thumbs. So I am guessing the DownLoadAndCacheImage funciton does not cope withe the file:// url.
Where shall I fix this up?
IMDBFetcher.cs
DownloadCoverArt
DownLoadAndCacheImage
and what format do we want it to support from cssript files?
c:\\dir\\dir\\dir\\file.jpg
file://c:/dir/dir/dir/file.jpg
Finally is it ok for me to make core changes? or is there a coder that owns each part of the core and maintains it?
One thing I want to do is if a movie has an assosiated local .jpg or is in a folder with any .jpg files then use that file instead of going off to the internet and pulling down a new cover.
This funcitonality is already present in the MP configurator on the coverart TAB if you click the 'search of images' button as it invokes the btnAmazon_Click function which adds any .jpg or .jpeg files to the imagesListBox and then UpdateActiveMovieImageAndThumbs will grab that file either locally or via http and copy it to thumbs.
If however you specify a local file from within cssript grabber the local file does not work.
If I specify the file as
1. c:\\dir\\dir\\dir\\file.jpg - then this is correctly recorded in the movieDetails.ThumbURL in the db as c:\dir\dir\dir\file.jpg but the function DownloadCoverArt can only cope with downloading from URLs not local files.
2. file://c:/dir/dir/dir/file.jpg - then this is recorded in the db correctly but it does not get copied to thumbs + is shown in the MP config app as c:/dir/dir/dir/file.jpg (hense with the file:// missing) and the file is not copied to thumbs. So I am guessing the DownLoadAndCacheImage funciton does not cope withe the file:// url.
Where shall I fix this up?
IMDBFetcher.cs
DownloadCoverArt
DownLoadAndCacheImage
and what format do we want it to support from cssript files?
c:\\dir\\dir\\dir\\file.jpg
file://c:/dir/dir/dir/file.jpg
Finally is it ok for me to make core changes? or is there a coder that owns each part of the core and maintains it?