Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you make an boolean options to able to choose first "enclosure"? #4

Open
iRYO400 opened this issue Aug 12, 2017 · 0 comments
Open

Comments

@iRYO400
Copy link

iRYO400 commented Aug 12, 2017

Hi, thanks for the lib, saved a lot of hours for me.
I've found that the library chooses last "enclosure" for preview. Here is example item from RSS, but mostly first enclosure contains image and last the video. Thanks

<item>
        <title><![CDATA[Valve анонсировала двух персонажей для Dota 2]]></title>
        <link>https://dtf.ru/9202-valve-anonsirovala-dvuh-personazhey-dlya-dota-2?from=rss</link>
        <description><![CDATA[Грядущее обновление получило название Dueling Fates.]]></description>        <dc:creator><![CDATA[Никита Лосев]]></dc:creator>        <pubDate>Sat, 12 Aug 2017 15:07:16 +0300</pubDate>
        <guid isPermaLink="false">9202</guid>        <enclosure url="https://leonardo.osnova.io/b5cfe076-3fa7-399b-8491-08adfd607359/" type="image/jpeg"/><enclosure url="https://youtu.be/LV1ZV_DG3kI" type="video/x-ms-asf"/>    </item>
    <item>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant