Easy way to use a remote media server?

22 views
Skip to first unread message

clove...@gmail.com

unread,
Jun 26, 2013, 10:12:47 AM6/26/13
to variman...@googlegroups.com
Hello, I was wondering if anyone has setup Variman to use a remote media server and the easiest way to do this.  I've looked at the documentation, and it seems I could either create xml files for each listing which would then specify the remote address, but this seems like overkill (imagine 500K listings).  I also saw the database option using the rets_media table, however, this also seems like overkill (imagine 500K listings times 30 photos per listing) because my path and file pattern are the same. 

For example, previously I was using a get-object-root on the server set to this:

/local/path/to/public_html/images/listings

And then my photo pattern was:

%4k/%-2k/%k/%k.%i.jpg

This means listing #41237891 photo 1 mapped to:

/local/path/to/public_html/images/listings/4123/91/41237891/41237891.1.jpg

All I want to do is change to a remote server with the same pattern, for example I want to set the get-object-root to:


and then keep the same photo pattern.

Variman doesn't seem to like this however ... any suggestions?  Thanks!

Mark Klein

unread,
Jun 26, 2013, 8:06:30 PM6/26/13
to variman...@googlegroups.com
On Jun 26, 2013, at 7:12 AM, clove...@gmail.com wrote:

> All I want to do is change to a remote server with the same pattern,
> for example I want to set the get-object-root to:
>
> http://www.mymediaserver.com/images/listings
>
> and then keep the same photo pattern.
>
> Variman doesn't seem to like this however ... any suggestions?
> Thanks!

The easiest way is probably to write your own custom ObjectSet
processor and inject it. Variman already supports that as you probably
saw when you looked at the DatabaseObjectSet handler.


Regards,


M.

--
Mark Klein
PGP Key Available
www.dis.com

Reply all
Reply to author
Forward
0 new messages