mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-11-11 23:07:54 +03:00
option to pass a type to enclosure
This commit is contained in:
1 parent
b5f55ffce8
commit
d3e8661f6b
1 file changed
+2
-2
+2
-2
@@ -87,7 +87,7 @@ function generateXML (data){
|
||||
_attr : {
|
||||
url : item.enclosure.url,
|
||||
length : item.enclosure.size || getSize(item.enclosure.file),
|
||||
type : mime.lookup(item.enclosure.file)
|
||||
type : item.enclosure.type || mime.lookup(item.enclosure.file)
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -97,7 +97,7 @@ function generateXML (data){
|
||||
_attr : {
|
||||
url : item.enclosure.url,
|
||||
length : item.enclosure.size || 0,
|
||||
type : mime.lookup(item.enclosure.url)
|
||||
type : item.enclosure.type || mime.lookup(item.enclosure.url)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user