Add channel_link
This commit is contained in:
parent
954093f1bb
commit
eda54c62c7
@ -73,6 +73,7 @@ Base = [
|
|||||||
['last_updated_822', Rfc822, 'updated_parsed'],
|
['last_updated_822', Rfc822, 'updated_parsed'],
|
||||||
['last_updated_iso', Rfc3399, 'updated_parsed'],
|
['last_updated_iso', Rfc3399, 'updated_parsed'],
|
||||||
['last_updated', PlanetDate, 'updated_parsed'],
|
['last_updated', PlanetDate, 'updated_parsed'],
|
||||||
|
['link', String, 'link'],
|
||||||
['logo', String, 'logo'],
|
['logo', String, 'logo'],
|
||||||
['rights', String, 'rights_detail', 'value'],
|
['rights', String, 'rights_detail', 'value'],
|
||||||
['subtitle', String, 'subtitle_detail', 'value'],
|
['subtitle', String, 'subtitle_detail', 'value'],
|
||||||
|
16
tests/data/filter/tmpl/source_link.xml
Normal file
16
tests/data/filter/tmpl/source_link.xml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<!--
|
||||||
|
Description: id
|
||||||
|
Expect: Channels[0]['link'] == 'http://example.com/' and Items[0]['channel_link'] == 'http://example.com/'
|
||||||
|
-->
|
||||||
|
|
||||||
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
|
<entry>
|
||||||
|
<source>
|
||||||
|
<link rel="alternate" href="http://example.com/"/>
|
||||||
|
</source>
|
||||||
|
</entry>
|
||||||
|
<planet:source xmlns:planet='http://planet.intertwingly.net/'>
|
||||||
|
<link rel="alternate" href="http://example.com/"/>
|
||||||
|
</planet:source>
|
||||||
|
</feed>
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user