Argotic 和 YahooMediaSyndacationExtension 问题(url 编码)

发布于 2024-09-29 07:37:58 字数 749 浏览 1 评论 0 原文

我正在使用 Argotic 聚合框架来编写 RSS 提要,并且我发现了一个奇怪的行为,这可能是一个错误。

我想通过 YahooMediaSyndicateExtension 添加一个 标签来链接某个项目的 200 像素微型图,并构建微型图,我使用了一个图像处理程序,该处理程序需要在查询字符串上指定的宽度。

所以我使用这段代码:

Uri imageHandler = new Uri("http://localhost/imghandler.ashx?i=image.jpg&w=200");
YahooMediaSyndicationExtension ymse = new YahooMediaSyndicationExtension();
YahooMediaThumbnail ymt = new YahooMediaThumbnail(imageHandler);

但是生成的 xml 具有缩略图 url 编码 (&):

...

<media:thumbnail url="http://localhost/imghandler.ashx?i=image.jpg&amp;w=200" />

...

并且处理程序无法检索正确的查询字符串参数 (w=200 )。

建议? 我错过了什么吗?

I'm using the Argotic syndacation framework to write an RSS feed, and I've found a strange behaviour, that may be a bug.

I want to add, trough the YahooMediaSyndicationExtension, a <media:thumbnail /> tag to link a 200 pixel miniature of a certain item, and to build the miniature I used an image handler that requires the width specified on querystring.

So I use this code:

Uri imageHandler = new Uri("http://localhost/imghandler.ashx?i=image.jpg&w=200");
YahooMediaSyndicationExtension ymse = new YahooMediaSyndicationExtension();
YahooMediaThumbnail ymt = new YahooMediaThumbnail(imageHandler);

But the resulting xml has the thumbnail url encoded (&):

...

<media:thumbnail url="http://localhost/imghandler.ashx?i=image.jpg&w=200" />

...

and the handler can't retrieve the correct querystring parameter (w=200).

Suggestions?
I'm missing something?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文