Subject | Hash | Author | Date (UTC) |
---|---|---|---|
lurk: seru na to, parser spouštím pro každej link zvlášť | 5b0a792527510716e36da04e36689765907500c2 | Alex | 2022-07-24 02:06:56 |
do not let text labels to explode | eeec1ccb6b0c3c90e2e0803021817a07489c1093 | Alex | 2022-07-24 01:36:32 |
IvoR: use title and guid as unique identificators. Hash them to avoid numerous issues with serializer | 5a6fe4419c9cfdd0a03e18dfb45cf6fb47fff582 | Alex | 2022-07-24 01:16:36 |
lurk: use raw encoding where is possible. Use italic font style for possible rss channels | 102d33ee8611a392b048d4c640bf27d9ad93d6a8 | Alex | 2022-07-23 23:34:34 |
feedtree: bacha na mezery v indexech | d286760ac19d7b5cf4c3b591a2818f37f2ece3d7 | Alex | 2022-07-23 23:32:34 |
textfiled: malinkatá puntičkářská změna | 4dc5b68943d1b28fa4f83bd4289e3887668b668f | Alex | 2022-07-23 21:58:13 |
feedtree: guid-less channels workaround | 99e7e725b1e5ec6a3682b2fbd670f3a719d5727c | Alex | 2022-07-23 02:14:23 |
lurk: rework links parsing | 27d2aa01be8796427acc9753918a25ca336a523f | Alex | 2022-07-23 01:50:51 |
lurk: accept more possible MIME types | 851689d4324eea12e0c2ecca65557a130006d253 | Alex | 2022-07-22 23:58:37 |
pridat mezeru | 9e6e85bc191e313bbe842052bd92671bfece74c1 | Alex | 2022-07-21 02:18:44 |
add Readme file | 0a25299e82fc60cd3d4f2b1fdc0c7047b299bf78 | Alex | 2022-07-20 01:54:53 |
add LICENSE file | f073c68dbdfd517bdf39f2700369ecfb37f74a2d | Alex | 2022-07-19 10:12:47 |
IvoRSS: fix version number | 8488a8ae206d0ed23ed9a434e25db373168e36ed | Alex | 2022-07-19 10:09:34 |
clean up feeds | f53c9a65d7439041b12d204d1127026935baedf9 | Alex | 2022-07-19 09:59:11 |
IvoRSS: Ready to publish | abccdae2fe21522a92f2c92fbffb4cafec089f23 | Alex | 2022-07-19 09:41:44 |
track changes of Atom feeds by updated tag | 1c115173dd62c39d1fc50dc2e7b36da338a306ef | Alex | 2022-07-19 07:46:35 |
implement images opt-out | 6852d7d1c12f23487c2771f77fc8d17bc7f7a761 | Alex | 2022-07-19 06:57:56 |
implement image loading | b408a53d97f23784bbfc668eac663619a3afebe7 | Alex | 2022-07-19 06:27:44 |
implement channel link support | f2378ce83c04b95304c5ff21b14806edf90a2216 | Alex | 2022-07-19 01:26:03 |
bold unread articles (It wasn't planned before) | 35a66771b2285811a5c5f8adefafdda4d2bf4e38 | Alex | 2022-07-19 00:11:29 |
File | Lines added | Lines deleted |
---|---|---|
lurk.hws | 10 | 15 |
File lurk.hws changed (mode: 100755) (index 159f0a1..d6eda6d) | |||
... | ... | Function lurk:Explore(url$) | |
87 | 87 | Local ok, n = ValidateStr(html$, #ENCODING_UTF8) | Local ok, n = ValidateStr(html$, #ENCODING_UTF8) |
88 | 88 | Local encoding = IIf(ok, #ENCODING_UTF8, #ENCODING_ISO8859_1) | Local encoding = IIf(ok, #ENCODING_UTF8, #ENCODING_ISO8859_1) |
89 | 89 | Local p_encoding = IIf(ok, "UTF-8", "ISO-8859-1") | Local p_encoding = IIf(ok, "UTF-8", "ISO-8859-1") |
90 | Local p = XMLParser.New({StartElement = lurkStartElement}) | ||
91 | p:setbase(url$) | ||
92 | p:setencoding(p_encoding) | ||
93 | ;č ten parser trefí šlak, až uvidí CO má zpracovat | ||
94 | 90 | ||
95 | ;Local lin, col, pos = p:pos() | ||
96 | 91 | ||
97 | Local taxometr = 0 | ||
98 | 92 | Local parsers_tired = 0 | Local parsers_tired = 0 |
99 | 93 | Local total_links = 0 | Local total_links = 0 |
94 | Local p = XMLParser.New({StartElement = lurkStartElement}) | ||
95 | p:setbase(url$) | ||
96 | p:setencoding(p_encoding) | ||
97 | Local taxometr = 0 | ||
100 | 98 | For w$ In PatternFindStr(html$, "<link .->") | For w$ In PatternFindStr(html$, "<link .->") |
101 | 99 | debugprint(w$) | debugprint(w$) |
102 | 100 | total_links = total_links + 1 | total_links = total_links + 1 |
103 | 101 | taxometr = taxometr + StrLen(w$, encoding) | taxometr = taxometr + StrLen(w$, encoding) |
104 | 102 | p:Parse(w$) | p:Parse(w$) |
105 | 103 | Local lin, col, pos = p:pos() | Local lin, col, pos = p:pos() |
106 | If pos < taxometr | ||
107 | debugprint("Parser tired") | ||
108 | Local err_code = ?p:Close() | ||
109 | parsers_tired = parsers_tired + 1 | ||
110 | p = XMLParser.New({StartElement = lurkStartElement}) | ||
111 | p:setbase(url$) | ||
112 | p:setencoding(p_encoding) | ||
113 | taxometr = 0 | ||
114 | EndIf | ||
104 | Local err_code = ?p:Close() | ||
105 | If pos < taxometr Then parsers_tired = parsers_tired + 1 | ||
106 | p = XMLParser.New({StartElement = lurkStartElement}) | ||
107 | p:setbase(url$) | ||
108 | p:setencoding(p_encoding) | ||
109 | taxometr = 0 | ||
115 | 110 | Next | Next |
116 | 111 | ;č html-ko nemůže nezpůsobit chybu. | ;č html-ko nemůže nezpůsobit chybu. |
117 | 112 | ;č nemá cenu je hlídat | ;č nemá cenu je hlídat |