Code Monkey home page Code Monkey logo

Comments (13)

rla avatar rla commented on September 26, 2024

I'm not sure. I have not worked with feed extensions a lot. What does happen when you enable extensions : true, will those attributes appear? If possible give an URL with example feed or at least snippets.

from fast-feed.

onigetoc avatar onigetoc commented on September 26, 2024

Hi, you will see nothing special on the output but here my feed page.
https://github.com/onigetoc/feedrapp/blob/master/src/feed.js

Usualy, XML enclosure output like this.
<enclosure url="https://cdn.rt.com/files/2017.01/thumbnail/587d0965c3618885428b4603.jpg" type="image/jpeg" length="123"/>

from fast-feed.

rla avatar rla commented on September 26, 2024

Since it does not contain a namespace, it's not recognized as an extension. Support needs to be explicitly added to extract it from RSS items. How familiar you are with C++?

from fast-feed.

onigetoc avatar onigetoc commented on September 26, 2024

zero knowledge with C++
Only PHP and Javascript/jQuery

from fast-feed.

rla avatar rla commented on September 26, 2024

Can there be multiple enclosure elements on an item. Spec is not clear on this. I think I could add support for these in this week.

from fast-feed.

onigetoc avatar onigetoc commented on September 26, 2024

i Think not. if i rememeber. if there's lot of item will be inside another tag like <medias>
http://www.therssweblog.com/?guid=20070522234541

from fast-feed.

onigetoc avatar onigetoc commented on September 26, 2024

Finally, is it possible to get enclosure?

from fast-feed.

rla avatar rla commented on September 26, 2024

Unfortunately I do not have time to implement it. I recommend to switch to a more feature-complete package.

from fast-feed.

onigetoc avatar onigetoc commented on September 26, 2024

I think it's very important to make it work. It should not be so long for someone who programmed this script. one hour work max?

from fast-feed.

rla avatar rla commented on September 26, 2024

That might be true but on this week I do not have that hour. Possibly on the next week. The Yahoo media extension should already work with the generic extension mechanism. The enclosure element needs to emit an object with the extracted attributes. This would be similar to the category code:

Local<Array> readCategoriesFromItemNode(const xml_node<char> *itemNode, std::vector<char*> &deallocate) {

The difference is that enclosure is just a single object.

from fast-feed.

rla avatar rla commented on September 26, 2024

Attaching link to RSS spec: http://www.rssboard.org/media-rss#media-content
Seems like there is a big use case with podcasts.

from fast-feed.

onigetoc avatar onigetoc commented on September 26, 2024

from fast-feed.

rla avatar rla commented on September 26, 2024

Released 1.6.0. Refer to https://github.com/rla/fast-feed#enclosure regarding the enclosure support.

Media extension support is put into a separate issue and will likely be done through nested extension parsing.

from fast-feed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.