rss feed: producing full (not relative) urls

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

rss feed: producing full (not relative) urls

sergio_101-2
in generating the urls for enclosures, pier currently outputs:

<enclosure url="/?_s=hKOzAr2x1GB6Y5GS" length="8740698" type="audio/mp3"/>

i would like it to be:

<enclosure url="http://www.ThoseOptimizeGuys.com/?_s=hKOzAr2x1GB6Y5GS"
length="8740698" type="audio/mp3"/>

the code that generates it is:

        (enclosure := aPost enclosure) isNil ifFalse: [
                rss enclosure
                        url: enclosure file url;
                        length: enclosure file filesize;
                        type: enclosure file mimetype ].

how would i go about generating the fully qualified url?

thanks!


--
----
peace,
sergio
photographer, journalist, visionary

http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: rss feed: producing full (not relative) urls

Lukas Renggli
See WAUrl, it provides methods to change hostname and path.

Lukas

On 2 December 2010 17:09, sergio_101 <[hidden email]> wrote:

> in generating the urls for enclosures, pier currently outputs:
>
> <enclosure url="/?_s=hKOzAr2x1GB6Y5GS" length="8740698" type="audio/mp3"/>
>
> i would like it to be:
>
> <enclosure url="http://www.ThoseOptimizeGuys.com/?_s=hKOzAr2x1GB6Y5GS"
> length="8740698" type="audio/mp3"/>
>
> the code that generates it is:
>
>        (enclosure := aPost enclosure) isNil ifFalse: [
>                rss enclosure
>                        url: enclosure file url;
>                        length: enclosure file filesize;
>                        type: enclosure file mimetype ].
>
> how would i go about generating the fully qualified url?
>
> thanks!
>
>
> --
> ----
> peace,
> sergio
> photographer, journalist, visionary
>
> http://www.CodingForHire.com
> http://www.coffee-black.com
> http://www.painlessfrugality.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
> _______________________________________________
> Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>



--
Lukas Renggli
www.lukas-renggli.ch

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: rss feed: producing full (not relative) urls

sergio_101-2
On Thu, Dec 2, 2010 at 6:52 PM, Lukas Renggli <[hidden email]> wrote:
> See WAUrl, it provides methods to change hostname and path.
>

hmm.. digging through this now..

does it look like this for all feeds with enclosures? it seems like
this would be broken for all feeds.. but then again, the comments url
looks fine..

hmmm..



--
----
peace,
sergio
photographer, journalist, visionary

http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki