extend toShadowItem method with 'size' parameter
This commit is contained in:
parent
210b80656e
commit
d35c818d4c
@ -29,8 +29,8 @@ extractCustomLinks xpathCondition1 xpathCondition2 xpathCondition3= (downloadDoc
|
|||||||
extractRecords = extractCustomLinks "//tr[@class=''] | //tr[@class='_a']" "//td[@cell-header='Nazwa pliku']/a" "//td[@class='size']"
|
extractRecords = extractCustomLinks "//tr[@class=''] | //tr[@class='_a']" "//td[@cell-header='Nazwa pliku']/a" "//td[@class='size']"
|
||||||
--extractRecords = extractCustomLinks "//td[@cell-header='Nazwa pliku']/a"
|
--extractRecords = extractCustomLinks "//td[@cell-header='Nazwa pliku']/a"
|
||||||
|
|
||||||
toShadowItem :: (String, String) -> ShadowItem
|
toShadowItem :: (String, String, String) -> ShadowItem
|
||||||
toShadowItem (url, articleTitle) =
|
toShadowItem (url, size, articleTitle) =
|
||||||
(defaultShadowItem url title) {
|
(defaultShadowItem url title) {
|
||||||
originalDate = Just date,
|
originalDate = Just date,
|
||||||
itype = "periodical",
|
itype = "periodical",
|
||||||
|
Loading…
Reference in New Issue
Block a user