PDA

View Full Version : URIs or just URLs?


rernst
2009-05-29, 07:07
Can I specify URIs in the nfo tags that reference images or can they be URIs (i.e. file://x.y.z)?

jmarshall
2009-05-29, 07:38
A direct file path should be usable, yes. Not sure if a file:// url will work or not, however.

rernst
2009-05-29, 08:14
Without trying to delve into the code myself - how does it recognize whether it is looking at a file name or a URL? Is it as simple as looking at http://?

Anybody know where in the code this is happening? I pulled it from svn but that is a lot of code to go through.

I would have thought that platform independence dictated a URI but maybe not (btw - URL is a subset of URI, URI = ftp://, file://, http:// etc., etc.).

Should I experiment?

jmarshall
2009-05-29, 08:47
See


CScraperUrl::DownloadThumbnail()


It does a copy if it's not http://

Cheers,
Jonathan

rernst
2009-05-29, 09:11
Thanks. Now I did find out that when providing a URI for a movie thumb in the nfo it would use the URI when trying to select thumbs. It offered it up as 'Remote'. The URI provided was 'file://C:/Users/rernst/Documents/Test/Californication/Season 1/fanart.jpg' (which isn't a file name).

I will have a look that code. I actually prefer that it work that way as it appears as it makes it less platform dependent.

I think I would want it to use a copy of where I am pointing instead of usign the actual art but maybe others see it differently.

Anyhow, thanks a lot for your help!

jmarshall
2009-05-29, 09:33
Dropping the file:// and correcting the slash direction should also work, but I'm glad the URI worked as well.

It won't copy them until you actually choose the thumb (or on initial scan, it'll grab a copy of the first one).

Cheers,
Jonathan